# You can use development/tools/unicodesymbols.py to add stubs for more
# symbols.
# Do only add commands that give correct output, no hacks that look "similar".
-# TODO: fix "missing Qt keysequences (MacSpecialKey)" hacks (search for "Qt::")
# Commands that modify other parts of the text should not be added either.
# For this reason, all commands requiring txfonts, pxfonts, fourier, mathdesign
# and MnSymbol are commented out (these packages switch to fonts like times or
# syntax:
# ucs4 textcommand textpreamble flags mathcommand mathpreamble
-# textcommand and textpreamble are used if the symbol occurs in textmode.
-# mathcommand and mathpreamble are used if the symbol occurs in mathmode.
-# Both mathcommand and mathpreamble are optional.
-# textpreamble and mathpreamble can either be a feature known by the LaTeXFeatures
-# class (e.g. tipa), or a LaTeX command (e.g. \\usepackage{bla}).
-# Features may be combined using '|', in this case one of the alternatives is
-# chosen. The algorithm tries to satisfy as many requirements as possible.
-# Therefore it may depend on the whole document contents which feature is chosen.
-# Known flags:
-# - combining This is a combining char that will get combined with a base char
-# - force Always output replacement command
-# - force=enc1;enc2... Always output replacement command in the specified encodings.
-# - force!=en1;en2... Always output replacement command in all but the specified encodings.
-# Symbols are never forced in encodings with iconv name
-# UTF-8 and package none (currently only utf8-plain).
-# - mathalpha This character is considered as a math variable in mathmode
-# - notermination=text Do not terminate this textcommand (by {} or space).
-# This is set by default if textcommand ends with }.
-# - notermination=math Do not terminate this mathcommand (by {} or space).
-# This is set by default if mathcommand ends with }.
-# - notermination=both Do not terminate this textcommand and mathcommand (by {} or space).
-# - notermination=none Always terminate this textcommand and mathcommand (by {} or space).
-# - tipashortcut=<shortcut> Shortcut notation for TIPA
-# - deprecated Do not use this symbol for backwards conversion in LyX and tex2lyx.
+#
+# * textcommand and textpreamble are used if the symbol occurs in textmode.
+# * mathcommand and mathpreamble are used if the symbol occurs in mathmode.
+# * Both mathcommand and mathpreamble are optional.
+# * textpreamble and mathpreamble can either be a feature known by the LaTeXFeatures
+# class (e.g. tipa), or a LaTeX command (e.g. \\usepackage{bla}).
+# * Features may be combined using '|', in this case one of the alternatives is
+# chosen. The algorithm tries to satisfy as many requirements as possible.
+# Therefore it may depend on the whole document contents which feature is chosen.
+# * A feature can be required only for specific input encodings or font encodings:
+# - <feature>=enc1;enc2... Require the feature <feature> only if the character is used in
+# one if the specified font or input encodings.
+# - <feature>!=enc1;enc2... Require the feature <feature> only if the character is used in
+# a font or input encoding that is not among the specified.
+# * Known flags:
+# - combining This is a combining char that will get combined with a base char
+# - force Always output replacement command
+# - force=enc1;enc2... Always output replacement command in the specified encodings.
+# - force!=enc1;enc2... Always output replacement command in all but the specified encodings.
+# Symbols are never forced in encodings with iconv name
+# UTF-8 and package none (currently only utf8-plain).
+# - mathalpha This character is considered as a math variable in mathmode
+# - notermination=text Do not terminate this textcommand (by {} or space).
+# This is set by default if textcommand ends with }.
+# - notermination=math Do not terminate this mathcommand (by {} or space).
+# This is set by default if mathcommand ends with }.
+# - notermination=both Do not terminate this textcommand and mathcommand (by {} or space).
+# - notermination=none Always terminate this textcommand and mathcommand (by {} or space).
+# - tipashortcut=<shortcut> Shortcut notation for TIPA
+# - deprecated Do not use this symbol for backwards conversion in LyX and tex2lyx.
#
# 2 Latin-1 Supplement
0x011f "\\u{g}" "" "mathalpha" "\\breve{g}" # LATIN SMALL LETTER G WITH BREVE
0x0120 "\\.{G}" "" "mathalpha" "\\dot{G}" # LATIN CAPITAL LETTER G WITH DOT ABOVE
0x0121 "\\.{g}" "" "mathalpha" "\\dot{g}" # LATIN SMALL LETTER G WITH DOT ABOVE
-0x0122 "\\c{G}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{G}" "accents,cedilla" # LATIN CAPITAL LETTER G WITH CEDILLA (actually a comma accent, Latvian)
-0x0123 "\\c{g}" "textbaltic" "mathalpha,force=utf8;utf8x,notermination=math" "\\mathaccent96 g" "" # LATIN SMALL LETTER G WITH CEDILLA (actually a comma above accent, Latvian)
+0x0122 "\\c{G}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{G}" "accents,cedilla" # LATIN CAPITAL LETTER G WITH CEDILLA (actually a comma accent, Latvian)
+0x0123 "\\c{g}" "textbaltic!=L7x" "mathalpha,force=utf8;utf8x,notermination=math" "\\mathaccent96 g" "" # LATIN SMALL LETTER G WITH CEDILLA (actually a comma above accent, Latvian)
0x0124 "\\^{H}" "" "mathalpha" "\\hat{H}" # LATIN CAPITAL LETTER H WITH CIRCUMFLEX
0x0125 "\\^{h}" "" "mathalpha" "\\hat{h}" # LATIN SMALL LETTER H WITH CIRCUMFLEX
#0x0126 "" "" "" "" "" # LATIN CAPITAL LETTER H WITH STROKE
0x0133 "ij" "" "mathalpha,force=utf8x,notermination=both" "ij" "" # LATIN SMALL LIGATURE IJ
0x0134 "\\^{J}" "" "mathalpha" "\\hat{J}" # LATIN CAPITAL LETTER J WITH CIRCUMFLEX
0x0135 "\\^{\\j}" "" "mathalpha,force=utf8" "\\hat{\\jmath}" "" # LATIN SMALL LETTER J WITH CIRCUMFLEX
-0x0136 "\\c{K}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{K}" "accents,cedilla" # LATIN CAPITAL LETTER K WITH CEDILLA (actually a comma accent, Latvian)
-0x0137 "\\c{k}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{k}" "accents,cedilla" # LATIN SMALL LETTER K WITH CEDILLA (actually a comma accent, Latvian)
+0x0136 "\\c{K}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{K}" "accents,cedilla" # LATIN CAPITAL LETTER K WITH CEDILLA (actually a comma accent, Latvian)
+0x0137 "\\c{k}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{k}" "accents,cedilla" # LATIN SMALL LETTER K WITH CEDILLA (actually a comma accent, Latvian)
#0x0138 "" "" "" "" "" # LATIN SMALL LETTER KRA
0x0139 "\\'{L}" "" "mathalpha" "\\acute{L}" # LATIN CAPITAL LETTER L WITH ACUTE
0x013a "\\'{l}" "" "mathalpha" "\\acute{l}" # LATIN SMALL LETTER L WITH ACUTE
-0x013b "\\c{L}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{L}" "accents,cedilla" # LATIN CAPITAL LETTER L WITH CEDILLA (actually a comma accent, Latvian)
-0x013c "\\c{l}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{l}" "accents,cedilla" # LATIN SMALL LETTER L WITH CEDILLA (actually a comma accent, Latvian)
+0x013b "\\c{L}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{L}" "accents,cedilla" # LATIN CAPITAL LETTER L WITH CEDILLA (actually a comma accent, Latvian)
+0x013c "\\c{l}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{l}" "accents,cedilla" # LATIN SMALL LETTER L WITH CEDILLA (actually a comma accent, Latvian)
0x013d "\\v{L}" "" "mathalpha" "L\\mkern-7mu\\mathchar19" # LATIN CAPITAL LETTER L WITH CARON
0x013e "\\v{l}" "" "mathalpha" "l\\mkern-5mu\\mathchar19" # LATIN SMALL LETTER L WITH CARON
#0x013f "L\\textperiodcentered" "" "" "" "" # LATIN CAPITAL LETTER L WITH MIDDLE DOT
0x0142 "\\l" "" "mathalpha,notermination=math" "\\mathchar'40\\mkern-5mu l" # LATIN SMALL LETTER L WITH STROKE
0x0143 "\\'{N}" "" "mathalpha" "\\acute{N}" # LATIN CAPITAL LETTER N WITH ACUTE
0x0144 "\\'{n}" "" "mathalpha" "\\acute{n}" # LATIN SMALL LETTER N WITH ACUTE
-0x0145 "\\c{N}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{N}" "accents,cedilla" # LATIN CAPITAL LETTER N WITH CEDILLA (actually a comma accent, Latvian)
-0x0146 "\\c{n}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{n}" "accents,cedilla" # LATIN SMALL LETTER N WITH CEDILLA (actually a comma accent, Latvian)
+0x0145 "\\c{N}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{N}" "accents,cedilla" # LATIN CAPITAL LETTER N WITH CEDILLA (actually a comma accent, Latvian)
+0x0146 "\\c{n}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{n}" "accents,cedilla" # LATIN SMALL LETTER N WITH CEDILLA (actually a comma accent, Latvian)
0x0147 "\\v{N}" "" "mathalpha" "\\check{N}" # LATIN CAPITAL LETTER N WITH CARON
0x0148 "\\v{n}" "" "mathalpha" "\\check{n}" # LATIN SMALL LETTER N WITH CARON
0x0149 "'n" "" "force=utf8;utf8x,deprecated" "" "" # LATIN SMALL LETTER N PRECEDED BY APOSTROPHE
0x0153 "\\oe" "" "" "" "" # LATIN SMALL LIGATURE OE
0x0154 "\\'{R}" "" "mathalpha" "\\acute{R}" # LATIN CAPITAL LETTER R WITH ACUTE
0x0155 "\\'{r}" "" "mathalpha" "\\acute{r}" # LATIN SMALL LETTER R WITH ACUTE
-0x0156 "\\c{R}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{R}" "accents,cedilla" # LATIN CAPITAL LETTER R WITH CEDILLA (actually a comma accent, Latvian)
-0x0157 "\\c{r}" "textbaltic" "mathalpha,force=utf8" "\\cedilla{r}" "accents,cedilla" # LATIN SMALL LETTER R WITH CEDILLA (actually a comma accent, Latvian)
+0x0156 "\\c{R}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{R}" "accents,cedilla" # LATIN CAPITAL LETTER R WITH CEDILLA (actually a comma accent, Latvian)
+0x0157 "\\c{r}" "textbaltic!=L7x" "mathalpha,force=utf8" "\\cedilla{r}" "accents,cedilla" # LATIN SMALL LETTER R WITH CEDILLA (actually a comma accent, Latvian)
0x0158 "\\v{R}" "" "mathalpha" "\\check{R}" # LATIN CAPITAL LETTER R WITH CARON
0x0159 "\\v{r}" "" "mathalpha" "\\check{r}" # LATIN SMALL LETTER R WITH CARON
0x015a "\\'{S}" "" "mathalpha" "\\acute{S}" # LATIN CAPITAL LETTER S WITH ACUTE
0x0215 "\\textdoublegrave{u}" "tipa" "force,mathalpha" "\\dgrave{u}" "tipasymb,dgrave" # LATIN SMALL LETTER U WITH DOUBLE GRAVE
0x0216 "\\textroundcap{U}" "tipa" "force,mathalpha" "\\rcap{U}" "tipasymb,rcap" # LATIN CAPITAL LETTER U WITH INVERTED BREVE
0x0217 "\\textroundcap{u}" "tipa" "force,mathalpha" "\\rcap{u}" "tipasymb,rcap" # LATIN SMALL LETTER U WITH INVERTED BREVE
-0x0218 "\\textcommabelow{S}" "textcommabelow" "force" # LATIN CAPITAL LETTER S WITH COMMA BELOW
-0x0219 "\\textcommabelow{s}" "textcommabelow" "force" # LATIN SMALL LETTER S WITH COMMA BELOW
-0x021a "\\textcommabelow{T}" "textcommabelow" "force" # LATIN CAPITAL LETTER T WITH COMMA BELOW
-0x021b "\\textcommabelow{t}" "textcommabelow" "force" # LATIN SMALL LETTER T WITH COMMA BELOW
+0x0218 "\\textcommabelow{S}" "textcommabelow!=utf8;iso8859-16" "" # LATIN CAPITAL LETTER S WITH COMMA BELOW
+0x0219 "\\textcommabelow{s}" "textcommabelow!=utf8;iso8859-16" "" # LATIN SMALL LETTER S WITH COMMA BELOW
+0x021a "\\textcommabelow{T}" "textcommabelow!=utf8;iso8859-16" "" # LATIN CAPITAL LETTER T WITH COMMA BELOW
+0x021b "\\textcommabelow{t}" "textcommabelow!=utf8;iso8859-16" "" # LATIN SMALL LETTER T WITH COMMA BELOW
#0x021c "" "" "" # LATIN CAPITAL LETTER YOGH
#0x021d "" "" "" # LATIN SMALL LETTER YOGH
0x021e "\\v{H}" "" "mathalpha,force=utf8" "\\check{H}" # LATIN CAPITAL LETTER H WITH CARON
0x02da "\\r{ }" "" "force=utf8" # RING ABOVE
0x02db "\\k{ }" "" "force=utf8" # OGONEK
0x02dc "\\~{ }" "" "" # SMALL TILDE
-0x02dd "\\H{ }" "" "" # DOUBLE ACUTE ACCENT
+0x02dd "\\H{ }" "" "force=utf8" # DOUBLE ACUTE ACCENT
0x02de "\\textrhoticity" "tipa" "force" # MODIFIER LETTER RHOTIC HOOK
#0x02df "\\textovercross{ }" "tipa" "force" # MODIFIER LETTER CROSS ACCENT
0x02e0 "\\textsuperscript{\\textgamma}" "tipa" "force" # MODIFIER LETTER SMALL GAMMA
0x0323 "\\d" "" "combining,force" # COMBINING DOT BELOW
0x0324 "\\textsubumlaut" "tipa" "combining,force" # COMBINING DIAERESIS BELOW
0x0325 "\\textsubring" "tipa" "combining,force" # COMBINING RING BELOW
-0x0326 "\\textcommabelow" "textcommabelow" "combining,force" # COMBINING COMMA BELOW
+0x0326 "\\textcommabelow" "textcommabelow!=utf8;iso8859-16" "combining,force" # COMBINING COMMA BELOW
0x0327 "\\c" "" "combining,force" # COMBINING CEDILLA
0x0328 "\\k" "" "combining,force" # COMBINING OGONEK
0x0329 "\\textsyllabic" "tipa" "combining,force" # COMBINING VERTICAL LINE BELOW
0x21b6 "" "" "force=utf8;utf8x" "\\curvearrowleft" "amssymb" # ANTICLOCKWISE TOP SEMICIRCLE ARROW
0x21b7 "" "" "force=utf8;utf8x" "\\curvearrowright" "amssymb" # CLOCKWISE TOP SEMICIRCLE ARROW
#0x21b8 "" "" "" "" "" # NORTH WEST ARROW TO LONG BAR
-#0x21b9 "" "" "" "" "" # LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR
+0x21b9 "\\tabwin" "menukeys" "force" "" "" # LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR
0x21ba "" "" "force=utf8;utf8x" "\\circlearrowleft" "amssymb" # ANTICLOCKWISE OPEN CIRCLE ARROW
0x21bb "" "" "force=utf8;utf8x" "\\circlearrowright" "amssymb" # CLOCKWISE OPEN CIRCLE ARROW
0x21bc "" "" "force=utf8" "\\leftharpoonup" "" # LEFTWARDS HARPOON WITH BARB UPWARDS
0x21db "" "" "force=utf8;utf8x" "\\Rrightarrow" "amssymb" # RIGHTWARDS TRIPLE ARROW
#0x21dc "" "" "" "\\leftsquigarrow" "mathabx" # LEFTWARDS SQUIGGLE ARROW
0x21dd "" "" "force=utf8;utf8x" "\\rightsquigarrow" "amssymb" # RIGHTWARDS SQUIGGLE ARROW
-0x21de "Option-Up Arrow" "" "force=utf8;utf8x,notermination=text" "" "" #Qt::Key_PageUp, UPWARDS ARROW WITH DOUBLE STROKE = page up "\\nHuparrow" "boisik|stik"
-0x21df "Option-Down Arrow" "" "force=utf8;utf8x,notermination=text" "" "" # Qt::Key_PageDown, DOWNWARDS ARROW WITH DOUBLE STROKE = page down "\\nHdownarrow" "boisik|stix"
+# FIXME Yes, these are constructed, but better than a key symbols text.
+0x21de "\\ooalign{\\textuparrow\\cr\\kern.1em\\textdblhyphen}" "textcomp" "force=utf8;utf8x" "" "" #Qt::Key_PageUp, UPWARDS ARROW WITH DOUBLE STROKE = page up "\\nHuparrow" "boisik|stix"
+0x21df "\\ooalign{\\textdownarrow\\cr\\kern.1em\\textdblhyphen}" "textcomp" "force=utf8;utf8x,notermination=text" "" "" # Qt::Key_PageDown, DOWNWARDS ARROW WITH DOUBLE STROKE = page down "\\nHdownarrow" "boisik|stix"
0x21e0 "" "" "force=utf8;utf8x" "\\dashleftarrow" "amssymb" # LEFTWARDS DASHED ARROW
#0x21e1 "" "" "" "" "" # UPWARDS DASHED ARROW
0x21e2 "" "" "force=utf8;utf8x" "\\dashrightarrow" "amssymb" # RIGHTWARDS DASHED ARROW
#0x21e3 "" "" "" "" "" # DOWNWARDS DASHED ARROW
-0x21e4 "Shift-Tab" "" "force=utf8;utf8x,notermination=text" "" "" # Qt::Key_Backtab, LEFTWARDS ARROW TO BAR = leftward tab "\\barleftarrow" "boisik|stix"
-0x21e5 "Tab" "" "force=utf8;utf8x,notermination=text" "" "" # Qt::Key_Tab, RIGHTWARDS ARROW TO BAR = rightward tab "\\rightarrowbar" "boisik|stix"
+0x21e4 "\\reflectbox{\\tabmac}" "menukeys,graphics" "force" "" "" # Qt::Key_Backtab, LEFTWARDS ARROW TO BAR = leftward tab "\\barleftarrow" "boisik|stix"
+0x21e5 "\\tabmac" "menukeys" "force" "" "" # Qt::Key_Tab, RIGHTWARDS ARROW TO BAR = rightward tab "\\rightarrowbar" "boisik|stix"
#0x21e6 "" "" "" "" "" # LEFTWARDS WHITE ARROW
-#0x21e7 "" "" "" "" "" # UPWARDS WHITE ARROW
+0x21e7 "\\shift" "menukeys" "force" "" "" # UPWARDS WHITE ARROW
0x21e8 "\\pointer" "wasysym" "force=utf8;utf8x" "" "" # RIGHTWARDS WHITE ARROW
#0x21e9 "" "" "" "" "" # DOWNWARDS WHITE ARROW
-0x21ea "Caps Lock" "" "force=utf8;utf8x,notermination=text" "" "" # Qt::Key_CapsLock, UPWARDS WHITE ARROW FROM BAR = caps lock "\\whitearrowupfrombar" "boisik|stix"
+0x21ea "\\capslockmac" "menukeys" "force" "" "" # Qt::Key_CapsLock, UPWARDS WHITE ARROW FROM BAR = caps lock "\\whitearrowupfrombar" "boisik|stix"
#0x21eb "" "" "" "" "" # UPWARDS WHITE ARROW ON PEDESTAL
#0x21ec "" "" "" "" "" # UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR
#0x21ed "" "" "" "" "" # UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR
0x2315 "\\recorder" "wasysym" "force" "" "" # TELEPHONE RECORDER
#0x2316 "" "" "" "" "" # POSITION INDICATOR
#0x2317 "" "" "" "" "" # VIEWDATA SQUARE
-#0x2318 "" "" "" "" "" # PLACE OF INTEREST SIGN
+0x2318 "\\cmdmac" "menukeys" "force" "" "" # PLACE OF INTEREST SIGN
#0x2319 "" "" "" "" "" # TURNED NOT SIGN
0x231a "\\Clocklogo" "marvosym" "force" # WATCH
#0x231b "" "" "" "" "" # HOURGLASS
#0x2321 "" "" "" "" "" # BOTTOM HALF INTEGRAL
0x2322 "" "" "force" "\\frown" "" # FROWN
0x2323 "" "" "force" "\\smile" "" # SMILE
-#0x2324 "" "" "" "" "" # UP ARROWHEAD BETWEEN TWO HORIZONTAL BARS
-#0x2325 "" "" "" "" "" # OPTION KEY
-0x2326 "Delete" "" "force,notermination=text" "" "" # Qt::Key_Delete, ERASE TO THE RIGHT = delete to the right key
+0x2324 "\\enter" "menukeys" "force" "" "" # UP ARROWHEAD BETWEEN TWO HORIZONTAL BARS
+0x2325 "\\Altmac" "menukeys" "force" "" "" # OPTION KEY
+0x2326 "\\delmac" "menukeys" "force" "" "" # Qt::Key_Delete, ERASE TO THE RIGHT = delete to the right key
0x2328 "\\Keyboard" "marvosym" "force" # KEYBOARD
-0x232b "Backspace" "" "force,notermination=text" "" "" # Qt::Key_Backspace, ERASE TO THE LEFT = delete to the left key
+0x232b "\\backdelmac" "menukeys" "force" "" "" # Qt::Key_Backspace, ERASE TO THE LEFT = delete to the left key
0x2339 "" "" "force" "\\APLinv" "wasysym" # APL FUNCTIONAL SYMBOL QUAD DIVIDE
0x233f "" "" "force" "\\notslash" "wasysym" # APL FUNCTIONAL SYMBOL SLASH BAR
0x2340 "" "" "force" "\\notbackslash" "wasysym" # APL FUNCTIONAL SYMBOL BACKSLASH BAR
-0x238b "Escape" "" "force,notermination=text" "" "" # Qt::Key_Escape, BROKEN CIRCLE WITH NORTHWEST ARROW = escape
+0x238b "\\escmac" "menukeys" "force" "" "" # Qt::Key_Escape, BROKEN CIRCLE WITH NORTHWEST ARROW = escape
#
# 79 Control Pictures
#