How to write a sequence of characters including a single quote in Keyman?

I have this line which is failing, I’ve tried everything (backslashes, double quotes, U+0027, etc.):

''!' + [K_TAB] > "'366" c Mapping for the ''!' key, the nang tone

That is, if you press single quote + exclamation mark, followed by tab, it should output single quote plus 3 plus 6 plus 6. How do I do that?

Here is another (single quote followed by tilde) (I tried to remove the K_TAB just in case, but still failing):

U+0027 + U+007E > context + U+0033 c Mapping for the ''~' key, the hard transition

Other errors:

"'3" + [K_TAB] > "'3" c Mapping for the ''~' key, the hard transition

Gives:

tone.kmn:2451 - error KM02019: Unterminated string in line

I got it to work like this:

"'~" + [K_TAB] > U+0027 U+0033 c Mapping for the "'~" key, the hard transition
"'!" + [K_TAB] > U+0027 U+0033 U+0036 U+0036 c Mapping for the "'!" key, the nang tone
+ [K_QUOTE] > "'" c Mapping for the "'" key, the lack of sound, glottal stop

This topic was automatically closed after 14 days. New replies are no longer allowed.