Trouble with simple diacritic script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
supplementfacts
Posts: 41
Joined: 15 Jul 2018, 16:29

Trouble with simple diacritic script

29 Jul 2021, 20:59

I'm trying to write a script that converts 'i::' to 'ï' and converts 'I::' to 'Ï'—putting a diaeresis over a lowercase 'i' and an uppercase 'I'. Here's what I have:

Code: Select all

:?*:i::::{U+00EF}
:?*:I::::{U+00CF}
I know each command works. But when they're both in the same file, whichever comes first always wins. For example, the above script converts both 'i::' and 'I::' to 'ï'. But things are different with this script:

Code: Select all

:?*:I::::{U+00CF}
:?*:i::::{U+00EF}
It converts both 'i::' and 'I::' to 'Ï'.

I don't understand why it's behaving this way. Can anyone help? Thanks.
User avatar
mikeyww
Posts: 26879
Joined: 09 Sep 2014, 18:38

Re: Trouble with simple diacritic script

29 Jul 2021, 21:45

You can add the case-sensitivity hotstring option, which is C.

Code: Select all

:C?*:I::::{U+00CF}
:?*:i::::{U+00EF}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput and 89 guests