summaryrefslogtreecommitdiff
path: root/info/fontname/texnansi.enc
blob: cb75386e04ac15032d0e9e78bbed51febcb3c127 (plain)
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
% @psencodingfile{
%   date = "22apr09",
%   filename = "texnansi.enc",
%   email = "tex-fonts@tug.org",
%   author = "Y&Y, Inc.",
%   version = "1.1",
%   codetable = "ISO/ASCII",
%   docstring = "texnansi (aka LY1) encoding vector for Type 1 fonts to
%                be used with TeX, following ASCII and Windows ANSI."
% }
%
% The idea is to have all 228 characters normally included in Type 1 text
% fonts (plus a few more) available for typesetting.  This is effectively
% the character set in Adobe Standard Encoding, ISO Latin 1, plus a few more.
%
% Character code assignments were made as follows:
%
% (1) The character layout largely matches `ASCII' in the 32 -- 126 range,
% except for `circumflex' in 94 and `tilde' in 126, to match `TeX text'
% (`asciicircumflex' and `asciitilde' appear in 158 and 142 instead).
%
% (2) The character layout matches `Windows ANSI' in almost all places,
% except for `quoteright' in 39 and `quoteleft' in 96 to match ASCII
% (`quotesingle' and `grave' appear in 129 and 18 instead).
%
% (3) The character layout matches `TeX typewriter' used by CM text fonts
% in most places (except for discordant positions such as hungarumlaut
% (instead of braceright), dotaccent (instead of underscore) etc.
%
% (4) Remaining characters are assigned arbitrarily to the `control character'
% range (0 -- 31), avoiding 0, 9, 10 and 13 in case we meet dumb software
% - similarly one should really avoid 127 and 128 if possible.
% In addition, the 8 open slots in Windows ANSI between 128 and 159 are used.
%
% (5) Y&Y Lucida Bright includes some extra ligatures and such; ff, ffi, ffl,
% and `dotlessj,' these are included 11 -- 15, and 17.
%
% (6) Hyphen appears both at 45 and 173 for compatibility with both ASCII
% and Windows ANSI.
%
% (7) It doesn't really matter where ligatures appear (both real, such as ffi,
% and pseudo such as ---) since these should not be accessed directly, only
% via ligature information in the TFM file.
%
% SAMPLE USAGE (in `psfonts.map' file for DVIPS):
% 
% lbr LucidaBright "TeXnANSIEncoding ReEncodeFont" <texnansi.enc <lbr.pfb
%
% This tells DVIPS that the font called `lbr' in TeX has PostScript 
% FontName `LucidaBright.'  It also asks DVIPS to expand the file `lbr.pfb'
% into PFA form, to include the attached `texnansi.enc' encoding vector,
% and to then actually reencode the font based on that encoding vector.
%
% Revised 2009 April 20 with doc changes only (Uni20AC -> uni20ac).
% Revised 2009 March 9 with doc changes only.
% Revised 1996 June 1 by adding second position for `fl' to avoid Acrobat bug.
% Revised 1996 June 1 by adding second position for `fraction' for same reason.
% Revised 1997 Oct 1 by adding cwm (used in boundary char TFM code).
% Revised 1998 Mar 1 by adding Unicode for Euro character.
% emacs-page
% 
/TeXnANSIEncoding [     % now 256 chars follow
/.notdef                % 0x00 0
/Euro                   % 0x01 1 /uni20AC
/.notdef                % 0x02 2
/.notdef                % 0x03 3
/fraction               % 0x04 4
/dotaccent              % 0x05 5
/hungarumlaut           % 0x06 6
/ogonek                 % 0x07 7
/fl                     % 0x08 8
/.notdef                % 0x09 9 /fraction at 4, backward compatibility only
/cwm                    % 0x0A 10 not used, except boundary char internally
/ff                     % 0x0B 11
/fi                     % 0x0C 12
/.notdef                % 0x0D 13 /fl at 8, backward compatibility only
/ffi                    % 0x0E 14
/ffl                    % 0x0F 15
/dotlessi               % 0x10 16
/dotlessj               % 0x11 17
/grave                  % 0x12 18
/acute                  % 0x13 19
/caron                  % 0x14 20
/breve                  % 0x15 21
/macron                 % 0x16 22
/ring                   % 0x17 23
/cedilla                % 0x18 24
/germandbls             % 0x19 25
/ae                     % 0x1A 26
/oe                     % 0x1B 27
/oslash                 % 0x1C 28
/AE                     % 0x1D 29
/OE                     % 0x1E 30
/Oslash                 % 0x1F 31
/space                  % 0x20 32 /suppress in TeX text
/exclam                 % 0x21 33
/quotedbl               % 0x22 34 /quotedblright in TeX text
/numbersign             % 0x23 35
/dollar                 % 0x24 36
/percent                % 0x25 37
/ampersand              % 0x26 38
/quoteright             % 0x27 39 /quotesingle in ANSI
/parenleft              % 0x28 40
/parenright             % 0x29 41
/asterisk               % 0x2A 42
/plus                   % 0x2B 43
/comma                  % 0x2C 44
/hyphen                 % 0x2D 45
/period                 % 0x2E 46
/slash                  % 0x2F 47
/zero                   % 0x30 48
/one                    % 0x31 49
/two                    % 0x32 50
/three                  % 0x33 51
/four                   % 0x34 52
/five                   % 0x35 53
/six                    % 0x36 54
/seven                  % 0x37 55
/eight                  % 0x38 56
/nine                   % 0x39 57
/colon                  % 0x3A 58
/semicolon              % 0x3B 59
/less                   % 0x3C 60 /exclamdown in Tex text
/equal                  % 0x3D 61
/greater                % 0x3E 62 /questiondown in TeX text
/question               % 0x3F 63
/at                     % 0x40 64
/A                      % 0x41 65
/B                      % 0x42 66
/C                      % 0x43 67
/D                      % 0x44 68
/E                      % 0x45 69
/F                      % 0x46 70
/G                      % 0x47 71
/H                      % 0x48 72
/I                      % 0x49 73
/J                      % 0x4A 74
/K                      % 0x4B 75
/L                      % 0x4C 76
/M                      % 0x4D 77
/N                      % 0x4E 78
/O                      % 0x4F 79
/P                      % 0x50 80
/Q                      % 0x51 81
/R                      % 0x52 82
/S                      % 0x53 83
/T                      % 0x54 84
/U                      % 0x55 85
/V                      % 0x56 86
/W                      % 0x57 87
/X                      % 0x58 88
/Y                      % 0x59 89
/Z                      % 0x5A 90
/bracketleft            % 0x5B 91
/backslash              % 0x5C 92 /quotedblleft in TeX text
/bracketright           % 0x5D 93
/circumflex             % 0x5E 94 /asciicircum in ASCII
/underscore             % 0x5F 95 /dotaccent in TeX text
/quoteleft              % 0x60 96 /grave accent in ANSI
/a                      % 0x61 97
/b                      % 0x62 98
/c                      % 0x63 99
/d                      % 0x64 100
/e                      % 0x65 101
/f                      % 0x66 102
/g                      % 0x67 103
/h                      % 0x68 104
/i                      % 0x69 105
/j                      % 0x6A 106
/k                      % 0x6B 107
/l                      % 0x6C 108
/m                      % 0x6D 109
/n                      % 0x6E 110
/o                      % 0x6F 111
/p                      % 0x70 112
/q                      % 0x71 113
/r                      % 0x72 114
/s                      % 0x73 115
/t                      % 0x74 116
/u                      % 0x75 117
/v                      % 0x76 118
/w                      % 0x77 119
/x                      % 0x78 120
/y                      % 0x79 121
/z                      % 0x7A 122
/braceleft              % 0x7B 123 /endash in TeX text
/bar                    % 0x7C 124 /emdash in TeX test
/braceright             % 0x7D 125 /hungarumlaut in TeX text
/tilde                  % 0x7E 126 /asciitilde in ASCII
/dieresis               % 0x7F 127 also at 168
/Lslash                 % 0x80 128 position is unfortunate, but too late to fix
/quotesingle            % 0x81 129
/quotesinglbase         % 0x82 130
/florin                 % 0x83 131
/quotedblbase           % 0x84 132
/ellipsis               % 0x85 133
/dagger                 % 0x86 134
/daggerdbl              % 0x87 135
/circumflex             % 0x88 136
/perthousand            % 0x89 137
/Scaron                 % 0x8A 138
/guilsinglleft          % 0x8B 139
/OE                     % 0x8C 140
/Zcaron                 % 0x8D 141
/asciicircum            % 0x8E 142
/minus                  % 0x8F 143
/lslash                 % 0x90 144
/quoteleft              % 0x91 145
/quoteright             % 0x92 146
/quotedblleft           % 0x93 147
/quotedblright          % 0x94 148
/bullet                 % 0x95 149
/endash                 % 0x96 150
/emdash                 % 0x97 151
/tilde                  % 0x98 152
/trademark              % 0x99 153
/scaron                 % 0x9A 154
/guilsinglright         % 0x9B 155
/oe                     % 0x9C 156
/zcaron                 % 0x9D 157
/asciitilde             % 0x9E 158
/Ydieresis              % 0x9F 159
/nbspace                % 0xA0 160 no break space
/exclamdown             % 0xA1 161
/cent                   % 0xA2 162
/sterling               % 0xA3 163
/currency               % 0xA4 164
/yen                    % 0xA5 165
/brokenbar              % 0xA6 166
/section                % 0xA7 167
/dieresis               % 0xA8 168
/copyright              % 0xA9 169
/ordfeminine            % 0xAA 170
/guillemotleft          % 0xAB 171
/logicalnot             % 0xAC 172
/sfthyphen              % 0xAD 173 /hyphen (hanging hyphen)
/registered             % 0xAE 174
/macron                 % 0xAF 175
/degree                 % 0xB0 176
/plusminus              % 0xB1 177
/twosuperior            % 0xB2 178
/threesuperior          % 0xB3 179
/acute                  % 0xB4 180
/mu                     % 0xB5 181
/paragraph              % 0xB6 182
/periodcentered         % 0xB7 183
/cedilla                % 0xB8 184
/onesuperior            % 0xB9 185
/ordmasculine           % 0xBA 186
/guillemotright         % 0xBB 187
/onequarter             % 0xBC 188
/onehalf                % 0xBD 189
/threequarters          % 0xBE 190
/questiondown           % 0xBF 191
/Agrave                 % 0xC0 192
/Aacute                 % 0xC1 193
/Acircumflex            % 0xC2 194
/Atilde                 % 0xC3 195
/Adieresis              % 0xC4 196
/Aring                  % 0xC5 197
/AE                     % 0xC6 198
/Ccedilla               % 0xC7 199
/Egrave                 % 0xC8 200
/Eacute                 % 0xC9 201
/Ecircumflex            % 0xCA 202
/Edieresis              % 0xCB 203
/Igrave                 % 0xCC 204
/Iacute                 % 0xCD 205
/Icircumflex            % 0xCE 206
/Idieresis              % 0xCF 207
/Eth                    % 0xD0 208
/Ntilde                 % 0xD1 209
/Ograve                 % 0xD2 210
/Oacute                 % 0xD3 211
/Ocircumflex            % 0xD4 212
/Otilde                 % 0xD5 213
/Odieresis              % 0xD6 214
/multiply               % 0xD7 215 OE in T1
/Oslash                 % 0xD8 216
/Ugrave                 % 0xD9 217
/Uacute                 % 0xDA 218
/Ucircumflex            % 0xDB 219
/Udieresis              % 0xDC 220
/Yacute                 % 0xDD 221
/Thorn                  % 0xDE 222
/germandbls             % 0xDF 223
/agrave                 % 0xE0 224
/aacute                 % 0xE1 225
/acircumflex            % 0xE2 226
/atilde                 % 0xE3 227
/adieresis              % 0xE4 228
/aring                  % 0xE5 229
/ae                     % 0xE6 230
/ccedilla               % 0xE7 231
/egrave                 % 0xE8 232
/eacute                 % 0xE9 233
/ecircumflex            % 0xEA 234
/edieresis              % 0xEB 235
/igrave                 % 0xEC 236
/iacute                 % 0xED 237
/icircumflex            % 0xEE 238
/idieresis              % 0xEF 239
/eth                    % 0xF0 240
/ntilde                 % 0xF1 241
/ograve                 % 0xF2 242
/oacute                 % 0xF3 243
/ocircumflex            % 0xF4 244
/otilde                 % 0xF5 245
/odieresis              % 0xF6 246
/divide                 % 0xF7 247 oe in T1
/oslash                 % 0xF8 248
/ugrave                 % 0xF9 249
/uacute                 % 0xFA 250
/ucircumflex            % 0xFB 251
/udieresis              % 0xFC 252
/yacute                 % 0xFD 253
/thorn                  % 0xFE 254
/ydieresis              % 0xFF 255 germandbls in T1
] def