1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
|
/*
* iso2tex.c: Map ISO-Font Symbols to appropriate sequences in TeX
* Copyright (c) 1992 Herbert Bauer and B. Raichle
* Parts Copyright (c) 1999, 2002, 2007 by Brian V. Smith
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
* nonexclusive right and license to deal in this software and documentation
* files (the "Software"), including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense and/or sell copies
* of the Software, and to permit persons who receive copies from any such
* party to do so, with the only requirement being that the above copyright
* and this permission notice remain intact.
*
*/
/*
* map ISO-Font Symbols to appropriate sequences in TeX
* Herbert Bauer 22.11.1991
*
* B.Raichle 12.10.92, changed some of the definitions
*
* T.Kopal 22.3.02, added ISO-8859-2 table
*/
/* ISO-8859-1 encoding table */
char *ISO1toTeX[] = /* starts at octal 240 */
{
"{}",
"{!`}", /* inverse ! */
"{}", /* cent sign (?) */
"\\pounds{}",
"{}", /* circle with x mark */
"{}", /* Yen */
"{}", /* some sort of space - doen't work under mwm */
"\\S{}", /* paragraph sign */
"\\\"{}", /* diaresis points */
"\\copyright{}",
"\\b{a}",
"\\mbox{$\\ll$}", /* << */
"{--}", /* longer dash - doesn't work with mwm */
"{-}", /* short dash */
"{}", /* trademark */
"{}", /* overscore */
/* 0xb0 */
"{\\lower.2ex\\hbox{\\char\\'27}}", /* degree */
"\\mbox{$\\pm$}", /* plus minus - math mode */
"\\mbox{$\\mathsurround 0pt{}^2$}", /* squared - math mode */
"\\mbox{$\\mathsurround 0pt{}^3$}", /* cubed - math mode */
"\\'{}", /* accent egue */
"\\mbox{$\\mu$}", /* greek letter mu - math mode*/
"\\P{}", /* paragraph */
"\\mbox{$\\cdot$}", /* centered dot - math mode */
"",
"\\mbox{$\\mathsurround 0pt{}^1$}", /* superscript 1 - math mode */
"\\b{o}",
"\\mbox{$\\gg$}", /* >> */
"\\mbox{$1\\over 4$}", /* 1/4 - math mode */
"\\mbox{$1\\over 2$}", /* 1/2 - math mode */
"\\mbox{$3\\over 4$}", /* 3/4 - math mode */
"{?`}", /* inverse ? */
/* 0xc0 */
"\\`A",
"\\'A",
"\\^A",
"\\~A",
"\\\"A",
"\\AA{}",
"\\AE{}",
"\\c C",
"\\`E",
"\\'E",
"\\^E",
"\\\"E",
"\\`I",
"\\'I",
"\\^I",
"\\\"I",
/* 0xd0 */
"{\\rlap{\\raise.3ex\\hbox{--}}D}", /* Eth */
"\\~N",
"\\`O",
"\\'O",
"\\^O",
"\\~O",
"\\\"O",
"\\mbox{$\\times$}", /* math mode */
"\\O{}",
"\\`U",
"\\'U",
"\\^U",
"\\\"U",
"\\'Y",
"{}", /* letter P wide-spaced */
"\\ss{}",
/* 0xe0 */
"\\`a",
"\\'a",
"\\^a",
"\\~a",
"\\\"a",
"\\aa{}",
"\\ae{}",
"\\c c",
"\\`e",
"\\'e",
"\\^e",
"\\\"e",
"\\`\\i{}",
"\\'\\i{}",
"\\^\\i{}",
"\\\"\\i{}",
/* 0xf0 */
"\\mbox{$\\partial$}", /* correct? - math mode */
"\\~n",
"\\`o",
"\\'o",
"\\^o",
"\\~o",
"\\\"o",
"\\mbox{$\\div$}", /* math mode */
"\\o{}",
"\\`u",
"\\'u",
"\\^u",
"\\\"u",
"\\'y",
"{}", /* letter p wide-spaced */
"\\\"y"
};
/* ISO-8859-2 encoding table */
char *ISO2toTeX[] = /* starts at octal 240 */
{
"{}", /* no-break space */
"\\k{A}", /* latin capital letter A with ogonek */
"\\u{}", /* breve */
"{\\L}", /* latin capital letter L with stroke */
"{}", /* currency sign */
"\\v{L}", /* latin capital letter L with caron */
"\\'S", /* latin capital letter S with acute */
"\\S{}", /* section sign */
"\\\"{}", /* diaeresis */
"\v{S}", /* latin capital letter S with caron */
"\\c{S}", /* latin capital letter S with cedilla */
"\\v{T}", /* latin capital letter T with caron */
"\\'Z", /* latin capital letter Z with acute */
"{-}", /* soft hyphen */
"\\v{Z}", /* latin capital letter Z with caron */
"\\.Z", /* latin capital letter Z with dot above */
/* 0xb0 */
"{\\lower.2ex\\hbox{\\char\\'27}}", /* degree sign */
"\\k{a}", /* latin small letter A with ogonek */
"\\k{}", /* ogonek */
"{\\l}", /* latin small letter L with stroke */
"\\'{}", /* acute accent */
"\\v{l}", /* latin small letter L with caron */
"\\'s", /* latin small letter S with acute */
"\\v{}", /* caron */
"\\o{}", /* cedilla */
"\\v{s}", /* latin small letter S with caron */
"\\c{s}", /* latin small letter S with cedilla */
"\\v{t}", /* latin small letter T with caron */
"\\'z", /* latin small letter Z with acute */
"\\H{}", /* double acute accent */
"\\v{z}", /* latin small letter Z with caron */
"\\.z", /* latin small letter Z with dot above */
/* 0xc0 */
"\\'R", /* latin capital letter R with acute */
"\\'A", /* latin capital letter A with acute */
"\\^A", /* latin capital letter A with circumflex */
"\\u{A}", /* latin capital letter A with breve */
"\\\"A", /* latin capital letter A with diaeresis */
"\\'L", /* latin capital letter L with acute */
"\\'C", /* latin capital letter C with acute */
"\\c{C}", /* latin capital letter C with cedilla */
"\\v{C}", /* latin capital letter C with caron */
"\\'E", /* latin capital letter E with acute */
"\\k{E}", /* latin capital letter E with ogonek */
"\\\"E", /* latin capital letter E with diaeresis */
"\\v{E}", /* latin capital letter E with caron */
"\\'I", /* latin capital letter I with acute */
"\\^I", /* latin capital letter I with circumflex */
"\\v{D}", /* latin capital letter D with caron */
/* 0xd0 */
"D", /* latin capital letter D with stroke */
"\\'N", /* latin capital letter N with acute */
"\\v{N}", /* latin capital letter N with caron */
"\\'O", /* latin capital letter O with acute */
"\\^O", /* latin capital letter O with circumflex */
"\\H{O}", /* latin capital letter O with double acute */
"\\\"O", /* latin capital letter O with diaeresis */
"\\mbox{$\\times$}", /* multiplication sign */
"\\v{R}", /* latin capital letter R with caron */
"\\v{U}", /* latin capital letter U with ring above */
"\\'U", /* latin capital letter U with acute */
"\\H{U}", /* latin capital letter U with double acute */
"\\\"U", /* latin capital letter U with diaeresis */
"\\'Y", /* latin capital letter Y with acute */
"\\c{T}", /* latin capital letter T with cedilla */
"\\ss{}", /* latin small letter sharp S */
/* 0xe0 */
"\\'r", /* latin small letter R with acute */
"\\'a", /* latin small letter A with acute */
"\\^a", /* latin small letter A with circumflex */
"\\u{a}", /* latin small letter A with breve */
"\\\"a", /* latin small letter A with diaeresis */
"\\'l", /* latin small letter L with acute */
"\\'c", /* latin small letter C with acute */
"\\c{c}", /* latin small letter C with cedilla */
"\\v{c}", /* latin small letter C with caron */
"\\'e", /* latin small letter E with acute */
"\\k{e}", /* latin small letter E with ogonek */
"\\\"e", /* latin small letter E with diaeresis */
"\\v{e}", /* latin small letter E with caron */
"\\'\\i{}", /* latin small letter I with acute */
"\\^\\i{}", /* latin small letter I with circumflex */
"\\v{d}", /* latin small letter D with caron */
/* 0xf0 */
"d", /* latin small letter D with stroke */
"\\'n", /* latin small letter N with acute */
"\\v{n}", /* latin small letter N with caron */
"\\'o", /* latin small letter O with acute */
"\\^o", /* latin small letter O with circumflex */
"\\H{o}", /* latin small letter O with double acute */
"\\\"o", /* latin small letter O with diaeresis */
"\\mbox{$\\div$}", /* division sign */
"\\v{r}", /* latin small letter R with caron */
"\\v{u}", /* latin small letter U with ring above */
"\\'u", /* latin small letter U with acute */
"\\H{u}", /* latin small letter U with double acute */
"\\\"u", /* latin small letter U with diaeresis */
"\\'y", /* latin small letter Y with acute */
"\\c{t}", /* latin small letter T with cedilla */
"\\.{}" /* dot above */
};
|