%D \module
%D   [     file=enco-ec,
%D      version=2000.05.07, % 1999.16.07,
%D        title=\CONTEXT\ Encoding Macros,
%D     subtitle=\LATEX\ EC Encoding,
%D       author={Patrick Gundlach, Hans Hagen, Taco Hoekwater},
%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 \LATEX2e's T1 encoding vector. All standard \LATEX\
%D accents will work, including \type{\k}. The only accent that
%D does not work is \type{\t} (there is no tie in T1 encoding).
%D
%D Annoyingly, most \POSTSCRIPT\ fonts do not have \type
%D {\dotlessj}, and T1 encoding does not make the various
%D prebuilts with \type {j} available.
%D
%D There is hardly a point in supporting TS1 encoding.

\startmapping[ec]

%D The case mappings are fairly simple.

%\definecasemaps 128 to 156 lc 0 uc 0

%D 157 Idotaccent
%D 158 dcroat (with bar)
%D 159 sectionmark

\definecasemaps 160 to 188 lc +32 uc 0

%D 189 exclamdown
%D 190 questiondown
%D 191 sterling pound

\definecasemaps 192 to 255 lc 0 uc -32

%D So far for the mapping.

%D The following characters are kind of dangerous,
%D that is, they are normally not part of fonts, unless
%D explicitly constructed.
%D
%D \startitemize[columns,two]
%D \item \type{\dotlessj}
%D \item \type{\IJligature}
%D \item \type{\ijligature}
%D \item \type{\Ssharp}
%D \item \type{\perthousand}
%D \item \type{\compoundwordmark}
% %D \item \type{\textvisiblespace}
% %D \item \type{\tcaron}
% %D \item \type{\tcedilla }
% %D \item \type{\Tcedilla}
% %D \item \type{\ydiaeresis}
%D \stopitemize

%D So, for the moment we nil them; we can always create
%D another vector if needed.

\stopmapping

\startencoding[ec][ec] % second arg defines auto regime, needed here ?

\definecharacter textacute         1
\definecharacter textbreve         8
\definecharacter textcaron         7
\definecharacter textcedilla      11
\definecharacter textcircumflex    2
\definecharacter textdiaeresis     4
\definecharacter textdotaccent    10
\definecharacter textgrave         0
\definecharacter texthungarumlaut  5
\definecharacter textmacron        9
\definecharacter textogonek       12
\definecharacter textring          6
\definecharacter texttilde         3

\definecharacter dotlessi         25
%definecharacter dotlessj         26

\definecharacter endash           21
\definecharacter emdash           22

\definecharacter aeligature      230
\definecharacter AEligature      198
%definecharacter ijligature      188
%definecharacter IJligature      156
\definecharacter oeligature      247
\definecharacter OEligature      215

\definecharacter ssharp          255
%definecharacter Ssharp          223

\definecharacter thorn           254
\definecharacter Thorn           222

\definecharacter Eth             208
\definecharacter eth             240

\definecharacter exclamdown      189 % lig
\definecharacter questiondown    190 % lig

\definecharacter sectionmark     159

\definecharacter textsterling    191

\definecharacter percent          37
%definecharacter perthousand      24

\definecharacter softhyphen      127 % ?
%definecharacter compoundwordmark 23

\definecharacter textasciicircum  94
\definecharacter textasciitilde  126
\definecharacter textbackslash    92
\definecharacter textbraceleft   123
\definecharacter textbraceright  125
\definecharacter textunderscore   95
%definecharacter textvisiblespace 32

\definecharacter quotedbl         34
\definecharacter quotedblbase     18
\definecharacter quotedblleft     16
\definecharacter quotedblright    17

\definecharacter quotesingle      39 % fake 'm
\definecharacter quotesinglebase  13

\definecharacter quoteleft        96
\definecharacter quoteright       39

\definecharacter guilsingleleft   14
\definecharacter guilsingleright  15
\definecharacter leftguillemot    19
\definecharacter rightguillemot   20

\definecharacter aacute          225
\definecharacter Aacute          193
\definecharacter cacute          162
\definecharacter Cacute          130
\definecharacter eacute          233
\definecharacter Eacute          201
\definecharacter iacute          237
\definecharacter Iacute          205
\definecharacter lacute          168
\definecharacter Lacute          136
\definecharacter Nacute          139
\definecharacter Oacute          211
\definecharacter nacute          171
\definecharacter oacute          243
\definecharacter racute          175
\definecharacter Racute          143
\definecharacter sacute          177
\definecharacter Sacute          145
\definecharacter uacute          250
\definecharacter Uacute          218
\definecharacter yacute          253
\definecharacter Yacute          221
\definecharacter zacute          185
\definecharacter Zacute          153

\definecharacter abreve          160
\definecharacter Abreve          128
\definecharacter gbreve          167
\definecharacter Gbreve          135

\definecharacter ccaron          163
\definecharacter Ccaron          131
\definecharacter dcaron          164
\definecharacter Dcaron          132
\definecharacter ecaron          165
\definecharacter Ecaron          133
\definecharacter lcaron          169
\definecharacter Lcaron          137
\definecharacter ncaron          172
\definecharacter Ncaron          140
\definecharacter rcaron          176
\definecharacter Rcaron          144
\definecharacter scaron          178
\definecharacter Scaron          146
\definecharacter tcaron          180
\definecharacter Tcaron          148
\definecharacter zcaron          186
\definecharacter Zcaron          154

\definecharacter ccedilla        231
\definecharacter Ccedilla        199
\definecharacter scedilla        179
\definecharacter Scedilla        147
\definecharacter tcedilla        181
\definecharacter Tcedilla        149

\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      184
\definecharacter Ydiaeresis      152

\definecharacter Idotaccent      157
\definecharacter zdotaccent      187
\definecharacter Zdotaccent      155

\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 ohungarumlaut   174
\definecharacter Ohungarumlaut   142
\definecharacter uhungarumlaut   182
\definecharacter Uhungarumlaut   150

\definecharacter dmacron         158

\definecharacter aogonek         161
\definecharacter Aogonek         129
\definecharacter eogonek         166
\definecharacter Eogonek         134

\definecharacter aring           229
\definecharacter Aring           197
\definecharacter uring           183
\definecharacter Uring           151

\definecharacter lstroke         170
\definecharacter Lstroke         138
\definecharacter ostroke         248
\definecharacter Ostroke         216

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

\stopencoding

\endinput
