nls: change <Compose> <^> <-> to mean superscript minus instead of macron

Several other `<Multi_key> <asciicircum> <symbol>` sequences
produce the superscript equivalent of the given symbol.  So,
let `<Multi_key> <asciicircum> <minus>` do the same.

Also, add two other sequences for producing a plain macron,
to compensate a bit the loss of the above sequence.

Additionally, make `<Multi_key> <underscore> <minus>` produce
a subscript minus, for consistency.

This fixes issue #165.

Requested-by: J. McWilliams

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
This commit is contained in:
Benno Schulenberg 2022-10-21 12:18:25 +02:00
parent 3108982707
commit 0d1d65bdd9

View file

@ -22,7 +22,8 @@ XCOMM Spacing versions of accents (mostly)
<dead_macron> <space> : "¯" macron # MACRON
<dead_macron> <dead_macron> : "¯" macron # MACRON
<Multi_key> <minus> <asciicircum> : "¯" macron # MACRON
<Multi_key> <asciicircum> <minus> : "¯" macron # MACRON
<Multi_key> <underscore> <space> : "¯" macron # MACRON
<Multi_key> <space> <underscore> : "¯" macron # MACRON
<Multi_key> <underscore> <underscore> : "¯" macron # MACRON
<Multi_key> <underscore> <asciicircum> : "¯" macron # MACRON
<dead_breve> <space> : "˘" breve # BREVE
@ -4432,6 +4433,7 @@ XCOMM Superscripts and Subscripts
<dead_circumflex> <KP_Add> : "⁺" U207A # SUPERSCRIPT PLUS SIGN
<Multi_key> <asciicircum> <KP_Add> : "⁺" U207A # SUPERSCRIPT PLUS SIGN
<dead_circumflex> <minus> : "⁻" U207B # SUPERSCRIPT MINUS
<Multi_key> <asciicircum> <minus> : "⁻" U207B # SUPERSCRIPT MINUS
<dead_circumflex> <U2212> : "⁻" U207B # SUPERSCRIPT MINUS
<Multi_key> <asciicircum> <U2212> : "⁻" U207B # SUPERSCRIPT MINUS
<dead_circumflex> <equal> : "⁼" U207C # SUPERSCRIPT EQUALS SIGN
@ -4466,6 +4468,7 @@ XCOMM Superscripts and Subscripts
<Multi_key> <underscore> <KP_9> : "₉" U2089 # SUBSCRIPT NINE
<Multi_key> <underscore> <plus> : "₊" U208A # SUBSCRIPT PLUS SIGN
<Multi_key> <underscore> <KP_Add> : "₊" U208A # SUBSCRIPT PLUS SIGN
<Multi_key> <underscore> <minus> : "₋" U208B # SUBSCRIPT MINUS
<Multi_key> <underscore> <U2212> : "₋" U208B # SUBSCRIPT MINUS
<Multi_key> <underscore> <equal> : "₌" U208C # SUBSCRIPT EQUALS SIGN
<Multi_key> <underscore> <KP_Equal> : "₌" U208C # SUBSCRIPT EQUALS SIGN