| 1 |
% @psencodingfile{ |
| 2 |
% author = "Y&Y, Inc.", |
| 3 |
% version = "1.1", |
| 4 |
% date = "1 December 1996", |
| 5 |
% filename = "texnansi.enc", |
| 6 |
% email = "[email protected]", |
| 7 |
% address = "45 Walden Street // Concord, MA 01742, USA", |
| 8 |
% codetable = "ISO/ASCII", |
| 9 |
% checksum = "xx", |
| 10 |
% docstring = "Encoding for fonts in Adobe Type 1 format for use with TeX." |
| 11 |
% } |
| 12 |
% |
| 13 |
% The idea is to have all 228 characters normally included in Type 1 text |
| 14 |
% fonts (plus a few more) available for typesetting. This is effectively |
| 15 |
% the character set in Adobe Standard Encoding, ISO Latin 1, plus a few more. |
| 16 |
% |
| 17 |
% Character code assignments were made as follows: |
| 18 |
% |
| 19 |
% (1) The character layout largely matches `ASCII' in the 32 -- 126 range, |
| 20 |
% except for `circumflex' in 94 and `tilde' in 126, to match `TeX text' |
| 21 |
% (`asciicircumflex' and `asciitilde' appear in 158 and 142 instead). |
| 22 |
% |
| 23 |
% (2) The character layout matches `Windows ANSI' in almost all places, |
| 24 |
% except for `quoteright' in 39 and `quoteleft' in 96 to match ASCII |
| 25 |
% (`quotesingle' and `grave' appear in 129 and 18 instead). |
| 26 |
% |
| 27 |
% (3) The character layout matches `TeX typewriter' used by CM text fonts |
| 28 |
% in most places (except for discordant positions such as hungarumlaut |
| 29 |
% (instead of braceright), dotaccent (instead of underscore) etc. |
| 30 |
% |
| 31 |
% (4) Remaining characters are assigned arbitrarily to the `control character' |
| 32 |
% range (0 -- 31), avoiding 0, 9, 10 and 13 in case we meet dumb software |
| 33 |
% - similarly one should really avoid 127 and 128 if possible. |
| 34 |
% In addition, the 8 open slots in Windows ANSI between 128 and 159 are used. |
| 35 |
% |
| 36 |
% (5) Y&Y Lucida Bright includes some extra ligatures and such; ff, ffi, ffl, |
| 37 |
% and `dotlessj,' these are included 11 -- 15, and 17. |
| 38 |
% |
| 39 |
% (6) Hyphen appears both at 45 and 173 for compatibility with both ASCII |
| 40 |
% and Windows ANSI. |
| 41 |
% |
| 42 |
% (7) It doesn't really matter where ligatures appear (both real, such as ffi, |
| 43 |
% and pseudo such as ---) since these should not be accessed directly, only |
| 44 |
% via ligature information in the TFM file. |
| 45 |
% |
| 46 |
% SAMPLE USAGE (in `psfonts.map' file for DVIPS): |
| 47 |
% |
| 48 |
% lbr LucidaBright "TeXnANSIEncoding ReEncodeFont" <texnansi.enc <lbr.pfb |
| 49 |
% |
| 50 |
% This tells DVIPS that the font called `lbr' in TeX has PostScript |
| 51 |
% FontName `LucidaBright.' It also asks DVIPS to expand the file `lbr.pfb' |
| 52 |
% into PFA form, to include the attached `texnansi.enc' encoding vector, |
| 53 |
% and to then actually reencode the font based on that encoding vector. |
| 54 |
% |
| 55 |
% Revised 1996 June 1 by adding second position for `fl' to avoid Acrobat bug. |
| 56 |
% Revised 1996 June 1 by adding second position for `fraction' for same reason. |
| 57 |
% Revised 1997 Oct 1 by adding cwm (used in boundary char TFM code) |
| 58 |
% Revised 1998 Mar 1 by adding Unicode for Euro character |
| 59 |
% |
| 60 |
/TeXnANSIEncoding [ |
| 61 |
/.notdef % 0 |
| 62 |
/Euro % /Uni20AC 1 |
| 63 |
/.notdef % 2 |
| 64 |
/.notdef % 3 |
| 65 |
/fraction % 4 |
| 66 |
/dotaccent % 5 |
| 67 |
/hungarumlaut % 6 |
| 68 |
/ogonek % 7 |
| 69 |
/fl % 8 |
| 70 |
/.notdef % /fraction % 9 not used (see 4), backward compatability only |
| 71 |
/cwm % 10 not used, except boundary char internally maybe |
| 72 |
/ff % 11 |
| 73 |
/fi % 12 |
| 74 |
/.notdef % /fl % 13 not used (see 8), backward compatability only |
| 75 |
/ffi % 14 |
| 76 |
/ffl % 15 |
| 77 |
/dotlessi % 16 |
| 78 |
/dotlessj % 17 |
| 79 |
/grave % 18 |
| 80 |
/acute % 19 |
| 81 |
/caron % 20 |
| 82 |
/breve % 21 |
| 83 |
/macron % 22 |
| 84 |
/ring % 23 |
| 85 |
/cedilla % 24 |
| 86 |
/germandbls % 25 |
| 87 |
/ae % 26 |
| 88 |
/oe % 27 |
| 89 |
/oslash % 28 |
| 90 |
/AE % 29 |
| 91 |
/OE % 30 |
| 92 |
/Oslash % 31 |
| 93 |
/space % 32 % /suppress in TeX text |
| 94 |
/exclam % 33 |
| 95 |
/quotedbl % 34 % /quotedblright in TeX text |
| 96 |
/numbersign % 35 |
| 97 |
/dollar % 36 |
| 98 |
/percent % 37 |
| 99 |
/ampersand % 38 |
| 100 |
/quoteright % 39 % /quotesingle in ANSI |
| 101 |
/parenleft % 40 |
| 102 |
/parenright % 41 |
| 103 |
/asterisk % 42 |
| 104 |
/plus % 43 |
| 105 |
/comma % 44 |
| 106 |
/hyphen % 45 |
| 107 |
/period % 46 |
| 108 |
/slash % 47 |
| 109 |
/zero % 48 |
| 110 |
/one % 49 |
| 111 |
/two % 50 |
| 112 |
/three % 51 |
| 113 |
/four % 52 |
| 114 |
/five % 53 |
| 115 |
/six % 54 |
| 116 |
/seven % 55 |
| 117 |
/eight % 56 |
| 118 |
/nine % 57 |
| 119 |
/colon % 58 |
| 120 |
/semicolon % 59 |
| 121 |
/less % 60 % /exclamdown in Tex text |
| 122 |
/equal % 61 |
| 123 |
/greater % 62 % /questiondown in TeX text |
| 124 |
/question % 63 |
| 125 |
/at % 64 |
| 126 |
/A % 65 |
| 127 |
/B % 66 |
| 128 |
/C % 67 |
| 129 |
/D % 68 |
| 130 |
/E % 69 |
| 131 |
/F % 70 |
| 132 |
/G % 71 |
| 133 |
/H % 72 |
| 134 |
/I % 73 |
| 135 |
/J % 74 |
| 136 |
/K % 75 |
| 137 |
/L % 76 |
| 138 |
/M % 77 |
| 139 |
/N % 78 |
| 140 |
/O % 79 |
| 141 |
/P % 80 |
| 142 |
/Q % 81 |
| 143 |
/R % 82 |
| 144 |
/S % 83 |
| 145 |
/T % 84 |
| 146 |
/U % 85 |
| 147 |
/V % 86 |
| 148 |
/W % 87 |
| 149 |
/X % 88 |
| 150 |
/Y % 89 |
| 151 |
/Z % 90 |
| 152 |
/bracketleft % 91 |
| 153 |
/backslash % 92 % /quotedblleft in TeX text |
| 154 |
/bracketright % 93 |
| 155 |
/circumflex % 94 % /asciicircum in ASCII |
| 156 |
/underscore % 95 % /dotaccent in TeX text |
| 157 |
/quoteleft % 96 % /grave accent in ANSI |
| 158 |
/a % 97 |
| 159 |
/b % 98 |
| 160 |
/c % 99 |
| 161 |
/d % 100 |
| 162 |
/e % 101 |
| 163 |
/f % 102 |
| 164 |
/g % 103 |
| 165 |
/h % 104 |
| 166 |
/i % 105 |
| 167 |
/j % 106 |
| 168 |
/k % 107 |
| 169 |
/l % 108 |
| 170 |
/m % 109 |
| 171 |
/n % 110 |
| 172 |
/o % 111 |
| 173 |
/p % 112 |
| 174 |
/q % 113 |
| 175 |
/r % 114 |
| 176 |
/s % 115 |
| 177 |
/t % 116 |
| 178 |
/u % 117 |
| 179 |
/v % 118 |
| 180 |
/w % 119 |
| 181 |
/x % 120 |
| 182 |
/y % 121 |
| 183 |
/z % 122 |
| 184 |
/braceleft % 123 % /endash in TeX text |
| 185 |
/bar % 124 % /emdash in TeX test |
| 186 |
/braceright % 125 % /hungarumlaut in TeX text |
| 187 |
/tilde % 126 % /asciitilde in ASCII |
| 188 |
/dieresis % 127 not used (see 168), use higher up instead |
| 189 |
/Lslash % 128 this position is unfortunate, but now too late to fix |
| 190 |
/quotesingle % 129 |
| 191 |
/quotesinglbase % 130 |
| 192 |
/florin % 131 |
| 193 |
/quotedblbase % 132 |
| 194 |
/ellipsis % 133 |
| 195 |
/dagger % 134 |
| 196 |
/daggerdbl % 135 |
| 197 |
/circumflex % 136 |
| 198 |
/perthousand % 137 |
| 199 |
/Scaron % 138 |
| 200 |
/guilsinglleft % 139 |
| 201 |
/OE % 140 |
| 202 |
/Zcaron % 141 |
| 203 |
/asciicircum % 142 |
| 204 |
/minus % 143 |
| 205 |
/lslash % 144 |
| 206 |
/quoteleft % 145 |
| 207 |
/quoteright % 146 |
| 208 |
/quotedblleft % 147 |
| 209 |
/quotedblright % 148 |
| 210 |
/bullet % 149 |
| 211 |
/endash % 150 |
| 212 |
/emdash % 151 |
| 213 |
/tilde % 152 |
| 214 |
/trademark % 153 |
| 215 |
/scaron % 154 |
| 216 |
/guilsinglright % 155 |
| 217 |
/oe % 156 |
| 218 |
/zcaron % 157 |
| 219 |
/asciitilde % 158 |
| 220 |
/Ydieresis % 159 |
| 221 |
/nbspace % 160 % /space (no break space) |
| 222 |
/exclamdown % 161 |
| 223 |
/cent % 162 |
| 224 |
/sterling % 163 |
| 225 |
/currency % 164 |
| 226 |
/yen % 165 |
| 227 |
/brokenbar % 166 |
| 228 |
/section % 167 |
| 229 |
/dieresis % 168 |
| 230 |
/copyright % 169 |
| 231 |
/ordfeminine % 170 |
| 232 |
/guillemotleft % 171 |
| 233 |
/logicalnot % 172 |
| 234 |
/sfthyphen % 173 % /hyphen (hanging hyphen) |
| 235 |
/registered % 174 |
| 236 |
/macron % 175 |
| 237 |
/degree % 176 |
| 238 |
/plusminus % 177 |
| 239 |
/twosuperior % 178 |
| 240 |
/threesuperior % 179 |
| 241 |
/acute % 180 |
| 242 |
/mu % 181 |
| 243 |
/paragraph % 182 |
| 244 |
/periodcentered % 183 |
| 245 |
/cedilla % 184 |
| 246 |
/onesuperior % 185 |
| 247 |
/ordmasculine % 186 |
| 248 |
/guillemotright % 187 |
| 249 |
/onequarter % 188 |
| 250 |
/onehalf % 189 |
| 251 |
/threequarters % 190 |
| 252 |
/questiondown % 191 |
| 253 |
/Agrave % 192 |
| 254 |
/Aacute % 193 |
| 255 |
/Acircumflex % 194 |
| 256 |
/Atilde % 195 |
| 257 |
/Adieresis % 196 |
| 258 |
/Aring % 197 |
| 259 |
/AE % 198 |
| 260 |
/Ccedilla % 199 |
| 261 |
/Egrave % 200 |
| 262 |
/Eacute % 201 |
| 263 |
/Ecircumflex % 202 |
| 264 |
/Edieresis % 203 |
| 265 |
/Igrave % 204 |
| 266 |
/Iacute % 205 |
| 267 |
/Icircumflex % 206 |
| 268 |
/Idieresis % 207 |
| 269 |
/Eth % 208 |
| 270 |
/Ntilde % 209 |
| 271 |
/Ograve % 210 |
| 272 |
/Oacute % 211 |
| 273 |
/Ocircumflex % 212 |
| 274 |
/Otilde % 213 |
| 275 |
/Odieresis % 214 |
| 276 |
/multiply % 215 % OE in T1 |
| 277 |
/Oslash % 216 |
| 278 |
/Ugrave % 217 |
| 279 |
/Uacute % 218 |
| 280 |
/Ucircumflex % 219 |
| 281 |
/Udieresis % 220 |
| 282 |
/Yacute % 221 |
| 283 |
/Thorn % 222 |
| 284 |
/germandbls % 223 |
| 285 |
/agrave % 224 |
| 286 |
/aacute % 225 |
| 287 |
/acircumflex % 226 |
| 288 |
/atilde % 227 |
| 289 |
/adieresis % 228 |
| 290 |
/aring % 229 |
| 291 |
/ae % 230 |
| 292 |
/ccedilla % 231 |
| 293 |
/egrave % 232 |
| 294 |
/eacute % 233 |
| 295 |
/ecircumflex % 234 |
| 296 |
/edieresis % 235 |
| 297 |
/igrave % 236 |
| 298 |
/iacute % 237 |
| 299 |
/icircumflex % 238 |
| 300 |
/idieresis % 239 |
| 301 |
/eth % 240 |
| 302 |
/ntilde % 241 |
| 303 |
/ograve % 242 |
| 304 |
/oacute % 243 |
| 305 |
/ocircumflex % 244 |
| 306 |
/otilde % 245 |
| 307 |
/odieresis % 246 |
| 308 |
/divide % 247 % oe in T1 |
| 309 |
/oslash % 248 |
| 310 |
/ugrave % 249 |
| 311 |
/uacute % 250 |
| 312 |
/ucircumflex % 251 |
| 313 |
/udieresis % 252 |
| 314 |
/yacute % 253 |
| 315 |
/thorn % 254 |
| 316 |
/ydieresis % 255 % germandbls in T1 |
| 317 |
] def |