%D \module
%D   [     file=enco-il2,
%D      version=2000.05.07, % 1998.12.01,
%D        title=\CONTEXT\ Encoding Macros,
%D     subtitle=Czech and Slovak ISO Latin 2 Encoding,
%D       author=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 Czech/Slovak encoding is dedicated to Han The Thanh.
%D The numbers are derived from some files he sent me. This
%D definition file is (still) sort of beta.

\startmapping[il2]

\definecasemap 127 to 255    % we map them all to themselves

\definecasemap 165 181 165   \definecasemap 169 185 169
\definecasemap 171 187 171   \definecasemap 174 190 174
\definecasemap 181 181 165   \definecasemap 185 185 169
\definecasemap 187 187 171   \definecasemap 190 190 174
\definecasemap 192 224 192   \definecasemap 193 225 193
\definecasemap 196 228 196   \definecasemap 197 229 197
\definecasemap 200 232 200   \definecasemap 201 233 201
\definecasemap 204 236 204   \definecasemap 205 237 205
\definecasemap 207 239 207   \definecasemap 210 242 210
\definecasemap 211 243 211   \definecasemap 212 244 212
\definecasemap 214 246 214   \definecasemap 216 248 216
\definecasemap 217 249 217   \definecasemap 218 250 218
\definecasemap 220 252 220   \definecasemap 221 253 221
\definecasemap 224 224 192   \definecasemap 225 225 193
\definecasemap 228 228 196   \definecasemap 229 229 197
\definecasemap 232 232 200   \definecasemap 233 233 201
\definecasemap 236 236 204   \definecasemap 237 237 205
\definecasemap 239 239 207   \definecasemap 242 242 210
\definecasemap 243 243 211   \definecasemap 244 244 212
\definecasemap 246 246 214   \definecasemap 248 248 216
\definecasemap 249 249 217   \definecasemap 250 250 218
\definecasemap 252 252 220   \definecasemap 253 253 221

\stopmapping

\startcoding[il2]

\definecharacter textgrave          18
\definecharacter textacute          19
\definecharacter textcaron          20
\definecharacter textbreve          21
\definecharacter textmacron         22
\definecharacter textring           23
\definecharacter textcedilla        24
\definecharacter textcircumflex     94
\definecharacter textdotaccent      95
\definecharacter texthungarumlaut  125
\definecharacter texttilde         126
\definecharacter textdiaeresis     127

\definecharacter dotlessi       16
\definecharacter dotlessj       17

\definecharacter aeligature     26
\definecharacter AEligature     29
\definecharacter oeligature     27
\definecharacter OEligature     30

\definecharacter ssharp         25

\definecharacter Racute        192
\definecharacter Aacute        193
\definecharacter Lacute        197
\definecharacter Eacute        201
\definecharacter Iacute        205
\definecharacter Oacute        211
\definecharacter Uacute        218
\definecharacter Yacute        221
\definecharacter racute        224
\definecharacter aacute        225
\definecharacter lacute        229
\definecharacter eacute        233
\definecharacter iacute        237
\definecharacter oacute        243
\definecharacter uacute        250
\definecharacter yacute        253

\definecharacter Lcaron        165
\definecharacter Scaron        169
\definecharacter Tcaron        171
\definecharacter Zcaron        174
\definecharacter lcaron        181
\definecharacter scaron        185
\definecharacter tcaron        187
\definecharacter zcaron        190
\definecharacter Ccaron        200
\definecharacter Ecaron        204
\definecharacter Dcaron        207
\definecharacter Ncaron        210
\definecharacter Rcaron        216
\definecharacter ccaron        232
\definecharacter ecaron        236
\definecharacter dcaron        239
\definecharacter ncaron        242
\definecharacter rcaron        248

\definecharacter Ocircumflex   212
\definecharacter ocircumflex   244

\definecharacter Adiaeresis    196
\definecharacter Odiaeresis    214
\definecharacter Udiaeresis    220
\definecharacter adiaeresis    228
\definecharacter odiaeresis    246
\definecharacter udiaeresis    252

\definecharacter Agrave        152
\definecharacter agrave        184

\definecharacter Ohungarumlaut 213
\definecharacter Uhungarumlaut 219
\definecharacter ohungarumlaut 245
\definecharacter uhungarumlaut 251

\definecharacter Uring         217
\definecharacter uring         249
\definecharacter Aring         {\ilencodedrA}

\definecharacter ostroke        28
\definecharacter Ostroke        31
\definecharacter Lstroke       {\ilencodedL}
\definecharacter lstroke       {\ilencodedl}

\def\ilencodedrA%
  {\leavevmode\hbox\bgroup
   \setbox0\hbox{h}%
   \dimen0=\ht0
   \advance\dimen0 by -1ex
   \rlap{\raise.67\dimen0\hbox{\char'27}}A%
   \egroup}

\def\ilencodedl%
  {{\char32l}}

\def\ilencodedL% I don't like the \leavevmode here, better \enterhmode
  {\leavevmode\hbox\bgroup
   \setbox0\hbox{L}%
   \hbox to\wd0{\hss\char32L}%
   \egroup}

\stopcoding
