%D \module
%D   [     file=enco-ans,
%D      version=1995.1.1,
%D        title=\CONTEXT\ Encoding Macros,
%D     subtitle=\YandY\ texnansi Encoding,
%D       author=Hans Hagen,
%D         date=\currentdate,
%D    copyright=Hans Hagen]
%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] 

\definecasemap 228 228 196 \definecasemap 196 228 196  
\definecasemap 235 235 203 \definecasemap 203 235 203
\definecasemap 239 239 207 \definecasemap 207 239 207
\definecasemap 246 246 214 \definecasemap 214 246 214
\definecasemap 252 252 220 \definecasemap 220 252 220
\definecasemap 255 255 159 \definecasemap 159 255 159

\definecasemap 225 225 193 \definecasemap 193 225 193
\definecasemap 233 233 201 \definecasemap 201 233 201
\definecasemap 237 237 205 \definecasemap 205 237 205
\definecasemap 243 243 211 \definecasemap 211 243 211
\definecasemap 250 250 218 \definecasemap 218 250 218
\definecasemap 253 253 221 \definecasemap 221 253 221

\definecasemap 224 224 192 \definecasemap 192 224 192
\definecasemap 232 232 200 \definecasemap 200 232 200
\definecasemap 236 236 204 \definecasemap 204 236 204
\definecasemap 242 242 210 \definecasemap 210 242 210
\definecasemap 249 249 217 \definecasemap 217 249 217

\definecasemap 226 226 194 \definecasemap 194 226 194
\definecasemap 234 234 202 \definecasemap 202 234 202
\definecasemap 238 238 206 \definecasemap 206 238 206
\definecasemap 244 244 212 \definecasemap 212 244 212
\definecasemap 251 251 219 \definecasemap 219 251 219

\definecasemap 227 227 195 \definecasemap 195 227 195
\definecasemap 241 241 209 \definecasemap 209 241 209
\definecasemap 245 245 213 \definecasemap 213 245 213

\stopmapping

\startencoding[texnansi]

\definecharacter textdotaccent       5
\definecharacter texthungarumlaut    6
\definecharacter textmacron        175 
\definecharacter textcedilla       184  

\definecharacter dotlessi          105 

\definecharacter Lstroke           128

\definecharacter Scaron            138

\definecharacter OEligature        140
\definecharacter Zcaron            141

\definecharacter lstroke           144

\definecharacter scaron            154

\definecharacter oeligature        156
\definecharacter zcaron            157

\definecharacter Ydiaeresis        159

\definecharacter Agrave            192
\definecharacter Aacute            193
\definecharacter Acircumflex       194
\definecharacter Atilde            195
\definecharacter Adiaeresis        196      
\definecharacter Aring             197
\definecharacter AEligature        198
\definecharacter cCedile           199
\definecharacter Egrave            200
\definecharacter Eacute            201
\definecharacter Ecircumflex       202
\definecharacter Ediaeresis        203
\definecharacter Igrave            204
\definecharacter Iacute            205
\definecharacter Icircumflex       206
\definecharacter Idiaeresis        207

\definecharacter Ntilde            209
\definecharacter Ograve            210
\definecharacter Oacute            211
\definecharacter Ocircumflex       212
\definecharacter Otilde            213
\definecharacter Odiaeresis        214

\definecharacter Ostoke            216
\definecharacter Ugrave            217
\definecharacter Uacute            218
\definecharacter Ucircumflex       219
\definecharacter Udiaeresis        220
\definecharacter Yacute            221
\definecharacter Thorn             222
\definecharacter ssharp            223
\definecharacter agrave            224
\definecharacter aacute            225
\definecharacter acircumflex       226
\definecharacter atilde            227
\definecharacter adiaeresis        228      
\definecharacter aring             229
\definecharacter aeligature        230
\definecharacter ccedile           231
\definecharacter egrave            232
\definecharacter eacute            233
\definecharacter ecircumflex       234
\definecharacter ediaeresis        235      
\definecharacter igrave            236
\definecharacter iacute            237
\definecharacter icircumflex       238
\definecharacter idiaeresis        239

\definecharacter ntilde            241
\definecharacter ograve            242
\definecharacter oacute            243
\definecharacter ocircumflex       244
\definecharacter otilde            245
\definecharacter odiaeresis        246

\definecharacter ostroke           248
\definecharacter ugrave            249
\definecharacter uacute            250
\definecharacter ucircumflex       251
\definecharacter udiaeresis        252
\definecharacter yacute            253
\definecharacter thorn             254
\definecharacter ydiaeresis        255
      
\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

% \startencoding[texnansi]
% 
% \definecommand b {\texnansiencodedb}
% \definecommand c {\texnansiencodedc}
% 
% \stopencoding 
% 
% \def\texnansiencodedb#1%
%   {\oalign{#1\crcr\hidewidth\vbox to.2ex{\hbox{\textmacron}\vss}\hidewidth}}
% 
% \def\texnansiencodedc#1%
%   {\setbox\scratchbox\hbox{#1}%
%    \ifdim\ht\scratchbox=1ex
%      \buildtextaccent\textcedilla{#1}%
%    \else
%      {\ooalign{\hidewidth\textcedilla\hidewidth\crcr
%                \unhbox\scratchbox}}%
%    \fi}
