Debian Codegraph @

texmf-dist/fonts/enc/dvips/cochineal/cochTH-ec.enc

raw
1 % @@psencodingfile@{
2 % date = "24feb10",
3 % filename = "ec.enc",
4 % email = "tex-fonts@@tug.org",
5 % docstring = "This is the EC (aka Cork aka T1) encoding vector
6 % for 8-bit fonts to be used with TeX."
7 % @}
8 %
9 % The original paper can be found on
10 % https://www.tug.org/TUGboat/Articles/tb11-4/tb30ferguson.pdf
11 %
12 % Names of the glyphs try to comply with:
13 % Adobe Glyph List For New Fonts, ver. 1.6, 30 Januaury 2006
14 % http://partners.adobe.com/public/developer/en/opentype/aglfn13.txt
15 % but some exceptions are listed below.
16 %
17 % The following characters are not present in Unicode:
18 % - /perthousandzero = used to compose /perthousand, /pertenthousand, ... out of /percent + this character
19 % - Germandbls = now there is a related character in Unicode,
20 % U+1E9E - LATIN CAPITAL LETTER SHARP S
21 % but probably /S_S ligature name should be used instead
22 %
23 % The following two characters have different Unicode mappings than on the AGL:
24 % - /tcedilla = U+0163 - LATIN SMALL LETTER T WITH CEDILLA
25 % according to AGL it should be /tcommaaccent
26 % - /Tcedilla = U+0162 - LATIN CAPITAL LETTER T WITH CEDILLA
27 % according to AGL it should be /Tcommaaccent
28 % But having /scedilla and /tcommaaccent mixed is even more ugly.
29 %
30 % The following characters are not present on the AGL:
31 % - /dotlessj = U+0237 - LATIN SMALL LETTER DOTLESS J
32 % - /cwm = U+200B - ZERO WIDTH SPACE
33 % - /visiblespace = U+2423 - OPEN BOX
34 % and should probably better be labeled with uniXXXX notation
35 % (though hardly any font has those glyphs anyway).
36 %
37 % The following ligatures are deprecated by recent AGL:
38 % - /ff, /fi, /fl, /ffi, /ffl = /f_i and similar should have been used instead
39 %
40 % Hyphen character:
41 % There are two character named "hyphen". The original article explains
42 % the background of this decision (if one wanted to use a different
43 % hyphenation character and still be able to use the dash). So the first
44 % character should serve as "hyphen char" and the other one as "dash" in
45 % compound words. The character 0x2D is supposed to be the hyphen char,
46 % but since there used to be two characters of the same name in this
47 % file for some time, the tools like afmtotfm have been confused and
48 % remapped the hyphen char to 0x7F automatically. After the second
49 % character's name was changed, hyphenation characters in existing
50 % tfm fonts (generated with the old ec.enc) have disappeared, so the
51 % second character has been renamed back to "hyphen". Anyone generating
52 % tfm fonts is strongly encouraged to make a copy of this file, rename
53 % it and change glyph names as required for their font.
54 %
55 % Other remarks:
56 % - /Eth = U+00D0 - LATIN CAPITAL LETTER ETH
57 % must also be used as /Dcroat
58 % U+0110 - LATIN CAPITAL LETTER D WITH STROKE
59 %
60 % Misleading names and shapes of letters (that lead to different names in past)
61 % - /lcaron = U+013E - LATIN SMALL LETTER L WITH CARON
62 % /lquoteright
63 % - /Lcaron = U+013D - LATIN CAPITAL LETTER L WITH CARON
64 % /Lquoteright
65 % - /dcaron = U+010F - LATIN SMALL LETTER D WITH CARON
66 % /dquoteright
67 % - /tcaron = U+0165 - LATIN SMALL LETTER T WITH CARON
68 % /tquoteright
69 % - /dcroat = U+0111 - LATIN SMALL LETTER D WITH STROKE
70 % /dbar, /dmacron
71 %
72 % - /cwm - /bom, /zerowidthnobreakspace
73 % - /underscore - /underline
74 % - /hyphen.alt - /sfthyphen, /hyphen, /dash
75 %
76 %
77 % Turkish & Romanian
78 % --------------------
79 % EC encoding has been defined to include /tcedilla and /scedilla.
80 % For Turkish one needs /scedilla, while for Romanian one would need
81 % "t with comma below" (/tcommaaccent) and "s with comma below" (/scommaaccent).
82 % "t with cedilla" in not used in any language except in inferior
83 % Romanian typography that can use cedillas instead of commas below.
84 % AGL has a strange mapping as well.
85 %
86 % Without adding an additional character, it is impossible to support both
87 % languages at the same time, so EC is not really best choice for Romanians,
88 % even though it can be "misused" if one replaces both /scedilla and /tcedilla
89 % with /scommaaccent and /tcommaaccent.
90 %
91 % Characters that have been renamed in July 2008:
92 % 0x18 /zeroinferior -> /perthousandzero
93 % 0x20 U+2423 /visualspace -> /visiblespace (if font doesn't have it, use /space)
94 % 0x8D U+014A /Ng -> /Eng
95 % 0x9E U+0111 /dbar -> /dcroat
96 % 0xAD U+014B /ng -> /eng
97 % 0xB4 U+0165 /tquoteright -> /tcaron
98 %
99 % Although these ligatures and kerns are somewhat questionable to have
100 % in an encoding file, they've been here forever, and they are
101 % traditional in the TeX world, so we preserve them.
102 %
103 % LIGKERN question quoteleft =: questiondown ; exclam quoteleft =: exclamdown ;
104 % LIGKERN hyphen hyphen =: endash ; endash hyphen =: emdash ;
105 % LIGKERN quoteleft quoteleft =: quotedblleft ;
106 % LIGKERN quoteright quoteright =: quotedblright ;
107 %
108 % We blow away kerns to and from spaces (TeX doesn't have a
109 % space) and also remove any kerns from the numbers (although
110 % the only kern pair that mentions a number in Times-Roman.afm
111 % is one one.)
112 %
113 % zero {} * ; * {} zero ;
114 % LIGKERN one {} * ; * {} one ; two {} * ; * {} two ;
115 % LIGKERN three {} * ; * {} three ; four {} * ; * {} four ;
116 % LIGKERN five {} * ; * {} five ; six {} * ; * {} six ;
117 % LIGKERN seven {} * ; * {} seven ; eight {} * ; * {} eight ;
118 % LIGKERN nine {} * ; * {} nine ;
119 % LIGKERN comma comma =: quotedblbase ; less less =: guillemotleft ;
120 % LIGKERN greater greater =: guillemotright ;
121 % LIGKERN f f =: uniFB00 ; f i =: uniFB01 ; f l =: uniFB02 ; uniFB00 i =: uniFB03 ; uniFB00 l =: uniFB04 ;
122
123 /cochTH-ECEncoding [ % now 256 chars follow
124 /grave % 0x00 U+0060
125 /acute % 0x01 U+00B4
126 /circumflex % 0x02 U+02C6
127 /tilde % 0x03 U+02DC
128 /dieresis % 0x04 U+00A8
129 /hungarumlaut % 0x05 U+02DD
130 /ring % 0x06 U+02DA
131 /caron % 0x07 U+02C7
132 /breve % 0x08 U+02D8
133 /macron % 0x09 U+00AF
134 /dotaccent % 0x0A U+02D9
135 /cedilla % 0x0B U+00B8
136 /ogonek % 0x0C U+02DB
137 /quotesinglbase % 0x0D U+201A
138 /guilsinglleft % 0x0E U+2039
139 /guilsinglright % 0x0F U+203A
140 /quotedblleft % 0x10 U+201C
141 /quotedblright % 0x11 U+201D
142 /quotedblbase % 0x12 U+201E
143 /guillemotleft % 0x13 U+00AB
144 /guillemotright % 0x14 U+00BB
145 /endash % 0x15 U+2013
146 /emdash % 0x16 U+2014
147 /cwm % 0x17 U+200B
148 /perthousandzero % 0x18 ______
149 /dotlessi % 0x19 U+0131
150 /dotlessj % 0x1A U+0237
151 /uniFB00 % 0x1B U+FB00
152 /uniFB01 % 0x1C U+FB01
153 /uniFB02 % 0x1D U+FB02
154 /uniFB03 % 0x1E U+FB03
155 /uniFB04 % 0x1F U+FB04
156 /visiblespace % 0x20 U+2423
157 /exclam % 0x21
158 /quotedbl % 0x22
159 /numbersign % 0x23
160 /dollar % 0x24
161 /percent % 0x25
162 /ampersand % 0x26
163 /quoteright % 0x27 U+2019
164 /parenleft % 0x28
165 /parenright % 0x29
166 /asterisk % 0x2A
167 /plus % 0x2B
168 /comma % 0x2C
169 /hyphen % 0x2D
170 /period % 0x2E
171 /slash % 0x2F
172 /zero % 0x30
173 /one % 0x31
174 /two % 0x32
175 /three % 0x33
176 /four % 0x34
177 /five % 0x35
178 /six % 0x36
179 /seven % 0x37
180 /eight % 0x38
181 /nine % 0x39
182 /colon % 0x3A
183 /semicolon % 0x3B
184 /less % 0x3C
185 /equal % 0x3D
186 /greater % 0x3E
187 /question % 0x3F
188 /at % 0x40
189 /A % 0x41
190 /B % 0x42
191 /C % 0x43
192 /D % 0x44
193 /E % 0x45
194 /F % 0x46
195 /G % 0x47
196 /H % 0x48
197 /I % 0x49
198 /J % 0x4A
199 /K % 0x4B
200 /L % 0x4C
201 /M % 0x4D
202 /N % 0x4E
203 /O % 0x4F
204 /P % 0x50
205 /Q % 0x51
206 /R % 0x52
207 /S % 0x53
208 /T % 0x54
209 /U % 0x55
210 /V % 0x56
211 /W % 0x57
212 /X % 0x58
213 /Y % 0x59
214 /Z % 0x5A
215 /bracketleft % 0x5B
216 /backslash % 0x5C
217 /bracketright % 0x5D
218 /asciicircum % 0x5E
219 /underscore % 0x5F
220 /quoteleft % 0x60 U+2018
221 /a % 0x61
222 /b % 0x62
223 /c % 0x63
224 /d % 0x64
225 /e % 0x65
226 /f % 0x66
227 /g % 0x67
228 /h % 0x68
229 /i % 0x69
230 /j % 0x6A
231 /k % 0x6B
232 /l % 0x6C
233 /m % 0x6D
234 /n % 0x6E
235 /o % 0x6F
236 /p % 0x70
237 /q % 0x71
238 /r % 0x72
239 /s % 0x73
240 /t % 0x74
241 /u % 0x75
242 /v % 0x76
243 /w % 0x77
244 /x % 0x78
245 /y % 0x79
246 /z % 0x7A
247 /braceleft % 0x7B
248 /bar % 0x7C
249 /braceright % 0x7D
250 /asciitilde % 0x7E
251 /hyphen % 0x7F U+002D (explicit "hyphen char")
252 /Abreve % 0x80 U+0102
253 /Aogonek % 0x81 U+0104
254 /Cacute % 0x82 U+0106
255 /Ccaron % 0x83 U+010C
256 /Dcaron % 0x84 U+010E
257 /Ecaron % 0x85 U+011A
258 /Eogonek % 0x86 U+0118
259 /Gbreve % 0x87 U+011E
260 /Lacute % 0x88 U+0139
261 /Lcaron % 0x89 U+013D
262 /Lslash % 0x8A U+0141
263 /Nacute % 0x8B U+0143
264 /Ncaron % 0x8C U+0147
265 /Eng % 0x8D U+014A
266 /Ohungarumlaut % 0x8E U+0150
267 /Racute % 0x8F U+0154
268 /Rcaron % 0x90 U+0158
269 /Sacute % 0x91 U+015A
270 /Scaron % 0x92 U+0160
271 /Scedilla % 0x93 U+015E
272 /Tcaron % 0x94 U+0164
273 /uni0162 % 0x95 U+0162
274 /Uhungarumlaut % 0x96 U+0170
275 /Uring % 0x97 U+016E
276 /Ydieresis % 0x98 U+0178
277 /Zacute % 0x99 U+0179
278 /Zcaron % 0x9A U+017D
279 /Zdotaccent % 0x9B U+017B
280 /IJ % 0x9C U+0132
281 /Idotaccent % 0x9D U+0130
282 /dcroat % 0x9E U+0111
283 /section % 0x9F U+00A7
284 /abreve % 0xA0 U+0103
285 /aogonek % 0xA1 U+0105
286 /cacute % 0xA2 U+0107
287 /ccaron % 0xA3 U+010D
288 /dcaron % 0xA4 U+010F
289 /ecaron % 0xA5 U+011B
290 /eogonek % 0xA6 U+0119
291 /gbreve % 0xA7 U+011F
292 /lacute % 0xA8 U+013A
293 /lcaron % 0xA9 U+013E
294 /lslash % 0xAA U+0142
295 /nacute % 0xAB U+0144
296 /ncaron % 0xAC U+0148
297 /eng % 0xAD U+014B
298 /ohungarumlaut % 0xAE U+0151
299 /racute % 0xAF U+0155
300 /rcaron % 0xB0 U+0159
301 /sacute % 0xB1 U+015B
302 /scaron % 0xB2 U+0161
303 /scedilla % 0xB3 U+015F
304 /tcaron % 0xB4 U+0165
305 /uni0163 % 0xB5 U+0163
306 /uhungarumlaut % 0xB6 U+0171
307 /uring % 0xB7 U+016F
308 /ydieresis % 0xB8 U+00FF
309 /zacute % 0xB9 U+017A
310 /zcaron % 0xBA U+017E
311 /zdotaccent % 0xBB U+017C
312 /ij % 0xBC U+0133
313 /exclamdown % 0xBD U+00A1
314 /questiondown % 0xBE U+00BF
315 /sterling % 0xBF U+00A3
316 /Agrave % 0xC0
317 /Aacute % 0xC1
318 /Acircumflex % 0xC2
319 /Atilde % 0xC3
320 /Adieresis % 0xC4
321 /Aring % 0xC5
322 /AE % 0xC6
323 /Ccedilla % 0xC7
324 /Egrave % 0xC8
325 /Eacute % 0xC9
326 /Ecircumflex % 0xCA
327 /Edieresis % 0xCB
328 /Igrave % 0xCC
329 /Iacute % 0xCD
330 /Icircumflex % 0xCE
331 /Idieresis % 0xCF
332 /Eth % 0xD0
333 /Ntilde % 0xD1
334 /Ograve % 0xD2
335 /Oacute % 0xD3
336 /Ocircumflex % 0xD4
337 /Otilde % 0xD5
338 /Odieresis % 0xD6
339 /OE % 0xD7 U+0152
340 /Oslash % 0xD8
341 /Ugrave % 0xD9
342 /Uacute % 0xDA
343 /Ucircumflex % 0xDB
344 /Udieresis % 0xDC
345 /Yacute % 0xDD
346 /Thorn % 0xDE
347 /uni1E9E.ss01 % 0xDF (U+1E9E, /S_S)
348 /agrave % 0xE0
349 /aacute % 0xE1
350 /acircumflex % 0xE2
351 /atilde % 0xE3
352 /adieresis % 0xE4
353 /aring % 0xE5
354 /ae % 0xE6
355 /ccedilla % 0xE7
356 /egrave % 0xE8
357 /eacute % 0xE9
358 /ecircumflex % 0xEA
359 /edieresis % 0xEB
360 /igrave % 0xEC
361 /iacute % 0xED
362 /icircumflex % 0xEE
363 /idieresis % 0xEF
364 /eth % 0xF0
365 /ntilde % 0xF1
366 /ograve % 0xF2
367 /oacute % 0xF3
368 /ocircumflex % 0xF4
369 /otilde % 0xF5
370 /odieresis % 0xF6
371 /oe % 0xF7 U+0153
372 /oslash % 0xF8
373 /ugrave % 0xF9
374 /uacute % 0xFA
375 /ucircumflex % 0xFB
376 /udieresis % 0xFC
377 /yacute % 0xFD
378 /thorn % 0xFE
379 /germandbls % 0xFF U+00DF
380 ] def