1. Forum
  2. >
  3. Topic: Esperanto
  4. >
  5. My autohotkey script for Espe…

https://www.duolingo.com/profile/ChristianKle

My autohotkey script for Esperanto characters

I have written an autohotkey script that gives me 'ŝ' when I press 'AppsKey + s' and 'Ŝ' when I press 'AppsKey + Shift + s'. It also handles all the other special Esperanto characters: This forum seems to break indention. If you want correct indention I have put the script in pastebin: http://pastebin.com/apMHC1Y5

AppsKey & G::
if GetKeyState("Shift", "P")
send Ĝ
else
send ĝ
return

AppsKey & C::
if GetKeyState("Shift", "P")
send Ĉ
else
send ĉ
return

AppsKey & J::
if GetKeyState("Shift", "P")
send Ĵ
else
send ĵ
return

AppsKey & H::
if GetKeyState("Shift", "P")
send Ĥ
else
send ĥ
return

AppsKey & S::
if GetKeyState("Shift", "P")
send Ŝ
else
send ŝ
return

AppsKey & U::
if GetKeyState("Shift", "P")
send Ŭ
else
send ŭ
return

June 20, 2015

14 Comments

Sorted by top post

https://www.duolingo.com/profile/gagmani

I use the most used script(x-method based) with both x and X acting as modifier. That way even if by mistake I type an X I still get the desired character.

June 20, 2015

https://www.duolingo.com/profile/Plugghest

Ah, yes that's much better. I modified that one a bit to where all :?C: were :*?C: so that I wouldn't have to type space and erase it after every time I entered one of those combinations though.

June 20, 2015

https://www.duolingo.com/profile/gagmani

Actually it is with the star, the Duolingo website messed up the code. I noticed it only after your reading your comment.

June 21, 2015

https://www.duolingo.com/profile/ChildishGiant

download?

May 31, 2018

https://www.duolingo.com/profile/junelac

for people (like me) having trouble with using unicode letters (ie directly the letter ĉ for example), my script is

^!c::

send, {U+0109}

return

+^!c::

send, {U+0108}

return

^!j::

send, {U+0135}

return

+^!j::

send, {U+0134}

return

^!g::

send, {U+011D}

return

+^!g::

send, {U+011C}

return

^!h::

send, {U+0125}

return

+^!h::

send, {U+0124}

return

^!s::

send, {U+015D}

return

+^!s::

send, {U+015C}

return

^!u::

send, {U+016D}

return

+^!u::

send, {U+016C}

return

I replaced the accented characters with the unicode codes and I'm using AltGr+letter to type the accented version (ex AltGr+u = ŭ, AltGr+Shift+u = Ŭ)

June 21, 2015

https://www.duolingo.com/profile/Plugghest

I just use a basic (and probably inefficient one) that I wrote up when I first found out about AHK:
!c::
Send, ĉ
Return

+!c::
Send, Ĉ
Return

!g::
Send, ĝ
Return

+!g::
Send, Ĝ
Return

!h::
Send, ĥ
Return

+!h::
Send, Ĥ
Return

!j::
Send, ĵ
Return

+!j::
Send, Ĵ
Return

!s::
Send, ŝ
Return

+!s::
Send, Ŝ
Return

!u::
Send, ŭ
Return

+!u::
Send, Ŭ
Return

June 20, 2015

https://www.duolingo.com/profile/Prhys3020

Well, I use the unicode characters. I write the letter and then I press alt+302, except for the u, when I press alt+306

June 20, 2015

https://www.duolingo.com/profile/WahahaDrills

I just made my own keyboard.

By the way, if anyone wants it, I can find a way to send it. It's a little wonky, but it gets the job done.

June 20, 2015

https://www.duolingo.com/profile/Allegiant4

How is it yours wonky? I made my own keyboard layout too. It's just the English layout, but makes use of ^ as a dead key. Any diacritical mark from Esperanto that I need, I just type ^ which doesn't show up, followed by the letter. If I need to use ^ for some reason I just space out of its "deadness".

June 21, 2015

https://www.duolingo.com/profile/WahahaDrills

Yeah, I did that too. I mean for my placement of things like commas and other stuff. It's a lot like the Spanish keyboard Windows comes with mixed with the English one but there were some other marks and things that I needed places for. As such, My arrows are where the colon and semi-colon are. My dead keys for ˆ and ˘ are where the apostrophe/ quotation marks are because I'm used to hitting that key for the accent and umlaut on my Spanish layout.

Just some awkward placement for some marks, but since I can switch keyboards with the use of hotkeys, it's not a problem if I need to find something that I... can't. Lol.

June 21, 2015

https://www.duolingo.com/profile/Allegiant4

Yeah, I use the US International layout for French because I don't like the Canadian Multilingual Standard. I'm used to hitting the apostrophe and quotation marks as well, but for the circumflex it uses the ^. It's more rare that you need a circumflex though, but it made the most sense to me, and I didn't really need another key for the ŭ so I just put it there too.

I never knew the keyboard shortcuts for changing keyboards before. Just figured them out for myself. Thanks for mentioning that. It should make things easier.

June 21, 2015

https://www.duolingo.com/profile/WahahaDrills

The shortcuts definitely make things easier. Especially for jumping to and from using layouts for things like Japanese, Arabic, and etc. where you need to use different writing systems.

June 21, 2015

https://www.duolingo.com/profile/GordonGuthrie

There is a built-in set of Esperanto key commands in the extended American English keyboard:

http://pupeno.com/2012/02/11/typing-esperanto-in-macosx/

June 21, 2015

https://www.duolingo.com/profile/exnius

Thanks a lot. Perfect script.

June 24, 2019
Learn Esperanto in just 5 minutes a day. For free.