Duolingo is the most popular way to learn languages in the world. Best of all, it's 100% free!

https://www.duolingo.com/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

3 years ago

13 Comments


https://www.duolingo.com/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.

3 years ago

https://www.duolingo.com/Plugghest
Plugghest
  • 18
  • 15
  • 9
  • 7
  • 7
  • 7
  • 6
  • 5
  • 3
  • 3
  • 3
  • 2
  • 2
  • 2

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.

3 years ago

https://www.duolingo.com/gagmani

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

3 years ago

https://www.duolingo.com/ChildishGiant

download?

4 months ago

https://www.duolingo.com/junelac
junelac
  • 14
  • 11
  • 8
  • 8
  • 8
  • 6

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 = Ŭ)

3 years ago

https://www.duolingo.com/Plugghest
Plugghest
  • 18
  • 15
  • 9
  • 7
  • 7
  • 7
  • 6
  • 5
  • 3
  • 3
  • 3
  • 2
  • 2
  • 2

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

3 years ago

https://www.duolingo.com/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

3 years ago

https://www.duolingo.com/WahahaDrills
WahahaDrills
  • 22
  • 18
  • 18
  • 14
  • 10
  • 9
  • 7
  • 7
  • 5
  • 5
  • 4
  • 4
  • 2

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.

3 years ago

https://www.duolingo.com/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".

3 years ago

https://www.duolingo.com/WahahaDrills
WahahaDrills
  • 22
  • 18
  • 18
  • 14
  • 10
  • 9
  • 7
  • 7
  • 5
  • 5
  • 4
  • 4
  • 2

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.

3 years ago

https://www.duolingo.com/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.

3 years ago

https://www.duolingo.com/WahahaDrills
WahahaDrills
  • 22
  • 18
  • 18
  • 14
  • 10
  • 9
  • 7
  • 7
  • 5
  • 5
  • 4
  • 4
  • 2

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.

3 years ago

https://www.duolingo.com/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/

3 years ago