|
| 1 | +;; style file for xindy |
| 2 | +;; filename: LICRlatin2utf8.xdy |
| 3 | +;; description: style file for xindy which maps back LaTeX Internal |
| 4 | +;; Character Representation of letters (as arising in .idx index |
| 5 | +;; file) to UTF-8 encoding for correct sorting by xindy. |
| 6 | +;; usage: for use with the pdflatex engine, |
| 7 | +;; *not* for use with xelatex or lualatex. |
| 8 | +;; |
| 9 | +;; This is based upon xindy's distributed file tex/inputenc/utf8.xdy. |
| 10 | +;; The modifications include: |
| 11 | +;; |
| 12 | +;; - Updates for compatibility with current LaTeX macro encoding. |
| 13 | +;; |
| 14 | +;; - Systematic usage of the \IeC {...} mark-up, because mark-up in |
| 15 | +;; tex/inputenc/utf8.xdy was using it on seemingly random basis, and |
| 16 | +;; Sphinx coercing of xindy usability for both Latin and Cyrillic scripts |
| 17 | +;; with pdflatex requires its systematic presence here. |
| 18 | +;; |
| 19 | +;; - Support for some extra letters: Ÿ, Ŋ, ŋ, Œ, œ, IJ, ij, ȷ and ẞ. |
| 20 | +;; |
| 21 | +;; Indeed Sphinx needs to support for pdflatex engine all Unicode letters |
| 22 | +;; available in TeX T1 font encoding. The above letters are found in |
| 23 | +;; that encoding but not in the Latin1, 2, 3 charsets which are those |
| 24 | +;; covered by original tex/inputenc/utf8.xdy. |
| 25 | +;; |
| 26 | +;; - There is a problem that ȷ is not supported out-of-the box by LaTeX |
| 27 | +;; with inputenc, one must add explicitely |
| 28 | +;; \DeclareUnicodeCharacter{0237}{\j} |
| 29 | +;; to preamble of LaTeX document. However this character is not supported |
| 30 | +;; by the TeX "times" font used by default by Sphinx for pdflatex engine. |
| 31 | +;; |
| 32 | +;; **Update**: since LaTeX 2018/12/01, the \j as well as \SS, \k{} and |
| 33 | +;; \.{} need no extra user declaration anymore. |
| 34 | +;; |
| 35 | +;; - ẞ needs \DeclareUnicodeCharacter{1E9E}{\SS} (but ß needs no extra set-up). |
| 36 | +;; |
| 37 | +;; - U+02DB (˛) and U+02D9 (˙) are also not supported by inputenc |
| 38 | +;; out of the box and require |
| 39 | +;; \DeclareUnicodeCharacter{02DB}{\k{}} |
| 40 | +;; \DeclareUnicodeCharacter{02D9}{\.{}} |
| 41 | +;; to be added to preamble. |
| 42 | +;; |
| 43 | +;; - U+0127 ħ and U+0126 Ħ are absent from TeX T1+TS1 font encodings. |
| 44 | +;; |
| 45 | +;; - Characters Ŋ and ŋ are not supported by TeX font "times" used by |
| 46 | +;; default by Sphinx for pdflatex engine but they are supported by |
| 47 | +;; some TeX fonts, in particular by the default LaTeX font for T1 |
| 48 | +;; encoding. |
| 49 | +;; |
| 50 | +;; - " and ~ must be escaped as ~" and resp. ~~ in xindy merge rules. |
| 51 | +;; |
| 52 | +;; Contributed by the Sphinx team, July 2018. |
| 53 | +;; |
| 54 | +;; See sphinx.xdy for superior figures, as they are escaped by LaTeX writer. |
| 55 | +(merge-rule "\IeC {\textonesuperior }" "¹" :string) |
| 56 | +(merge-rule "\IeC {\texttwosuperior }" "²" :string) |
| 57 | +(merge-rule "\IeC {\textthreesuperior }" "³" :string) |
| 58 | +(merge-rule "\IeC {\'a}" "á" :string) |
| 59 | +(merge-rule "\IeC {\'A}" "Á" :string) |
| 60 | +(merge-rule "\IeC {\`a}" "à" :string) |
| 61 | +(merge-rule "\IeC {\`A}" "À" :string) |
| 62 | +(merge-rule "\IeC {\^a}" "â" :string) |
| 63 | +(merge-rule "\IeC {\^A}" "Â" :string) |
| 64 | +(merge-rule "\IeC {\~"a}" "ä" :string) |
| 65 | +(merge-rule "\IeC {\~"A}" "Ä" :string) |
| 66 | +(merge-rule "\IeC {\~~a}" "ã" :string) |
| 67 | +(merge-rule "\IeC {\~~A}" "Ã" :string) |
| 68 | +(merge-rule "\IeC {\c c}" "ç" :string) |
| 69 | +(merge-rule "\IeC {\c C}" "Ç" :string) |
| 70 | +(merge-rule "\IeC {\'c}" "ć" :string) |
| 71 | +(merge-rule "\IeC {\'C}" "Ć" :string) |
| 72 | +(merge-rule "\IeC {\^c}" "ĉ" :string) |
| 73 | +(merge-rule "\IeC {\^C}" "Ĉ" :string) |
| 74 | +(merge-rule "\IeC {\.c}" "ċ" :string) |
| 75 | +(merge-rule "\IeC {\.C}" "Ċ" :string) |
| 76 | +(merge-rule "\IeC {\c s}" "ş" :string) |
| 77 | +(merge-rule "\IeC {\c S}" "Ş" :string) |
| 78 | +(merge-rule "\IeC {\c t}" "ţ" :string) |
| 79 | +(merge-rule "\IeC {\c T}" "Ţ" :string) |
| 80 | +(merge-rule "\IeC {\-}" "" :string); soft hyphen |
| 81 | +(merge-rule "\IeC {\textdiv }" "÷" :string) |
| 82 | +(merge-rule "\IeC {\'e}" "é" :string) |
| 83 | +(merge-rule "\IeC {\'E}" "É" :string) |
| 84 | +(merge-rule "\IeC {\`e}" "è" :string) |
| 85 | +(merge-rule "\IeC {\`E}" "È" :string) |
| 86 | +(merge-rule "\IeC {\^e}" "ê" :string) |
| 87 | +(merge-rule "\IeC {\^E}" "Ê" :string) |
| 88 | +(merge-rule "\IeC {\~"e}" "ë" :string) |
| 89 | +(merge-rule "\IeC {\~"E}" "Ë" :string) |
| 90 | +(merge-rule "\IeC {\^g}" "ĝ" :string) |
| 91 | +(merge-rule "\IeC {\^G}" "Ĝ" :string) |
| 92 | +(merge-rule "\IeC {\.g}" "ġ" :string) |
| 93 | +(merge-rule "\IeC {\.G}" "Ġ" :string) |
| 94 | +(merge-rule "\IeC {\^h}" "ĥ" :string) |
| 95 | +(merge-rule "\IeC {\^H}" "Ĥ" :string) |
| 96 | +(merge-rule "\IeC {\H o}" "ő" :string) |
| 97 | +(merge-rule "\IeC {\H O}" "Ő" :string) |
| 98 | +(merge-rule "\IeC {\textacutedbl }" "˝" :string) |
| 99 | +(merge-rule "\IeC {\H u}" "ű" :string) |
| 100 | +(merge-rule "\IeC {\H U}" "Ű" :string) |
| 101 | +(merge-rule "\IeC {\ae }" "æ" :string) |
| 102 | +(merge-rule "\IeC {\AE }" "Æ" :string) |
| 103 | +(merge-rule "\IeC {\textcopyright }" "©" :string) |
| 104 | +(merge-rule "\IeC {\c \ }" "¸" :string) |
| 105 | +(merge-rule "\IeC {\dh }" "ð" :string) |
| 106 | +(merge-rule "\IeC {\DH }" "Ð" :string) |
| 107 | +(merge-rule "\IeC {\dj }" "đ" :string) |
| 108 | +(merge-rule "\IeC {\DJ }" "Đ" :string) |
| 109 | +(merge-rule "\IeC {\guillemotleft }" "«" :string) |
| 110 | +(merge-rule "\IeC {\guillemotright }" "»" :string) |
| 111 | +(merge-rule "\IeC {\'\i }" "í" :string) |
| 112 | +(merge-rule "\IeC {\`\i }" "ì" :string) |
| 113 | +(merge-rule "\IeC {\^\i }" "î" :string) |
| 114 | +(merge-rule "\IeC {\~"\i }" "ï" :string) |
| 115 | +(merge-rule "\IeC {\i }" "ı" :string) |
| 116 | +(merge-rule "\IeC {\^\j }" "ĵ" :string) |
| 117 | +(merge-rule "\IeC {\k {}}" "˛" :string) |
| 118 | +(merge-rule "\IeC {\l }" "ł" :string) |
| 119 | +(merge-rule "\IeC {\L }" "Ł" :string) |
| 120 | +(merge-rule "\IeC {\nobreakspace }" " " :string) |
| 121 | +(merge-rule "\IeC {\o }" "ø" :string) |
| 122 | +(merge-rule "\IeC {\O }" "Ø" :string) |
| 123 | +(merge-rule "\IeC {\textsterling }" "£" :string) |
| 124 | +(merge-rule "\IeC {\textparagraph }" "¶" :string) |
| 125 | +(merge-rule "\IeC {\ss }" "ß" :string) |
| 126 | +(merge-rule "\IeC {\textsection }" "§" :string) |
| 127 | +(merge-rule "\IeC {\textbrokenbar }" "¦" :string) |
| 128 | +(merge-rule "\IeC {\textcent }" "¢" :string) |
| 129 | +(merge-rule "\IeC {\textcurrency }" "¤" :string) |
| 130 | +(merge-rule "\IeC {\textdegree }" "°" :string) |
| 131 | +(merge-rule "\IeC {\textexclamdown }" "¡" :string) |
| 132 | +(merge-rule "\IeC {\texthbar }" "ħ" :string) |
| 133 | +(merge-rule "\IeC {\textHbar }" "Ħ" :string) |
| 134 | +(merge-rule "\IeC {\textonehalf }" "½" :string) |
| 135 | +(merge-rule "\IeC {\textonequarter }" "¼" :string) |
| 136 | +(merge-rule "\IeC {\textordfeminine }" "ª" :string) |
| 137 | +(merge-rule "\IeC {\textordmasculine }" "º" :string) |
| 138 | +(merge-rule "\IeC {\textperiodcentered }" "·" :string) |
| 139 | +(merge-rule "\IeC {\textquestiondown }" "¿" :string) |
| 140 | +(merge-rule "\IeC {\textregistered }" "®" :string) |
| 141 | +(merge-rule "\IeC {\textthreequarters }" "¾" :string) |
| 142 | +(merge-rule "\IeC {\textyen }" "¥" :string) |
| 143 | +(merge-rule "\IeC {\th }" "þ" :string) |
| 144 | +(merge-rule "\IeC {\TH }" "Þ" :string) |
| 145 | +(merge-rule "\IeC {\'I}" "Í" :string) |
| 146 | +(merge-rule "\IeC {\`I}" "Ì" :string) |
| 147 | +(merge-rule "\IeC {\^I}" "Î" :string) |
| 148 | +(merge-rule "\IeC {\~"I}" "Ï" :string) |
| 149 | +(merge-rule "\IeC {\.I}" "İ" :string) |
| 150 | +(merge-rule "\IeC {\^J}" "Ĵ" :string) |
| 151 | +(merge-rule "\IeC {\k a}" "ą" :string) |
| 152 | +(merge-rule "\IeC {\k A}" "Ą" :string) |
| 153 | +(merge-rule "\IeC {\k e}" "ę" :string) |
| 154 | +(merge-rule "\IeC {\k E}" "Ę" :string) |
| 155 | +(merge-rule "\IeC {\'l}" "ĺ" :string) |
| 156 | +(merge-rule "\IeC {\'L}" "Ĺ" :string) |
| 157 | +(merge-rule "\IeC {\textlnot }" "¬" :string) |
| 158 | +(merge-rule "\IeC {\textmu }" "µ" :string) |
| 159 | +(merge-rule "\IeC {\'n}" "ń" :string) |
| 160 | +(merge-rule "\IeC {\'N}" "Ń" :string) |
| 161 | +(merge-rule "\IeC {\~~n}" "ñ" :string) |
| 162 | +(merge-rule "\IeC {\~~N}" "Ñ" :string) |
| 163 | +(merge-rule "\IeC {\'o}" "ó" :string) |
| 164 | +(merge-rule "\IeC {\'O}" "Ó" :string) |
| 165 | +(merge-rule "\IeC {\`o}" "ò" :string) |
| 166 | +(merge-rule "\IeC {\`O}" "Ò" :string) |
| 167 | +(merge-rule "\IeC {\^o}" "ô" :string) |
| 168 | +(merge-rule "\IeC {\^O}" "Ô" :string) |
| 169 | +(merge-rule "\IeC {\~"o}" "ö" :string) |
| 170 | +(merge-rule "\IeC {\~"O}" "Ö" :string) |
| 171 | +(merge-rule "\IeC {\~~o}" "õ" :string) |
| 172 | +(merge-rule "\IeC {\~~O}" "Õ" :string) |
| 173 | +(merge-rule "\IeC {\textpm }" "±" :string) |
| 174 | +(merge-rule "\IeC {\r a}" "å" :string) |
| 175 | +(merge-rule "\IeC {\r A}" "Å" :string) |
| 176 | +(merge-rule "\IeC {\'r}" "ŕ" :string) |
| 177 | +(merge-rule "\IeC {\'R}" "Ŕ" :string) |
| 178 | +(merge-rule "\IeC {\r u}" "ů" :string) |
| 179 | +(merge-rule "\IeC {\r U}" "Ů" :string) |
| 180 | +(merge-rule "\IeC {\'s}" "ś" :string) |
| 181 | +(merge-rule "\IeC {\'S}" "Ś" :string) |
| 182 | +(merge-rule "\IeC {\^s}" "ŝ" :string) |
| 183 | +(merge-rule "\IeC {\^S}" "Ŝ" :string) |
| 184 | +(merge-rule "\IeC {\textasciidieresis }" "¨" :string) |
| 185 | +(merge-rule "\IeC {\textasciimacron }" "¯" :string) |
| 186 | +(merge-rule "\IeC {\.{}}" "˙" :string) |
| 187 | +(merge-rule "\IeC {\textasciiacute }" "´" :string) |
| 188 | +(merge-rule "\IeC {\texttimes }" "×" :string) |
| 189 | +(merge-rule "\IeC {\u a}" "ă" :string) |
| 190 | +(merge-rule "\IeC {\u A}" "Ă" :string) |
| 191 | +(merge-rule "\IeC {\u g}" "ğ" :string) |
| 192 | +(merge-rule "\IeC {\u G}" "Ğ" :string) |
| 193 | +(merge-rule "\IeC {\textasciibreve }" "˘" :string) |
| 194 | +(merge-rule "\IeC {\'u}" "ú" :string) |
| 195 | +(merge-rule "\IeC {\'U}" "Ú" :string) |
| 196 | +(merge-rule "\IeC {\`u}" "ù" :string) |
| 197 | +(merge-rule "\IeC {\`U}" "Ù" :string) |
| 198 | +(merge-rule "\IeC {\^u}" "û" :string) |
| 199 | +(merge-rule "\IeC {\^U}" "Û" :string) |
| 200 | +(merge-rule "\IeC {\~"u}" "ü" :string) |
| 201 | +(merge-rule "\IeC {\~"U}" "Ü" :string) |
| 202 | +(merge-rule "\IeC {\u u}" "ŭ" :string) |
| 203 | +(merge-rule "\IeC {\u U}" "Ŭ" :string) |
| 204 | +(merge-rule "\IeC {\v c}" "č" :string) |
| 205 | +(merge-rule "\IeC {\v C}" "Č" :string) |
| 206 | +(merge-rule "\IeC {\v d}" "ď" :string) |
| 207 | +(merge-rule "\IeC {\v D}" "Ď" :string) |
| 208 | +(merge-rule "\IeC {\v e}" "ě" :string) |
| 209 | +(merge-rule "\IeC {\v E}" "Ě" :string) |
| 210 | +(merge-rule "\IeC {\v l}" "ľ" :string) |
| 211 | +(merge-rule "\IeC {\v L}" "Ľ" :string) |
| 212 | +(merge-rule "\IeC {\v n}" "ň" :string) |
| 213 | +(merge-rule "\IeC {\v N}" "Ň" :string) |
| 214 | +(merge-rule "\IeC {\v r}" "ř" :string) |
| 215 | +(merge-rule "\IeC {\v R}" "Ř" :string) |
| 216 | +(merge-rule "\IeC {\v s}" "š" :string) |
| 217 | +(merge-rule "\IeC {\v S}" "Š" :string) |
| 218 | +(merge-rule "\IeC {\textasciicaron }" "ˇ" :string) |
| 219 | +(merge-rule "\IeC {\v t}" "ť" :string) |
| 220 | +(merge-rule "\IeC {\v T}" "Ť" :string) |
| 221 | +(merge-rule "\IeC {\v z}" "ž" :string) |
| 222 | +(merge-rule "\IeC {\v Z}" "Ž" :string) |
| 223 | +(merge-rule "\IeC {\'y}" "ý" :string) |
| 224 | +(merge-rule "\IeC {\'Y}" "Ý" :string) |
| 225 | +(merge-rule "\IeC {\~"y}" "ÿ" :string) |
| 226 | +(merge-rule "\IeC {\'z}" "ź" :string) |
| 227 | +(merge-rule "\IeC {\'Z}" "Ź" :string) |
| 228 | +(merge-rule "\IeC {\.z}" "ż" :string) |
| 229 | +(merge-rule "\IeC {\.Z}" "Ż" :string) |
| 230 | +;; letters not in Latin1, 2, 3 but available in TeX T1 font encoding |
| 231 | +(merge-rule "\IeC {\~"Y}" "Ÿ" :string) |
| 232 | +(merge-rule "\IeC {\NG }" "Ŋ" :string) |
| 233 | +(merge-rule "\IeC {\ng }" "ŋ" :string) |
| 234 | +(merge-rule "\IeC {\OE }" "Œ" :string) |
| 235 | +(merge-rule "\IeC {\oe }" "œ" :string) |
| 236 | +(merge-rule "\IeC {\IJ }" "IJ" :string) |
| 237 | +(merge-rule "\IeC {\ij }" "ij" :string) |
| 238 | +(merge-rule "\IeC {\j }" "ȷ" :string) |
| 239 | +(merge-rule "\IeC {\SS }" "ẞ" :string) |
0 commit comments