% OFS: Declaration of Cyrrilic T2A encoding
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Mar 2004                       Petr Olsak

% 6x = X2 encoding

\protectreading ofs-6x.tex % This is part of OFS package
 
\accentdef  \` *    6a  {\accent 0}
\accentdef  \' *    6a  {\accent 1}
\accentdef  \^ *    6a  {\accent 2}
\accentdef  \~ *    6a  {\accent 3}
\accentdef  \" *    6a  {\accent 4}
\accentdef  \H *    6a  {\accent 5}
\accentdef  \r *    6a  {\accent 6}
\accentdef  \v *    6a  {\accent 7}
\accentdef  \u *    6a  {\accent 8}
\accentdef  \= *    6a  {\accent 9}
\accentdef  \. *    6a  {\accent 10}
\accentdef  \f *    6a  {\accent 18}
\accentdef  \C *    6a  {\accent 19}
\accentdef  \U *    6a  {\accent 20}
\accentdef  \b *    6a  {\accentbelow {\char9}{.15ex}}
\accentdef  \c *    6a  {\accentbelow {\char11}{0pt}}
\accentdef  \d *    6a  {\accentbelow {.}{.1ex}}
\accentdef  \k *    6a  {\accentbelow {\char12}{0pt}}

\let\promile=\relax
\characterdef \promile          6a {\%\char 24 }        
\characterdef \pertenthousand   6a {\%\char 24\char 24 } 

\characterdef \textendash         6x  21
\characterdef \cyrdash            6x  22
\characterdef \textemdash         6x  22
\characterdef \textcompwordmark   6x  23
\characterdef \textvisiblespace   6x  32
\characterdef \textdollar         6x  36
\characterdef \textless           6x  60
\characterdef \textgreater        6x  62
\characterdef \textbackslash      6x  92
\characterdef \textasciicircum    6x  94
\characterdef \textunderscore     6x  95
\characterdef \textbraceleft      6x  123
\characterdef \textbar            6x  124
\characterdef \textbraceright     6x  125
\characterdef \textasciitilde     6x  126
\characterdef \textnumero         6x  157
\characterdef \textcurrency       6x  158
\characterdef \textsection        6x  159
\characterdef \textquotedbl       6x  34
\characterdef \textquoteleft      6x  96
\characterdef \textquoteright     6x  39
\characterdef \textquotedblleft   6x  16
\characterdef \textquotedblright  6x  17
\characterdef \quotedblbase       6x  189
\characterdef \CYRpalochka        6x  13
\characterdef \cyrlangle          6x  14
\characterdef \cyrrangle          6x  15
\characterdef \guillemotleft      6x  190
\characterdef \guillemotright     6x  191
                        
\accentdef  \. i     6a  `\i

\characterdef \CYRA         6x  192
\characterdef \cyra         6x  224
\characterdef \CYRB         6x  193
\characterdef \cyrb         6x  225
\characterdef \CYRV         6x  194
\characterdef \cyrv         6x  226
\characterdef \CYRG         6x  195
\characterdef \cyrg         6x  227
\characterdef \CYRD         6x  196
\characterdef \cyrd         6x  228
\characterdef \CYRE         6x  197
\characterdef \cyre         6x  229
\characterdef \CYRZH        6x  198
\characterdef \cyrzh        6x  230
\characterdef \CYRZ         6x  199
\characterdef \cyrz         6x  231
\characterdef \CYRI         6x  200
\characterdef \cyri         6x  232
\characterdef \CYRISHRT     6x  201
\characterdef \cyrishrt     6x  233
\characterdef \CYRK         6x  202
\characterdef \cyrk         6x  234
\characterdef \CYRL         6x  203
\characterdef \cyrl         6x  235
\characterdef \CYRM         6x  204
\characterdef \cyrm         6x  236
\characterdef \CYRN         6x  205
\characterdef \cyrn         6x  237
\characterdef \CYRO         6x  206
\characterdef \cyro         6x  238
\characterdef \CYRP         6x  207
\characterdef \cyrp         6x  239
\characterdef \CYRR         6x  208
\characterdef \cyrr         6x  240
\characterdef \CYRS         6x  209
\characterdef \cyrs         6x  241
\characterdef \CYRT         6x  210
\characterdef \cyrt         6x  242
\characterdef \CYRU         6x  211
\characterdef \cyru         6x  243
\characterdef \CYRF         6x  212
\characterdef \cyrf         6x  244
\characterdef \CYRH         6x  213
\characterdef \cyrh         6x  245
\characterdef \CYRC         6x  214
\characterdef \cyrc         6x  246
\characterdef \CYRCH        6x  215
\characterdef \cyrch        6x  247
\characterdef \CYRSH        6x  216
\characterdef \cyrsh        6x  248
\characterdef \CYRSHCH      6x  217
\characterdef \cyrshch      6x  249
\characterdef \CYRHRDSN     6x  218
\characterdef \cyrhrdsn     6x  250
\characterdef \CYRERY       6x  219
\characterdef \cyrery       6x  251
\characterdef \CYRSFTSN     6x  220
\characterdef \cyrsftsn     6x  252
\characterdef \CYREREV      6x  221
\characterdef \cyrerev      6x  253
\characterdef \CYRYU        6x  222
\characterdef \cyryu        6x  254
\characterdef \CYRYA        6x  223
\characterdef \cyrya        6x  255
\characterdef \CYRGUP       6x  128
\characterdef \cyrgup       6x  160
\characterdef \CYRGHCRS     6x  129
\characterdef \cyrghcrs     6x  161
\characterdef \CYRGDSC      6x  130
\characterdef \cyrgdsc      6x  162
\characterdef \CYRGHK       6x  131
\characterdef \cyrghk       6x  163
\characterdef \CYRSHHA      6x  132
\characterdef \cyrshha      6x  164
\characterdef \CYRZHDSC     6x  133
\characterdef \cyrzhdsc     6x  165
\characterdef \CYRZDSC      6x  134
\characterdef \cyrzdsc      6x  166
\characterdef \CYRABHDZE    6x  135
\characterdef \cyrabhdze    6x  167
\characterdef \CYRYI        6x  136
\characterdef \cyryi        6x  168
\characterdef \CYRKDSC      6x  137
\characterdef \cyrkdsc      6x  169
\characterdef \CYRKBEAK     6x  138
\characterdef \cyrkbeak     6x  170
\characterdef \CYRKHK       6x  139
\characterdef \cyrkhk       6x  171
\characterdef \CYRLHK       6x  140
\characterdef \cyrlhk       6x  172
\characterdef \CYRNDSC      6x  141
\characterdef \cyrndsc      6x  173
\characterdef \CYRNG        6x  142
\characterdef \cyrng        6x  174
\characterdef \CYRNHK       6x  143
\characterdef \cyrnhk       6x  175
\characterdef \CYROTLD      6x  144
\characterdef \cyrotld      6x  176
\characterdef \CYRSDSC      6x  145
\characterdef \cyrsdsc      6x  177
\characterdef \CYRUSHRT     6x  146
\characterdef \cyrushrt     6x  178
\characterdef \CYRY         6x  147
\characterdef \cyry         6x  179
\characterdef \CYRYHCRS     6x  148
\characterdef \cyryhcrs     6x  180
\characterdef \CYRHDSC      6x  149
\characterdef \cyrhdsc      6x  181
\characterdef \CYRHHK       6x  150
\characterdef \cyrhhk       6x  182
\characterdef \CYRCHLDSC    6x  151
\characterdef \cyrchldsc    6x  183
\characterdef \CYRCHRDSC    6x  152
\characterdef \cyrchrdsc    6x  184
\characterdef \CYRIE        6x  153
\characterdef \cyrie        6x  185
\characterdef \CYRSCHWA     6x  154
\characterdef \cyrschwa     6x  186
\characterdef \CYREPS       6x  155
\characterdef \cyreps       6x  187
\characterdef \CYRYO        6x  156
\characterdef \cyryo        6x  188
\characterdef \CYRAE        6x  65
\characterdef \cyrae        6x  97
\characterdef \CYRDJE       6x  66
\characterdef \cyrdje       6x  98
\characterdef \CYRTSHE      6x  67
\characterdef \cyrtshe      6x  99
\characterdef \CYRABHCH     6x  68
\characterdef \cyrabhch     6x  100
\characterdef \CYRABHCHDSC  6x  69
\characterdef \cyrabhchdsc  6x  101
\characterdef \CYRKVCRS     6x  70
\characterdef \cyrkvcrs     6x  102
\characterdef \CYRKHCRS     6x  71
\characterdef \cyrkhcrs     6x  103
\characterdef \CYRLDSC      6x  72
\characterdef \cyrldsc      6x  104
\characterdef \CYRII        6x  73
\characterdef \cyrii        6x  105
\characterdef \CYRJE        6x  74
\characterdef \cyrje        6x  106
\characterdef \CYRLJE       6x  75
\characterdef \cyrlje       6x  107
\characterdef \CYRMDSC      6x  76
\characterdef \cyrmdsc      6x  108
\characterdef \CYRNJE       6x  77
\characterdef \cyrnje       6x  109
\characterdef \CYRABHHA     6x  78
\characterdef \cyrabhha     6x  110
\characterdef \CYRPHK       6x  79
\characterdef \cyrphk       6x  111
\characterdef \CYRRDSC      6x  80
\characterdef \cyrrdsc      6x  112
\characterdef \CYRQ         6x  81
\characterdef \cyrq         6x  113
\characterdef \CYRTDSC      6x  82
\characterdef \cyrtdsc      6x  114
\characterdef \CYRDZE       6x  83
\characterdef \cyrdze       6x  115
\characterdef \CYRTETSE     6x  84
\characterdef \cyrtetse     6x  116
\characterdef \CYRDZHE      6x  85
\characterdef \cyrdzhe      6x  117
\characterdef \CYRCHVCRS    6x  86
\characterdef \cyrchvcrs    6x  118
\characterdef \CYRW         6x  87
\characterdef \cyrw         6x  119
\characterdef \CYRYAT       6x  88
\characterdef \cyryat       6x  120
\characterdef \CYRBYUS      6x  89
\characterdef \cyrbyus      6x  121
\characterdef \CYRIZH       6x  90
\characterdef \cyrizh       6x  122
\characterdef \CYRDELTA     6x  28
\characterdef \cyrdelta     6x  29
\characterdef \CYRNLHK      6x  30
\characterdef \cyrnlhk      6x  31

\accentdef \"  \CYRE       6x  156
\accentdef \"  \cyre       6x  188
\accentdef \U  \CYRI       6x  201
\accentdef \U  \cyri       6x  233
\accentdef \"  \CYRII      6x  136
\accentdef \"  \cyrii      6x  168
\accentdef \c  \CYRZ       6x  134
\accentdef \c  \cyrz       6x  166
\accentdef \k  \CYRS       6x  145
\accentdef \k  \cyrs       6x  177
\accentdef \U  \CYRU       6x  146
\accentdef \U  \cyru       6x  178
\accentdef \k  \CYRABHCH   6x  69
\accentdef \k  \cyrabhch   6x  101

%%% lccodes, uccodes:

\modifydef 6x:lccodes; {%  For \setlang, see langdoc.tex
   \skipfirststep
   \lccodesloop ^^a0^^bc^^80%  from \cyrgup to \cyryo, first cap: \CYRGUP
   \lccodesloop ^^e0^^ff^^c0%  from \cyra to \cyrya, first cap: \CYRA
   \def\lccodesback {\zerolccodes ^^80^^ff}%
}


%%% The CM font metric mapping:

\registerECfont    cmr6x       rxrm %
\registerECfont    cmbx6x      rxbx %
\registerECfont    cmti6x      rxti %
\registerECfont    cmbxti6x    rxbi %
\registerECfont    cmsl6x      rxsl %
\registerECfont    cmbxsl6x    rxbl %

\registerECfont    cmss6x      rxss %
\registerECfont    cmssbx6x    rxsx %
\registerECfont    cmssi6x     rxsi %
\registerECfont    cmssbxti6x  rxso %

\registerECTTfont  cmtt6x      rxtt %
\registerECTTfont  cmitt6x     rxit %
\registerECTTfont  cmsltt6x    rxst %





