%%
%% This is file `l8ucyr-penc.def'
%% Formerly known as `l8ucyr.def'
%%
%% l8ucyr-penc.def
%% 
%% This is a hand-written file, based upon  t1enc.def 
%% with extensions for more composite characters.
%% 
%% Copyright 2017 Ross Moore <ross.moore@mq.edu.au>
%% 
\ProvidesFile{l8ucyr-penc.def}
 [2017/06/23 v0.6
         Cyrillic support for UTF8 in XMP metadata]

%
% uses macro names mostly from  uni-4.def  of the ucs.sty  package 
%
%%%% Cyrillic Characters + accents  Ux0400 ��� Ux04FF
%
%\DeclareTextCommand{\U}{L8U}[1]{#1��}% clashes with IPA usage
\DeclareTextCommand{\U}{L8U}[1]{\u{#1}}%
\DeclareTextCommand{\C}{L8U}[1]{#1��}%
\DeclareTextCommand{\CYRtitlo}{L8U}[1]{#1��}%
\DeclareTextCommand{\CYRpalatal}{L8U}[1]{#1��}%
\DeclareTextCommand{\CYRdasia}{L8U}[1]{#1��}%
\DeclareTextCommand{\CYRpsili}{L8U}[1]{#1��}%
\DeclareTextCommand{\CYRpokrytie}{L8U}[1]{#1��}%
\DeclareTextCommand{\CYRSDSC}{L8U}[1]{#1��}%
\DeclareTextCommand{\cyrlegion}{L8U}[1]{#1��}%
\DeclareTextCommand{\cyrleodr}{L8U}[1]{#1��}%
%
%
% Ux0400 ��� uppercase accents + extras
%
\DeclareTextCompositeCommand{\`}{L8U}{\CYRE}{��}
%%\DeclareTextCompositeCommand{\`}{L8U}{��}{��}
%\DeclareTextCompositeCommand{\`}{L8U}{E}{��}% overrides ��
\DeclareTextCompositeCommand{\"}{L8U}{\CYRE}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\CYRYO}{L8U}{��}
%\DeclareTextCompositeCommand{\"}{L8U}{E}{��}% overrides ��
\DeclareTextCommand{\CYRDJE}{L8U}{��}
\DeclareTextCompositeCommand{\'}{L8U}{\CYRG}{��}
%%\DeclareTextCompositeCommand{\'}{L8U}{��}{��}
\DeclareTextCommand{\CYRGJE}{L8U}{��}
\DeclareTextCommand{\CYRIE}{L8U}{��}
\DeclareTextCommand{\CYRDZE}{L8U}{��}
\DeclareTextCommand{\CYRII}{L8U}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRII}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\CYRYI}{L8U}{��}
%\DeclareTextCompositeCommand{\"}{L8U}{I}{��}% overrides ��
\DeclareTextCommand{\CYRJE}{L8U}{��}
\DeclareTextCommand{\CYRLJE}{L8U}{��}
\DeclareTextCommand{\CYRNJE}{L8U}{��}
\DeclareTextCommand{\CYRTSHE}{L8U}{��}
\DeclareTextCompositeCommand{\'}{L8U}{\CYRK}{��}
%%\DeclareTextCompositeCommand{\'}{L8U}{��}{��}
\DeclareTextCommand{\CYRKJE}{L8U}{��}
%\DeclareTextCompositeCommand{\"}{L8U}{K}{��}%  ascii-K
\DeclareTextCompositeCommand{\`}{L8U}{\CYRI}{��}
%%\DeclareTextCompositeCommand{\`}{L8U}{��}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\CYRU}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\CYRU}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCommand{\CYRUSHRT}{L8U}{��}
\DeclareTextCommand{\CYRDZHE}{L8U}{��}
% Ux0410 ��� uppercase
\DeclareTextCommand{\CYRA}{L8U}{��}
\DeclareTextCommand{\CYRB}{L8U}{��}
\DeclareTextCommand{\CYRV}{L8U}{��}
\DeclareTextCommand{\CYRG}{L8U}{��}
\DeclareTextCommand{\CYRD}{L8U}{��}
\DeclareTextCommand{\CYRE}{L8U}{��}
\DeclareTextCommand{\CYRZH}{L8U}{��}
\DeclareTextCommand{\CYRZ}{L8U}{��}
\DeclareTextCommand{\CYRI}{L8U}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\CYRI}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\CYRI}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCommand{\CYRISHRT}{L8U}{��}
\DeclareTextCommand{\CYRK}{L8U}{��}
\DeclareTextCommand{\CYRL}{L8U}{��}
\DeclareTextCommand{\CYRM}{L8U}{��}
\DeclareTextCommand{\CYRN}{L8U}{��}
\DeclareTextCommand{\CYRO}{L8U}{��}
\DeclareTextCommand{\CYRP}{L8U}{��}
\DeclareTextCommand{\CYRR}{L8U}{��}
\DeclareTextCommand{\CYRS}{L8U}{��}
\DeclareTextCommand{\CYRT}{L8U}{��}
\DeclareTextCommand{\CYRU}{L8U}{��}
\DeclareTextCommand{\CYRF}{L8U}{��}
\DeclareTextCommand{\CYRH}{L8U}{��}
\DeclareTextCommand{\CYRC}{L8U}{��}
\DeclareTextCommand{\CYRCH}{L8U}{��}
\DeclareTextCommand{\CYRSH}{L8U}{��}
\DeclareTextCommand{\CYRSHCH}{L8U}{��}
\DeclareTextCommand{\CYRHRDSN}{L8U}{��}
\DeclareTextCommand{\texthardsign}{L8U}{��}
\DeclareTextCommand{\CYRERY}{L8U}{��}
\DeclareTextCommand{\CYRDZHE}{L8U}{��}
\DeclareTextCommand{\CYRSFTSN}{L8U}{��}
\DeclareTextCommand{\textsoftsign}{L8U}{��}
\DeclareTextCommand{\CYREREV}{L8U}{��}
\DeclareTextCommand{\CYRYU}{L8U}{��}
\DeclareTextCommand{\CYRYA}{L8U}{��}
% Ux0430 ��� lowercase
\DeclareTextCommand{\cyra}{L8U}{��}
\DeclareTextCommand{\cyrb}{L8U}{��}
\DeclareTextCommand{\cyrv}{L8U}{��}
\DeclareTextCommand{\cyrg}{L8U}{��}
\DeclareTextCommand{\cyrd}{L8U}{��}
\DeclareTextCommand{\cyre}{L8U}{��}
\DeclareTextCommand{\cyrzh}{L8U}{��}
\DeclareTextCommand{\cyrz}{L8U}{��}
\DeclareTextCommand{\cyri}{L8U}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\cyri}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\cyri}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCommand{\cyrishrt}{L8U}{��}
\DeclareTextCommand{\cyrk}{L8U}{��}
\DeclareTextCommand{\cyrl}{L8U}{��}
\DeclareTextCommand{\cyrm}{L8U}{��}
\DeclareTextCommand{\cyrn}{L8U}{��}
\DeclareTextCommand{\cyro}{L8U}{��}
\DeclareTextCommand{\cyrp}{L8U}{��}
\DeclareTextCommand{\cyrr}{L8U}{��}
\DeclareTextCommand{\cyrs}{L8U}{��}
\DeclareTextCommand{\cyrt}{L8U}{��}
\DeclareTextCommand{\cyru}{L8U}{��}
\DeclareTextCommand{\cyrf}{L8U}{��}
\DeclareTextCommand{\cyrh}{L8U}{��}
\DeclareTextCommand{\cyrc}{L8U}{��}
\DeclareTextCommand{\cyrch}{L8U}{��}
\DeclareTextCommand{\cyrsh}{L8U}{��}
\DeclareTextCommand{\cyrshch}{L8U}{��}
\DeclareTextCommand{\cyrhrdsn}{L8U}{��}
\DeclareTextCommand{\cyrery}{L8U}{��}
\DeclareTextCommand{\cyrdzhe}{L8U}{��}
\DeclareTextCommand{\cyrsftsn}{L8U}{��}
\DeclareTextCommand{\cyrerev}{L8U}{��}
\DeclareTextCommand{\cyryu}{L8U}{��}
\DeclareTextCommand{\cyrya}{L8U}{��}
% Ux0450 ��� lowercase accents + extras
\DeclareTextCompositeCommand{\`}{L8U}{\cyre}{��}
%%\DeclareTextCompositeCommand{\`}{L8U}{��}{��}
%\DeclareTextCompositeCommand{\`}{L8U}{e}{��}%  overrides ��
\DeclareTextCompositeCommand{\"}{L8U}{\cyre}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\cyryo}{L8U}{��}
%\DeclareTextCompositeCommand{\`}{L8U}{e}{��}%  overrides ��
\DeclareTextCommand{\cyrdje}{L8U}{��}
\DeclareTextCompositeCommand{\'}{L8U}{\cyrg}{��}
%%\DeclareTextCompositeCommand{\'}{L8U}{��}{��}
\DeclareTextCommand{\cyrgje}{L8U}{��}
\DeclareTextCommand{\cyrie}{L8U}{��}
\DeclareTextCommand{\cyrdze}{L8U}{��}
\DeclareTextCommand{\cyrii}{L8U}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrii}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\cyryi}{L8U}{��}
%\DeclareTextCompositeCommand{\"}{L8U}{i}{��}% overrides ��
\DeclareTextCommand{\cyrje}{L8U}{��}
\DeclareTextCommand{\cyrlje}{L8U}{��}
\DeclareTextCommand{\cyrnje}{L8U}{��}
\DeclareTextCommand{\cyrtshe}{L8U}{��}
\DeclareTextCompositeCommand{\'}{L8U}{\cyrk}{��}
%%\DeclareTextCompositeCommand{\'}{L8U}{��}{��}
\DeclareTextCommand{\cyrkje}{L8U}{��}
%\DeclareTextCompositeCommand{\"}{L8U}{k}{��}%  ascii-k
\DeclareTextCompositeCommand{\`}{L8U}{\cyri}{��}
%%\DeclareTextCompositeCommand{\`}{L8U}{��}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\cyru}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\cyru}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\curu}{��}% mistake in PD1 (2009)
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
%\DeclareTextCompositeCommand{\u}{L8U}{y}{��}%  ascii-y
\DeclareTextCommand{\cyrushrt}{L8U}{��}
\DeclareTextCommand{\cyrdzhe}{L8U}{��}
% Ux0460
\DeclareTextCommand{\CYROMEGA}{L8U}{��}
\DeclareTextCommand{\cyromega}{L8U}{��}
\DeclareTextCommand{\CYRYAT}{L8U}{��}
\DeclareTextCommand{\cyryat}{L8U}{��}
\DeclareTextCommand{\CYRIOTEST}{L8U}{��}% mistake in ucs.sty ?
\DeclareTextCommand{\CYRIOTE}{L8U}{��}
\DeclareTextCommand{\cyriotest}{L8U}{��}% mistake in ucs.sty ?
\DeclareTextCommand{\cyriote}{L8U}{��}
\DeclareTextCommand{\CYRLYUS}{L8U}{��}
\DeclareTextCommand{\cyrlyus}{L8U}{��}
\DeclareTextCommand{\CYRIOTLYUS}{L8U}{��}
\DeclareTextCommand{\cyriotlyus}{L8U}{��}
\DeclareTextCommand{\CYRBYUS}{L8U}{��}
\DeclareTextCommand{\cyrbyus}{L8U}{��}
\DeclareTextCommand{\CYRIOTBYUS}{L8U}{��}
\DeclareTextCommand{\cyriotbyus}{L8U}{��}
\DeclareTextCommand{\CYRKSI}{L8U}{��}
\DeclareTextCommand{\cyrksi}{L8U}{��}
\DeclareTextCommand{\CYRPSI}{L8U}{��}
\DeclareTextCommand{\cyrpsi}{L8U}{��}
\DeclareTextCommand{\CYRFITA}{L8U}{��}
\DeclareTextCommand{\cyrfita}{L8U}{��}
\DeclareTextCommand{\CYRIZH}{L8U}{��}
\DeclareTextCommand{\cyrizh}{L8U}{��}
\DeclareTextCompositeCommand{\C}{L8U}{\CYRIZH}{��}
%%\DeclareTextCompositeCommand{\C}{L8U}{��}{��}
\DeclareTextCompositeCommand{\C}{L8U}{\cyrizh}{��}
%%\DeclareTextCompositeCommand{\C}{L8U}{��}{��}
\DeclareTextCommand{\CYRVARUK}{L8U}{��}
\DeclareTextCommand{\CYRUK}{L8U}{��}
\DeclareTextCommand{\cyrvaruk}{L8U}{��}
\DeclareTextCommand{\cyruk}{L8U}{��}
\DeclareTextCommand{\CYROMRND}{L8U}{��}
\DeclareTextCommand{\CYROMEGARND}{L8U}{��}
\DeclareTextCommand{\cyromrnd}{L8U}{��}
\DeclareTextCommand{\cyromegarnd}{L8U}{��}
\DeclareTextCompositeCommand{\CYRtitlo}{L8U}{\CYROMEGA}{��}
%%\DeclareTextCompositeCommand{\CYRtitlo}{L8U}{��}{��}
\DeclareTextCommand{\CYROMEGATITLO}{L8U}{��}
\DeclareTextCommand{\CYROMTLO}{L8U}{��}
\DeclareTextCompositeCommand{\CYRtitlo}{L8U}{\cyromega}{��}
%%\DeclareTextCompositeCommand{\CYRtitlo}{L8U}{��}{��}
\DeclareTextCommand{\cyromegatitlo}{L8U}{��}
\DeclareTextCommand{\cyromtlo}{L8U}{��}
\DeclareTextCommand{\CYROT}{L8U}{��}
\DeclareTextCommand{\cyrot}{L8U}{��}
\DeclareTextCommand{\CYRKOPPA}{L8U}{��}
\DeclareTextCommand{\cyrkoppa}{L8U}{��}
% Ux0482  more accents and diacritics
\DeclareTextCommand{\CYRthousands}{L8U}{��}
\DeclareTextCompositeCommand{\CYRtitlo}{L8U}{\empty}{ ��}
\DeclareTextCompositeCommand{\CYRpalatal}{L8U}{\empty}{ ��}
\DeclareTextCompositeCommand{\CYRdasia}{L8U}{\empty}{ ��}
\DeclareTextCompositeCommand{\CYRpsili}{L8U}{\empty}{ ��}
\DeclareTextCompositeCommand{\CYRpokrytie}{L8U}{\empty}{ ��}
\DeclareTextCompositeCommand{\cyrlegion}{L8U}{\empty}{ ��}
\DeclareTextCompositeCommand{\cyrleodr}{L8U}{\empty}{ ��}

%\DeclareTextCompositeCommand{\???}{L8U}{\CYRISHRT}{��}
%\DeclareTextCompositeCommand{\???}{L8U}{��}{��}
\DeclareTextCommand{\CYRISHRTDSC}{L8U}{��}
%\DeclareTextCompositeCommand{\???}{L8U}{\cyrishrt}{��}
%\DeclareTextCompositeCommand{\???}{L8U}{��}{��}
\DeclareTextCommand{\cyrishrtdsc}{L8U}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\CYRSEMISFTSN}{L8U}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\cyrsemisftsn}{L8U}{��}
\DeclareTextCommand{\CYRRTICK}{L8U}{��}
\DeclareTextCommand{\cyrrtick}{L8U}{��}
% Ux0490
\DeclareTextCommand{\CYRGUP}{L8U}{��}
\DeclareTextCommand{\cyrgup}{L8U}{��}
\DeclareTextCompositeCommand{\B}{L8U}{\CYRG}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\CYRGHCRS}{L8U}{��}
\DeclareTextCompositeCommand{\B}{L8U}{\cyrg}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\cyrghcrs}{L8U}{��}
\DeclareTextCommand{\CYRGHK}{L8U}{��}
\DeclareTextCommand{\cyrghk}{L8U}{��}
\DeclareTextCommand{\CYRZHDSC}{L8U}{��}
\DeclareTextCommand{\cyrzhdsc}{L8U}{��}
\DeclareTextCompositeCommand{\c}{L8U}{\CYRZ}{��}
%%\DeclareTextCompositeCommand{\c}{L8U}{��}{��}
\DeclareTextCommand{\CYRZDSC}{L8U}{��}
\DeclareTextCompositeCommand{\c}{L8U}{\cyrz}{��}
%%\DeclareTextCompositeCommand{\c}{L8U}{��}{��}
\DeclareTextCommand{\cyrzdsc}{L8U}{��}
\DeclareTextCommand{\CYRKDSC}{L8U}{��}
\DeclareTextCommand{\cyrkdsc}{L8U}{��}
\DeclareTextCommand{\CYRKVCRS}{L8U}{��}
\DeclareTextCommand{\cyrkvcrs}{L8U}{��}
\DeclareTextCompositeCommand{\B}{L8U}{\CYRK}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\CYRKHCRS}{L8U}{��}
\DeclareTextCompositeCommand{\B}{L8U}{\cyrk}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\cyrkhcrs}{L8U}{��}
% Ux04A0
\DeclareTextCommand{\CYRKBEAK}{L8U}{��}
\DeclareTextCommand{\cyrkbeak}{L8U}{��}
\DeclareTextCommand{\CYRNDSC}{L8U}{��}
\DeclareTextCommand{\cyrndsc}{L8U}{��}
\DeclareTextCommand{\CYRNG}{L8U}{��}
\DeclareTextCommand{\cyrng}{L8U}{��}
\DeclareTextCommand{\CYRPHK}{L8U}{��}
\DeclareTextCommand{\cyrphk}{L8U}{��}
\DeclareTextCommand{\CYRABHHA}{L8U}{��}
\DeclareTextCommand{\cyrabhha}{L8U}{��}
\DeclareTextCompositeCommand{\CYRSDSC}{L8U}{\CYRS}{��}% error in PD1 (2009)
\DeclareTextCompositeCommand{\c}{L8U}{\CYRS}{��}
%%\DeclareTextCompositeCommand{\c}{L8U}{��}{��}
\DeclareTextCompositeCommand{\k}{L8U}{\CYRS}{��}% PD1
%%\DeclareTextCompositeCommand{\k}{L8U}{��}{��}% PD1
\DeclareTextCompositeCommand{\c}{L8U}{\cyrs}{��}
%%\DeclareTextCompositeCommand{\k}{L8U}{��}{��}% PD1
\DeclareTextCompositeCommand{\k}{L8U}{\cyrs}{��}% PD1
%%\DeclareTextCompositeCommand{\c}{L8U}{��}{��}
\DeclareTextCommand{\cyrsdsc}{L8U}{��}
\DeclareTextCommand{\CYRTDSC}{L8U}{��}
\DeclareTextCommand{\cyrtdsc}{L8U}{��}
\DeclareTextCommand{\CYRY}{L8U}{��}
\DeclareTextCommand{\cyry}{L8U}{��}
% Ux04B0
\DeclareTextCompositeCommand{\B}{L8U}{\CYRY}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\CYRYHCRS}{L8U}{��}
\DeclareTextCompositeCommand{\B}{L8U}{\cyry}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCommand{\cyryhcrs}{L8U}{��}
\DeclareTextCommand{\CYRHDSC}{L8U}{��}
\DeclareTextCommand{\cyrhdsc}{L8U}{��}
\DeclareTextCommand{\CYRTETSE}{L8U}{��}
\DeclareTextCommand{\cyrtetse}{L8U}{��}
\DeclareTextCommand{\CYRCHRDSC}{L8U}{��}
\DeclareTextCommand{\cyrchrdsc}{L8U}{��}
\DeclareTextCommand{\CYRCHVCRS}{L8U}{��}
\DeclareTextCommand{\cyrchvcrs}{L8U}{��}
\DeclareTextCommand{\CYRSHHA}{L8U}{��}
\DeclareTextCommand{\cyrshha}{L8U}{��}
\DeclareTextCommand{\CYRABHCH}{L8U}{��}
\DeclareTextCommand{\cyrabhch}{L8U}{��}
\DeclareTextCompositeCommand{\k}{L8U}{\CYRABHCH}{��}
%%\DeclareTextCompositeCommand{\k}{L8U}{��}{��}
\DeclareTextCommand{\CYRABHCHDSC}{L8U}{��}
\DeclareTextCompositeCommand{\k}{L8U}{\cyrabhch}{��}
%%\DeclareTextCompositeCommand{\k}{L8U}{��}{��}
\DeclareTextCommand{\cyrabhchdsc}{L8U}{��}
% Ux04C0
\DeclareTextCommand{\CYRpalochka}{L8U}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\CYRZH}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\CYRZH}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{\CYRK}{��}
%%\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{��}{��}
\DeclareTextCommand{\CYRKHK}{L8U}{��}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{\cyrk}{��}
%%\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{��}{��}
\DeclareTextCommand{\cyrkhk}{L8U}{��}
\DeclareTextCommand{\CYRLDSC}{L8U}{��}
\DeclareTextCommand{\cyrldsc}{L8U}{��}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{\CYRN}{��}
%%\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{��}{��}
\DeclareTextCommand{\CYRNHK}{L8U}{��}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{\cyrn}{��}
%%\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{��}{��}
\DeclareTextCommand{\cyrnhk}{L8U}{��}
\DeclareTextCommand{\CYRNTL}{L8U}{��}%  ??? with tail
\DeclareTextCommand{\cyrntl}{L8U}{��}%  ??? with tail
\DeclareTextCommand{\CYRCHLDSC}{L8U}{��}
\DeclareTextCommand{\cyrchldsc}{L8U}{��}
\DeclareTextCommand{\CYRMDSC}{L8U}{��}% PD1
\DeclareTextCommand{\CYRMTL}{L8U}{��}%  ??? with tail
\DeclareTextCommand{\cyrmdsc}{L8U}{��}%  PD1
\DeclareTextCommand{\cyrmtl}{L8U}{��}%  ??? with tail
\DeclareTextCommand{\cyrpalochka}{L8U}{��}% ???
% Ux04D0 ��� Ux04FF
\DeclareTextCompositeCommand{\u}{L8U}{\CYRA}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\CYRA}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\cyra}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\cyra}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRA}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyra}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\CYRAE}{L8U}{��}
\DeclareTextCommand{\cyrae}{L8U}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\CYRE}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\CYRE}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCompositeCommand{\u}{L8U}{\cyre}{��}
\DeclareTextCompositeCommand{\U}{L8U}{\cyre}{��}
%%\DeclareTextCompositeCommand{\u}{L8U}{��}{��}
%%\DeclareTextCompositeCommand{\U}{L8U}{��}{��}
\DeclareTextCommand{\CYRSCHWA}{L8U}{��}
\DeclareTextCommand{\cyrschwa}{L8U}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRSCHWA}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrschwa}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRZH}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrzh}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRZ}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\CYRABHDZE}{L8U}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrz}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\cyrabhdze}{L8U}{��}
\DeclareTextCompositeCommand{\=}{L8U}{\CYRI}{��}
%%\DeclareTextCompositeCommand{\=}{L8U}{��}{��}
\DeclareTextCompositeCommand{\=}{L8U}{\cyri}{��}
%%\DeclareTextCompositeCommand{\=}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRI}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyri}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRO}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyro}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\CYROTLD}{L8U}{��}
\DeclareTextCommand{\cyrotld}{L8U}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYROTLD}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrotld}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYREREV}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrerev}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\=}{L8U}{\CYRU}{��}
%%\DeclareTextCompositeCommand{\=}{L8U}{��}{��}
\DeclareTextCompositeCommand{\=}{L8U}{\cyru}{��}
%%\DeclareTextCompositeCommand{\=}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRU}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyru}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\H}{L8U}{\CYRU}{��}
%%\DeclareTextCompositeCommand{\H}{L8U}{��}{��}
\DeclareTextCompositeCommand{\H}{L8U}{\cyru}{��}
%%\DeclareTextCompositeCommand{\H}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRCH}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrch}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCommand{\CYRGDSC}{L8U}{��}
\DeclareTextCommand{\cyrgdsc}{L8U}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\CYRERY}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\"}{L8U}{\cyrery}{��}
%%\DeclareTextCompositeCommand{\"}{L8U}{��}{��}
\DeclareTextCompositeCommand{\textpalhook}{L8U}{\CYRGHCRS}{��}
%%\DeclareTextCompositeCommand{\textpalhook}{L8U}{��}{��}
\DeclareTextCompositeCommand{\textpalhook}{L8U}{\cyrghcrs}{��}
%%\DeclareTextCompositeCommand{\textpalhook}{L8U}{��}{��}
\DeclareTextCompositeCommand{\textpalhook}{L8U}{\CYRH}{��}
%%\DeclareTextCompositeCommand{\textpalhook}{L8U}{��}{��}
\DeclareTextCommand{\CYRHHK}{L8U}{��}%  PD1
\DeclareTextCompositeCommand{\textpalhook}{L8U}{\cyrh}{��}
%%\DeclareTextCompositeCommand{\textpalhook}{L8U}{��}{��}
\DeclareTextCommand{\cyrhhk}{L8U}{��}%  PD1
\DeclareTextCompositeCommand{\B}{L8U}{\CYRH}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}
\DeclareTextCompositeCommand{\B}{L8U}{\cyrh}{��}
%%\DeclareTextCompositeCommand{\B}{L8U}{��}{��}


%
%  Cyrillic Supplement  Ux0500 ��� Ux0527
%
\DeclareTextCommand{\CYRKDE}{L8U}{��}
\DeclareTextCommand{\cyrkde}{L8U}{��}
\DeclareTextCommand{\CYRKDJE}{L8U}{��}
\DeclareTextCommand{\cyrkdje}{L8U}{��}
\DeclareTextCommand{\CYRKZJE}{L8U}{��}
\DeclareTextCommand{\cyrkzje}{L8U}{��}
\DeclareTextCommand{\CYRKDZJE}{L8U}{��}
\DeclareTextCommand{\cyrkdzje}{L8U}{��}
\DeclareTextCommand{\CYRKLJE}{L8U}{��}
\DeclareTextCommand{\cyrklje}{L8U}{��}
\DeclareTextCommand{\CYRKNJE}{L8U}{��}
\DeclareTextCommand{\cyrknje}{L8U}{��}
\DeclareTextCommand{\CYRKSJE}{L8U}{��}
\DeclareTextCommand{\cyrksje}{L8U}{��}
\DeclareTextCommand{\CYRKTJE}{L8U}{��}
\DeclareTextCommand{\cyrktje}{L8U}{��}
\DeclareTextCommand{\CYREPS}{L8U}{��}
\DeclareTextCommand{\cyreps}{L8U}{��}
\DeclareTextCommand{\CYRLHK}{L8U}{��}
\DeclareTextCommand{\cyrlhk}{L8U}{��}
\DeclareTextCommand{\CYRLHA}{L8U}{��}
\DeclareTextCommand{\cyrlha}{L8U}{��}
\DeclareTextCommand{\CYRRHA}{L8U}{��}
\DeclareTextCommand{\cyrrha}{L8U}{��}
\DeclareTextCommand{\CYRYAE}{L8U}{��}
\DeclareTextCommand{\cyryae}{L8U}{��}
\DeclareTextCommand{\CYRQ}{L8U}{��}
\DeclareTextCommand{\cyrq}{L8U}{��}
\DeclareTextCommand{\CYRW}{L8U}{��}
\DeclareTextCommand{\cyrw}{L8U}{��}
\DeclareTextCommand{\CYRALKA}{L8U}{��}
\DeclareTextCommand{\cyralka}{L8U}{��}
\DeclareTextCommand{\CYRLHK}{L8U}{��}
\DeclareTextCommand{\cyrlhk}{L8U}{��}
\DeclareTextCommand{\CYRNHK}{L8U}{��}
\DeclareTextCommand{\cyrnhk}{L8U}{��}
\DeclareTextCommand{\CYRPEDSC}{L8U}{��}
\DeclareTextCommand{\cyrpedsc}{L8U}{��}
\DeclareTextCommand{\CYRSHHADSC}{L8U}{��}
\DeclareTextCommand{\cyrshhadsc}{L8U}{��}
%
%\endinput

\ifcyrKOIxmp\else\expandafter\endinput\fi


%  direct input ��� upper 8-bit:   ISO-8859-7 

\DeclareTextCommand{\textcyrKOIstring}{L8U}[1]{\textcyrKOI@ii#1\@empty\@empty}
\def\textcyrKOI@i#1{\textcyrKOI@ii#1}%\@empty}
\def\textcyrKOI@ii#1#2\@empty{%
 \ifx\@empty#2\@empty
 \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
 {\textKOIenc{#1}}{\textKOIenc{#1}\textcyrKOI@i#2\@empty}}

% \textKOIenc{#1}%
% \ifx\@empty#2\@empty\else\expandafter\textcyrKOI@i\fi#2\@empty}

\DeclareTextCommand{\textKOIenc}{L8U}[1]{#1}
\DeclareTextCommand{\textKOI}{L8U}[1]{\textcyrKOIstring{#1}}

%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{\sep}{\sep}%\restarttextKOI}

\obeyspaces
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{\sep}{\sep }%
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{ }{\space}%
\catcode`\ 10 


%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^80}{���}% Ux2500 
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^81}{���}% Ux2502
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^82}{���}% Ux250C
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^83}{���}% Ux2510
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^84}{���}% Ux2514
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^85}{���}% Ux2518
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^86}{���}% Ux251C
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^87}{���}% Ux2524
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^88}{���}% Ux252C
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^89}{���}% Ux2534
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^8a}{���}% Ux253C
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^8b}{���}% Ux2580
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^8c}{���}% Ux2584
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^8d}{���}% Ux2588
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^8e}{���}% Ux258C
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^8f}{���}% Ux2590
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^90}{���}% Ux2591
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^91}{���}% Ux2592
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^92}{���}% Ux2593
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^93}{���}% Ux2320
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^94}{���}% Ux25A0
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^95}{���}% Ux2022
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^96}{���}%* U+221A
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^97}{���}%* U+223C
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^98}{���}%* U+2264
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^99}{���}%* U+2265
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^9a}{\textnobreakspace}%
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^9b}{���}% Ux2321
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^9c}{\textdegree}%
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^9d}{\texttwosuperior}%
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^9e}{\textperiodcentered}%
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^9f}{\textdivide}%
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a0}{���}% Ux2550
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a1}{���}% Ux2551
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a2}{���}% Ux2552
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a3}{\cyryo}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a4}{\cyrie}
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a5}{���}% Ux2554
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a6}{\cyrii}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a7}{\cyryi}
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a8}{���}% Ux2557
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^a9}{���}% Ux2558
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^aa}{���}% Ux2559
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ab}{���}% Ux255A
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ac}{���}% Ux255B
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ad}{\cyrgup}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ae}{\cyrushrt}
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^af}{���}% Ux255E
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b0}{���}% Ux255F
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b1}{���}% Ux2560
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b2}{���}% Ux2561
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b3}{\CYRYO}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b4}{\CYRIE}
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b5}{���}% Ux2563
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b6}{\CYRII}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b7}{\CYRYI}
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b8}{���}% Ux2566
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^b9}{���}% Ux2567
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ba}{���}% Ux2568
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^bb}{���}% Ux2569
%%\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^bc}{���}% Ux256A
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^bd}{\CYRGUP}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^be}{\CYRUSHRT}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^bf}{\textcopyright}

\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c0}{\cyryu}%
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c1}{\cyra}% Ux0410
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c2}{\cyrb}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c3}{\cyrc}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c4}{\cyrd}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c5}{\cyre}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c6}{\cyrf}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c7}{\cyrg}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c8}{\cyrh}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^c9}{\cyri}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ca}{\cyrishrt}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^cb}{\cyrk}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^cc}{\cyrl}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^cd}{\cyrm}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ce}{\cyrn}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^cf}{\cyro}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d0}{\cyrp}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d1}{\cyrya}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d2}{\cyrr}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d3}{\cyrs}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d4}{\cyrt}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d5}{\cyru}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d6}{\cyrzh}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d7}{\cyrv}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d8}{\cyrsftsn}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^d9}{\cyrery}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^da}{\cyrz}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^db}{\cyrsh}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^dc}{\cyrerev}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^dd}{\cyrshch}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^de}{\cyrch}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^df}{\cyrhrdsn}

\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e0}{\CYRYU}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e1}{\CYRA}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e2}{\CYRB}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e3}{\CYRC}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e4}{\CYRD}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e5}{\CYRE}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e6}{\CYRF}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e7}{\CYRG}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e8}{\CYRH}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^e9}{\CYRI}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ea}{\CYRISHRT}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^eb}{\CYRK}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ec}{\CYRL}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ed}{\CYRM}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ee}{\CYRN}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ef}{\CYRO}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f0}{\CYRP}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f1}{\CYRYA}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f2}{\CYRR}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f3}{\CYRS}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f4}{\CYRT}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f5}{\CYRU}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f6}{\CYRZH}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f7}{\CYRV}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f8}{\CYRSFTSN}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^f9}{\CYRERY}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^fa}{\CYRZ}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^fb}{\CYRSH}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^fc}{\CYREREV}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^fd}{\CYRSHCH}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^fe}{\CYRCH}
\DeclareTextCompositeCommand{\textKOIenc}{L8U}{^^ff}{\CYRHRDSN}

%%  These suspend \textKOI string parsing, so ...
%
\DeclareTextCompositeCommand{\'}{L8U}{\textcyrKOI@i}{\'}
\DeclareTextCompositeCommand{\"}{L8U}{\textcyrKOI@i}{\"}
\DeclareTextCompositeCommand{\`}{L8U}{\textcyrKOI@i}{\`}
\DeclareTextCompositeCommand{\u}{L8U}{\textcyrKOI@i}{\u}
\DeclareTextCompositeCommand{\U}{L8U}{\textcyrKOI@i}{\U}
\DeclareTextCompositeCommand{\c}{L8U}{\textcyrKOI@i}{\c}
\DeclareTextCompositeCommand{\k}{L8U}{\textcyrKOI@i}{\k}
\DeclareTextCompositeCommand{\C}{L8U}{\textcyrKOI@i}{\C}
\DeclareTextCompositeCommand{\CYRtitlo}{L8U}{\textcyrKOI@i}{\CYRtitlo}
\DeclareTextCompositeCommand{\CYRpalatal}{L8U}{\textcyrKOI@i}{\CYRpalatal}
\DeclareTextCompositeCommand{\CYRdasia}{L8U}{\textcyrKOI@i}{\CYRdasia}
\DeclareTextCompositeCommand{\CYRpsili}{L8U}{\textcyrKOI@i}{\CYRpsili}
\DeclareTextCompositeCommand{\CYRpokrytie}{L8U}{\textcyrKOI@i}{\CYRpokrytie}
\DeclareTextCompositeCommand{\cyrlegion}{L8U}{\textcyrKOI@i}{\cyrlegion}
\DeclareTextCompositeCommand{\cyrleodr}{L8U}{\textcyrKOI@i}{\cyrleodr}

% ... we need a way to restart KOI string parsing after accents
%
\let\restarttextKOI\textcyrKOI@ii

\DeclareTextCompositeCommand{\`}{L8U}{^^e5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^e5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\'}{L8U}{^^e7}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^b6}{��\restarttextKOI}
\DeclareTextCompositeCommand{\'}{L8U}{^^eb}{��\restarttextKOI}
\DeclareTextCompositeCommand{\`}{L8U}{^^e9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^f5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^f5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^e9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^e9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^c9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^c9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\`}{L8U}{^^c5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^c5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\'}{L8U}{^^c7}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^a6}{��\restarttextKOI}
\DeclareTextCompositeCommand{\'}{L8U}{^^cb}{��\restarttextKOI}
\DeclareTextCompositeCommand{\`}{L8U}{^^c9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^d5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^d5}{��\restarttextKOI}

\DeclareTextCompositeCommand{\B}{L8U}{^^e7}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{^^c7}{��\restarttextKOI}
\DeclareTextCompositeCommand{\c}{L8U}{^^fa}{��\restarttextKOI}
\DeclareTextCompositeCommand{\c}{L8U}{^^da}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{^^eb}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{^^cb}{��\restarttextKOI}
\DeclareTextCompositeCommand{\CYRSDSC}{L8U}{^^f3}{��\restarttextKOI}
\DeclareTextCompositeCommand{\c}{L8U}{^^f3}{��\restarttextKOI}
\DeclareTextCompositeCommand{\k}{L8U}{^^f3}{��\restarttextKOI}
\DeclareTextCompositeCommand{\c}{L8U}{^^d3}{��\restarttextKOI}
\DeclareTextCompositeCommand{\k}{L8U}{^^d3}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{\CYRY}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{\cyry}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^f6}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^f6}{��\restarttextKOI}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{^^eb}{��\restarttextKOI}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{^^cb}{��\restarttextKOI}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{^^ee}{��\restarttextKOI}
\DeclareTextCompositeCommand{\textpalhookbelow}{L8U}{^^ce}{��\restarttextKOI}

\DeclareTextCompositeCommand{\u}{L8U}{^^e1}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^e1}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^c1}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^c1}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^e1}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^c1}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^e5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^e5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\u}{L8U}{^^c5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\U}{L8U}{^^c5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^f6}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^d6}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^fa}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^da}{��\restarttextKOI}
\DeclareTextCompositeCommand{\=}{L8U}{^^e9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\=}{L8U}{^^c9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^e9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^c9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^ef}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^cf}{��\restarttextKOI}
\DeclareTextCompositeCommand{\=}{L8U}{^^f5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\=}{L8U}{^^d5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^f5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^d5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\H}{L8U}{^^f5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\H}{L8U}{^^d5}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^fe}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^de}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^f9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\"}{L8U}{^^d9}{��\restarttextKOI}
\DeclareTextCompositeCommand{\textpalhook}{L8U}{^^e8}{��\restarttextKOI}
\DeclareTextCompositeCommand{\textpalhook}{L8U}{^^c8}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{^^e8}{��\restarttextKOI}
\DeclareTextCompositeCommand{\B}{L8U}{^^c8}{��\restarttextKOI}