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

% 6k = Koi8 encoding + Computer Modern

\protectreading ofs-6k.tex % This is part of OFS package

\accentdef  \` *    6k  {\accent 18 }                   % grave
\accentdef  \' *    6k  {\accent 19 }                   % acute
\accentdef  \v *    6k  {\accent 20 }                   % caron
\accentdef  \u *    6k  {\accent 21 }                   % breve
\accentdef  \= *    6k  {\accent 22 }                   % macron
\accentdef  \r *    6k  {\accent 23 }                   % ring
\accentdef  \^ *    6k  {\accent 94 }                   % circumflex
\accentdef  \. *    6k  {\accent 95 }                   % dot-accent
\accentdef  \H *    6k  {\accent 125 }                  % hungar-umlaut
\accentdef  \~ *    6k  {\accent 126 }                  % tilde
\accentdef  \" *    6k  {\accent 127 }                  % dieresis
\accentdef  \c *    6k  {\accentbelow {\char24}{0pt}}   % cedilla
\accentdef  \k *    6k  {\accentbelow {\char157}{0pt}}  % ogonek
\accentdef  \m *    6k  {\accentbelow {,}{.1ex}}        % comma-accent
\accentdef  \b *    6k  {\accentbelow {\char22}{.15ex}} % underscore
\accentdef  \d *    6k  {\accentbelow {.}{.1ex}}        % dot below

\def\aa{\r a}
\def\AA{\r A}

\characterdef \dotlessi    6k  16 
\characterdef \dotlessj    6k  17
\let\i=\dotlessi  \let\j=\dotlessj

\accentdef \" i     6k  {\accent 127 \dotlessi}
\accentdef \" {\i}  6k  {\accent 127 \dotlessi}

\let\SS=\relax \let\AE=\relax \let\OE=\relax \let\O=\relax
\characterdef \SS   6k  {SS}
\characterdef \AE   6k  29
\characterdef \OE   6k  30
\characterdef \O    6k  31 

\let\ss=\relax \let\ae=\relax \let\oe=\relax \let\o=\relax
\characterdef \ss   6k  25
\characterdef \ae   6k  26
\characterdef \oe   6k  27
\characterdef \o    6k  28 
\characterdef \ellipsis 6k {\dots}

\let\elqq=\relax \let\erqq=\relax \let\elq=\relax \let\erq=\relax
\characterdef \elqq         6k  92
\characterdef \erqq         6k  34
\characterdef \elq          6k  `\`
\characterdef \erq          6k  `\'

\characterdef \exclamdown   6k  60
\characterdef \questiondown 6k  62

\characterdef \CYRA               6k  225
\characterdef \CYRB               6k  226
\characterdef \CYRV               6k  247
\characterdef \CYRG               6k  231
\characterdef \CYRD               6k  228
\characterdef \CYRE               6k  229
\characterdef \CYRYO              6k  179
\characterdef \CYRZH              6k  246
\characterdef \CYRZ               6k  250
\characterdef \CYRI               6k  233
\characterdef \CYRISHRT           6k  234
\characterdef \CYRK               6k  235
\characterdef \CYRL               6k  236
\characterdef \CYRM               6k  237
\characterdef \CYRN               6k  238
\characterdef \CYRO               6k  239
\characterdef \CYRP               6k  240
\characterdef \CYRR               6k  242
\characterdef \CYRS               6k  243
\characterdef \CYRT               6k  244
\characterdef \CYRU               6k  245
\characterdef \CYRF               6k  230
\characterdef \CYRH               6k  232
\characterdef \CYRC               6k  227
\characterdef \CYRCH              6k  254
\characterdef \CYRSH              6k  251
\characterdef \CYRSHCH            6k  253
\characterdef \CYRHRDSN           6k  255
\characterdef \CYRERY             6k  249
\characterdef \CYRSFTSN           6k  248
\characterdef \CYREREV            6k  252
\characterdef \CYRYU              6k  224
\characterdef \CYRYA              6k  241
\characterdef \cyra               6k  193
\characterdef \cyrb               6k  194
\characterdef \cyrv               6k  215
\characterdef \cyrg               6k  199
\characterdef \cyrd               6k  196
\characterdef \cyre               6k  197
\characterdef \cyryo              6k  163
\characterdef \cyrzh              6k  214
\characterdef \cyrz               6k  218
\characterdef \cyri               6k  201
\characterdef \cyrishrt           6k  202
\characterdef \cyrk               6k  203
\characterdef \cyrl               6k  204
\characterdef \cyrm               6k  205
\characterdef \cyrn               6k  206
\characterdef \cyro               6k  207
\characterdef \cyrp               6k  208
\characterdef \cyrr               6k  210
\characterdef \cyrs               6k  211
\characterdef \cyrt               6k  212
\characterdef \cyru               6k  213
\characterdef \cyrf               6k  198
\characterdef \cyrh               6k  200
\characterdef \cyrc               6k  195
\characterdef \cyrch              6k  222
\characterdef \cyrsh              6k  219
\characterdef \cyrshch            6k  221
\characterdef \cyrhrdsn           6k  223
\characterdef \cyrery             6k  217
\characterdef \cyrsftsn           6k  216
\characterdef \cyrerev            6k  220
\characterdef \cyryu              6k  192
\characterdef \cyrya              6k  209

\modifydef 6k:lccodes; {%  For \setlang, see langdoc.tex
   \skipfirststep
   \lccodesloop ^^c0^^df^^e0%
   \lccodes ^^a3^^b3%
   \def\lccodesback {\zerolccodes ^^c0^^ff%
                     \zerolccodes ^^a3^^a3%
                     \zerolccodes ^^b3^^b3}%
}

\registertfm cmr6k     -      kcr10 %
\registertfm cmr6k  0pt-6pt   kcr5  %
\registertfm cmr6k  6pt-7pt   kcr6  %
\registertfm cmr6k  7pt-8pt   kcr7  %
\registertfm cmr6k  8pt-9pt   kcr8  %
\registertfm cmr6k  9pt-10pt  kcr9  %
\registertfm cmr6k  10pt-12pt kcr10 %
\registertfm cmr6k  12pt-17pt kcr12 %
\registertfm cmr6k  17pt-*    kcr17 %

\registertfm cmbx6k    -      kcbx10 %
\registertfm cmbx6k 0pt-6pt   kcbx5  %
\registertfm cmbx6k 6pt-7pt   kcbx6  %
\registertfm cmbx6k 7pt-8pt   kcbx7  %
\registertfm cmbx6k 8pt-9pt   kcbx8  %
\registertfm cmbx6k 9pt-10pt  kcbx9  %
\registertfm cmbx6k 10pt-12pt kcbx10 %
\registertfm cmbx6k 12pt-*    kcbx12 %

\registertfm cmti6k    -      kcti10 %
\registertfm cmti6k 0pt-8pt   kcti7  %
\registertfm cmti6k 8pt-9pt   kcti8  %
\registertfm cmti6k 9pt-10pt  kcti9  %
\registertfm cmti6k 10pt-12pt kcti10 %
\registertfm cmti6k 12pt-17pt kcti12 %
\registertfm cmti6k 17pt-*    kcti17 %

\registertfm cmbxti6k    -      kcbxti10 %
\registertfm cmbxti6k 0pt-12pt  kcbxti10 %
\registertfm cmbxti6k 12pt-17pt kcbxti12 %
\registertfm cmbxti6k 17pt-*    kcbxti17 %

\registertfm cmsl6k     -      kcsl10 %
\registertfm cmsl6k  0pt-6pt   kcsl5  %
\registertfm cmsl6k  6pt-7pt   kcsl6  %
\registertfm cmsl6k  7pt-8pt   kcsl7  %
\registertfm cmsl6k  8pt-9pt   kcsl8  %
\registertfm cmsl6k  9pt-10pt  kcsl9  %
\registertfm cmsl6k  10pt-12pt kcsl10 %
\registertfm cmsl6k  12pt-17pt kcsl12 %
\registertfm cmsl6k  17pt-*    kcsl17 %

\registertfm cmbxsl6k  -      kcbxsl10 %
\registertfm cmsltt6k  -      kcsltt10 %

\registertfm cmss6k    -      kcss10 %
\registertfm cmss6k 0pt-9pt   kcss8  %
\registertfm cmss6k 9pt-10pt  kcss9  %
\registertfm cmss6k 10pt-12pt kcss10 %
\registertfm cmss6k 12pt-17pt kcss12 %
\registertfm cmss6k 17pt-*    kcss17 %

\registertfm cmssbx6k   -      kcssbx10 %

\registertfm cmssi6k    -      kcssi10 %
\registertfm cmssi6k 0pt-9pt   kcssi8  %
\registertfm cmssi6k 9pt-10pt  kcssi9  %
\registertfm cmssi6k 10pt-12pt kcssi10 %
\registertfm cmssi6k 12pt-17pt kcssi12 %
\registertfm cmssi6k 17pt-*    kcssi17 %

\registertfm cmtt6k    -      kctt10 %
\registertfm cmtt6k 0pt-9pt   kctt8  %
\registertfm cmtt6k 9pt-10pt  kctt9  %
\registertfm cmtt6k 10pt-12pt kctt10 %
\registertfm cmtt6k 12pt-*    kctt12 %

\registertfm cmitt6k    -     kcitt10 %

