C cédille? Hotstring failed with c and comma

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
End User
Posts: 2
Joined: 09 Dec 2022, 00:43

C cédille? Hotstring failed with c and comma

Post by End User » 09 Dec 2022, 01:10

Hello, everyone!

I want to configure a hotstring to convert "c minus comma" to ç, "c plus comma" to Ç, but I failed.

I have:

Code: Select all

:*?:a+^::{U+00C2}
:*?:a-^::{U+00E2} 
:*?:u+"::{U+00DC}
:*?:u-"::{U+00FC}
:*?:c+, ::{U+00C7}
:*?:c-, ::{U+00E7}
:*?:``````::{U+201C} ; opening 66 quotation mark
:*?:, , , ::{U+201E} ; closing lower 99 quotation mark
:*?:<<<::{U+00AB} ; closing angled bracket
:*?:>>>::{U+00BB} ; opening angled bracket
Current behaviour is: I unstoppably type
<<<Schu-"tzer>>>
which is normally replaced by
«Schützer»
which is the exactly what I want.

BUT the problem is with letter C or comma. When I type
```fac-,on,,,
AHK script fails. It results in
“fac-,on,,,
while I expect
“façon„
I tried to use hotstring c-: (just like I used for ü), and it does not work.
I tried to screen comma with ` (left single quotation), and it does not work either.

How should I configure my hotstrings c-, to ç
and ,,, to ?

Thank you!

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: C cédille? Hotstring failed with c and comma

Post by gregster » 09 Dec 2022, 01:32

To clarify, in your curent code

Code: Select all

:*?:c-, ::{U+00E7}
you don't have c-, ("c minus comma") defined as a hotstring, but c-, and a Space ("c minus comma space")- which works for me.
Remove the space, if you don't want it:

Code: Select all

:*?:c-,::{U+00E7}
Same with the plus version.

End User
Posts: 2
Joined: 09 Dec 2022, 00:43

Re: C cédille? Hotstring failed with c and comma

Post by End User » 09 Dec 2022, 04:11

Oh! Thank you!
Missed this detail...

Post Reply

Return to “Ask for Help (v1)”