phil294 / AHK_X11

AutoHotkey for Linux (X11-based systems)
GNU General Public License v2.0
770 stars 11 forks source link

create en dash #70

Open shmu26 opened 5 months ago

shmu26 commented 5 months ago

Can you tell me how to do this in AHK+X11 ?

I want to create a en dash – But it's not working

phil294 commented 5 months ago

sorry but I have no idea what you are talking about

shmu26 commented 5 months ago

En dash and em dash are long hyphens, on Windows you would type two hyphens and it turns into one long dash. But on Linux there is no convenient way to do it.

I want to configure a key combination such as alt + - that will output an En dash.

On Autohotkey for Windows, you would do something like this: ; Alt+Minus = En dash !-:: Send {–} return

On Fri, Jan 26, 2024, 6:05 PM Philip Waritschlager @.***> wrote:

sorry but I have no idea what you are talking about

— Reply to this email directly, view it on GitHub https://github.com/phil294/AHK_X11/issues/70#issuecomment-1912306442, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIBH5HSOYF6DX23EPYLZD3YQPH47AVCNFSM6AAAAABCL3K3ZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGMYDMNBUGI . You are receiving this because you authored the thread.Message ID: @.***>

phil294 commented 5 months ago

Ah, ok, right, doesn't seem to work. On my system, not even sending a normal dash works... worrying.

This is related to #32 and will be fixed, I presume, in no sooner than 3 months

Freso commented 3 months ago

But on Linux there is no convenient way to do it.

You might want to look into compose key.

The ArchWiki’s Xorg keyboard configuration article has a section on how to set compose key up for Arch Linux. If you use a different distribution there might be some differences, so consult your own distribution’s documentation as well.