summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/enco-ans.mkii
blob: 88baf0ad0bbe273d4f26c5087d5296eb751a2ac5 (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
%D \module
%D   [     file=enco-ans,
%D      version=2000.05.07, % 1995.01.01,
%D        title=\CONTEXT\ Encoding Macros,
%D     subtitle=\YandY\ texnansi Encoding,
%D       author={Patrick Gundlach, Hans Hagen},
%D         date=\currentdate,
%D    copyright=PRAGMA-ADE]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This is \YandY's texnansi encoding vector, which combines
%D the best of the ansi encoding vector (prebuilt accented
%D characters etc.) and some of \TEX's vectors.

\startmapping[texnansi]

\resetcaserange 128 to 158
\resetcaserange 160 to 191
\resetcaserange 215 to 215
\resetcaserange 247 to 247

\definecasemaps 192 to 214 lc +32 uc   0
\definecasemaps 224 to 246 lc   0 uc -32
\definecasemaps 216 to 222 lc +32 uc   0
\definecasemaps 248 to 254 lc   0 uc -32

\definecaseself 223
\definecaseswap 156 140
\definecaseswap 255 159

% needed by some patterns:

% \definecaseself  34 % quotedbl
% \definecaseself 132 % quotedblbase
% \definecaseself 147 % quotedblleft
% \definecaseself 148 % quotedblright
% \definecaseself 129 % quotesingle
% \definecaseself 130 % quotesinglebase
% \definecaseself 145 % quoteleft
\definecaseself 146 % quoteright

\stopmapping

\startencoding[texnansi]

\definecharacter textacute         19
\definecharacter textbreve         21
\definecharacter textcaron         20
\definecharacter textcedilla      184
\definecharacter textcircumflex    94 % 136
\definecharacter textdiaeresis    168
\definecharacter textdotaccent      5
\definecharacter textgrave         18
\definecharacter texthungarumlaut   6
\definecharacter textmacron       175
\definecharacter textogonek         7
\definecharacter textring          23
\definecharacter texttilde        152

\definecharacter dotlessi          16 % 105
\definecharacter dotlessj          17

\definecharacter endash           150 % lig
\definecharacter emdash           151 % lig

\definecharacter aeligature       230
\definecharacter AEligature       198
\definecharacter oeligature       156
\definecharacter OEligature       140

\definecharacter ssharp           223

\definecharacter thorn            254
\definecharacter Thorn            222

\definecharacter Dstroke          208 % also Eth, mapped in enco-def
\definecharacter eth              240

\definecharacter exclamdown       161
\definecharacter questiondown     191

\definecharacter copyright        169
\definecharacter registered       174
\definecharacter trademark        153

\definecharacter sectionmark      167
\definecharacter paragraphmark    182

\definecharacter onequarter       188
\definecharacter onehalf          189
\definecharacter threequarter     190

\definecharacter onesuperior      185
\definecharacter twosuperior      178
\definecharacter threesuperior    179

\definecharacter textcent         162 % ?
\definecharacter textcurrency     164
\definecharacter texteuro           1
\definecharacter textflorin       131
\definecharacter textsterling     163
\definecharacter textyen          165

\definecharacter percent           37
\definecharacter perthousand      137

\definecharacter softhyphen        45
\definecharacter periodcentered   183

\definecharacter textasciicircum  142
\definecharacter textasciitilde   158
\definecharacter textbackslash     92
\definecharacter textbraceleft    123
\definecharacter textbar          124
\definecharacter textbraceright   125
\definecharacter textunderscore    95

\definecharacter textbrokenbar    166
\definecharacter textbullet       149
\definecharacter textdag          134
\definecharacter textddag         135
\definecharacter textdegree       176
\definecharacter textdiv          247
\definecharacter textellipsis     133
\definecharacter textfraction       4
\definecharacter textlognot       172
\definecharacter textminus        143
\definecharacter textmu           181
\definecharacter textmultiply     215
\definecharacter textpm           177

\definecharacter quotedbl          34
\definecharacter quotedblbase     132
\definecharacter quotedblleft     147
\definecharacter quotedblright    148

\definecharacter quotesingle      129
\definecharacter quotesinglebase  130

\definecharacter quoteleft        145
\definecharacter quoteright       146

\definecharacter guilsingleleft   139
\definecharacter guilsingleright  155
\definecharacter leftguillemot    171
\definecharacter rightguillemot   187

\definecharacter aacute           225
\definecharacter Aacute           193
\definecharacter eacute           233
\definecharacter Eacute           201
\definecharacter iacute           237
\definecharacter Iacute           205
\definecharacter oacute           243
\definecharacter Oacute           211
\definecharacter uacute           250
\definecharacter Uacute           218
\definecharacter yacute           253
\definecharacter Yacute           221

\definecharacter scaron           154
\definecharacter Scaron           138
\definecharacter zcaron           157
\definecharacter Zcaron           141

\definecharacter ccedilla         231
\definecharacter Ccedilla         199

\definecharacter acircumflex      226
\definecharacter Acircumflex      194
\definecharacter ecircumflex      234
\definecharacter Ecircumflex      202
\definecharacter icircumflex      238
\definecharacter Icircumflex      206
\definecharacter ocircumflex      244
\definecharacter Ocircumflex      212
\definecharacter ucircumflex      251
\definecharacter Ucircumflex      219

\definecharacter adiaeresis       228
\definecharacter Adiaeresis       196
\definecharacter ediaeresis       235
\definecharacter Ediaeresis       203
\definecharacter idiaeresis       239
\definecharacter Idiaeresis       207
\definecharacter odiaeresis       246
\definecharacter Odiaeresis       214
\definecharacter udiaeresis       252
\definecharacter Udiaeresis       220
\definecharacter ydiaeresis       255
\definecharacter Ydiaeresis       159

\definecharacter agrave           224
\definecharacter Agrave           192
\definecharacter egrave           232
\definecharacter Egrave           200
\definecharacter igrave           236
\definecharacter Igrave           204
\definecharacter ograve           242
\definecharacter Ograve           210
\definecharacter ugrave           249
\definecharacter Ugrave           217

\definecharacter aring            229
\definecharacter Aring            197

\definecharacter Lstroke          128
\definecharacter lstroke          144
\definecharacter ostroke          248
\definecharacter Ostoke           216

\definecharacter atilde           227
\definecharacter Atilde           195
\definecharacter ntilde           241
\definecharacter Ntilde           209
\definecharacter otilde           245
\definecharacter Otilde           213

\stopencoding

% will be replaced by math collection, fails anyway

\startencoding[texnansi]

\definecharacter mathgrave       "7060
\definecharacter mathacute       "70B4
\definecharacter mathhat         "7088
\definecharacter mathtilde       "7098
\definecharacter mathddot        "70A8
\definecharacter mathbar         "70AF

\stopencoding

\endinput