<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \iffalse meta-comment
%
% This is the file `lcyw.dtx' to support B. Malyshev Type 1 
% Cyrillic CM fonts in LaTeX.
%
% Copyright (C) 2008 Vladimir Lidovski
%
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
%    http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX 
% version 2005/12/01 or later.
% 
% \fi
% \CheckSum{715}
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&amp;
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \&lt;
%   Equals        \=     Greater than  \&gt;     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
% \changes{v1.0}{2008/04/16}{Initial version}
% \changes{v1.1}{2008/07/17}{Documentation improvement}
%
%\iffalse
%&lt;*LCYW&gt;
\ProvidesFile{lcywenc.def}
  [2008/04/15 v1.0 Cyrillic encoding definition file]
%&lt;/LCYW&gt;
%&lt;*driver&gt;
\documentclass{ltxdoc}
\usepackage[LCYW]{fontenc}
\OnlyDescription
%\RecordChanges
\begin{document}
\DocInput{lcyw.dtx}
\end{document}
%&lt;/driver&gt;
%\fi
%
% \title{The \texttt{lcyw} package}
% \author{Vladimir Lidovski\\
%         {\footnotesize litwr@yandex.ru}\\
%         {\footnotesize vol.litwr@gmail.com}\\
%         {\footnotesize http://litwr.boom.ru/tex-en.html}}
% \date{July 17, 2008\\Version 1.1}
%
% \maketitle
%
% \begin{abstract}
%   \noindent This package is used to provide {\LaTeX} support for Cyrillic 
%   CM Type 1 fonts (|wcm*.vf|) which are presented in every {\TeX} distribution.
% \end{abstract}
%
% \section{Definitions for the \texttt{LCYW} encoding}
%
% This provides Russian/Bulgarian languages support for {\LaTeX} users at 
% the base of the Type 1 copies (Cyrillic part by B.~Malyshev) of classic 
% CM fonts (|OT1| part by D.~E.~Knuth, Cyrillic part by A.~Samarin \&amp; N.~Glonti) 
% which present in all {\TeX} distributions. These virtual fonts are using  
% `{\TeX} text Cyrillic' (|LCYW|) encoding. They provide only support for |OT1| 
% encoding, numero sign, left and right pointing guillemets (double angle quotation 
% marks) and Russian alphabets symbols.
%
% However |LCYW| option to |fontenc| is not enough to provide copy \&amp; search 
% features of the pdf viewers because standard |cmap| package lacks support 
% for the virtual fonts. The |LCYW| encoding companion package |cmap-cyr-vf| 
% should be used together with |cmap| package to provide such support.
%
% The |LCYW| encoding is an extension of the |OT1| encoding: all lower
% 128 positions are almost the same (and this part of the file |lcywenc.def| was 
% mostly taken from |ot1enc.def|) but 69 of the upper 128 positions are used for 
% Cyrillic glyphs, Spanish exclamation and question marks, and the numero sign 
% (|U+2116|). The guillemets are situated at the places of the mentioned above
% Spanish marks. So the left guillemet is at position 60 and the right guillemet 
% is at position 62. The upper positions 
% (192--255) are the same as in the most popular |T2A| encoding for main 64 
% (32 capital + 32 small) letters of Russian alphabet. The positions for other 
% symbols are: |\CYRYO| --- 168, |\cyryo| --- 184, |\textnumero|~--- 185, 
% !` --- 171, ?` --- 187 (see table below).
%
% You may use |less-than| (|&lt;|) and |greater-than| (|&gt;|) signs to enter guillemets. Spanish 
% marks may be entered by standard ligatures |!`| and |?`|.
%
% Important note: Unlike old |LCY| font encoding |LCYW| is completely 
% \emph{compatible} with the \LaTeXe\ standards.
%
% \begin{center}
% \begin{tabular}{ccccccccccccccccc}
% &amp;0&amp;1&amp;2&amp;3&amp;4&amp;5&amp;6&amp;7&amp;8&amp;9&amp; A&amp; B&amp; C&amp; D&amp; E&amp; F\cr
% \hline
% 00&amp;\symbol{0}&amp;\symbol{1}&amp;\symbol{2}&amp;\symbol{3}&amp;\symbol{4}&amp;\symbol{5}&amp;\symbol{6}&amp;\symbol{7}&amp;\symbol{8}&amp;\symbol{9}&amp;\symbol{10}&amp;\symbol{11}&amp;\symbol{12}&amp;\symbol{13}&amp;\symbol{14}&amp;\symbol{15}\cr
% 10&amp;\symbol{16}&amp;\symbol{17}&amp;\symbol{18}&amp;\symbol{19}&amp;\symbol{20}&amp;\symbol{21}&amp;\symbol{22}&amp;\symbol{23}&amp;\symbol{24}&amp;\symbol{25}&amp;\symbol{26}&amp;\symbol{27}&amp;\symbol{28}&amp;\symbol{29}&amp;\symbol{30}&amp;\symbol{31}\cr
% 20&amp;\symbol{32}&amp;\symbol{33}&amp;\symbol{34}&amp;\symbol{35}&amp;\symbol{36}&amp;\symbol{37}&amp;\symbol{38}&amp;\symbol{39}&amp;\symbol{40}&amp;\symbol{41}&amp;\symbol{42}&amp;\symbol{43}&amp;\symbol{44}&amp;\symbol{45}&amp;\symbol{46}&amp;\symbol{47}\cr
% 30&amp;\symbol{48}&amp;\symbol{49}&amp;\symbol{50}&amp;\symbol{51}&amp;\symbol{52}&amp;\symbol{53}&amp;\symbol{54}&amp;\symbol{55}&amp;\symbol{56}&amp;\symbol{57}&amp;\symbol{58}&amp;\symbol{59}&amp;\symbol{60}&amp;\symbol{61}&amp;\symbol{62}&amp;\symbol{63}\cr
% 40&amp;\symbol{64}&amp;\symbol{65}&amp;\symbol{66}&amp;\symbol{67}&amp;\symbol{68}&amp;\symbol{69}&amp;\symbol{70}&amp;\symbol{71}&amp;\symbol{72}&amp;\symbol{73}&amp;\symbol{74}&amp;\symbol{75}&amp;\symbol{76}&amp;\symbol{77}&amp;\symbol{78}&amp;\symbol{79}\cr
% 50&amp;\symbol{80}&amp;\symbol{81}&amp;\symbol{82}&amp;\symbol{83}&amp;\symbol{84}&amp;\symbol{85}&amp;\symbol{86}&amp;\symbol{87}&amp;\symbol{88}&amp;\symbol{89}&amp;\symbol{90}&amp;\symbol{91}&amp;\symbol{92}&amp;\symbol{93}&amp;\symbol{94}&amp;\symbol{95}\cr
% 60&amp;\symbol{96}&amp;\symbol{97}&amp;\symbol{98}&amp;\symbol{99}&amp;\symbol{100}&amp;\symbol{101}&amp;\symbol{102}&amp;\symbol{103}&amp;\symbol{104}&amp;\symbol{105}&amp;\symbol{106}&amp;\symbol{107}&amp;\symbol{108}&amp;\symbol{109}&amp;\symbol{110}&amp;\symbol{111}\cr
% 70&amp;\symbol{112}&amp;\symbol{113}&amp;\symbol{114}&amp;\symbol{115}&amp;\symbol{116}&amp;\symbol{117}&amp;\symbol{118}&amp;\symbol{119}&amp;\symbol{120}&amp;\symbol{121}&amp;\symbol{122}&amp;\symbol{123}&amp;\symbol{124}&amp;\symbol{125}&amp;\symbol{126}&amp;\symbol{127}\cr
% 80&amp;\symbol{128}&amp;\symbol{129}&amp;\symbol{130}&amp;\symbol{131}&amp;\symbol{132}&amp;\symbol{133}&amp;\symbol{134}&amp;\symbol{135}&amp;\symbol{136}&amp;\symbol{137}&amp;\symbol{138}&amp;\symbol{139}&amp;\symbol{140}&amp;\symbol{141}&amp;\symbol{142}&amp;\symbol{143}\cr
% 90&amp;\symbol{144}&amp;\symbol{145}&amp;\symbol{146}&amp;\symbol{147}&amp;\symbol{148}&amp;\symbol{149}&amp;\symbol{150}&amp;\symbol{151}&amp;\symbol{152}&amp;\symbol{153}&amp;\symbol{154}&amp;\symbol{155}&amp;\symbol{156}&amp;\symbol{157}&amp;\symbol{158}&amp;\symbol{159}\cr
%  A0&amp;\symbol{160}&amp;\symbol{161}&amp;\symbol{162}&amp;\symbol{163}&amp;\symbol{164}&amp;\symbol{165}&amp;\symbol{166}&amp;\symbol{167}&amp;\symbol{168}&amp;\symbol{169}&amp;\symbol{170}&amp;\symbol{171}&amp;\symbol{172}&amp;\symbol{173}&amp;\symbol{174}&amp;\symbol{175}\cr
%  B0&amp;\symbol{176}&amp;\symbol{177}&amp;\symbol{178}&amp;\symbol{179}&amp;\symbol{180}&amp;\symbol{181}&amp;\symbol{182}&amp;\symbol{183}&amp;\symbol{184}&amp;\symbol{185}&amp;\symbol{186}&amp;\symbol{187}&amp;\symbol{188}&amp;\symbol{189}&amp;\symbol{190}&amp;\symbol{191}\cr
%  C0&amp;\symbol{192}&amp;\symbol{193}&amp;\symbol{194}&amp;\symbol{195}&amp;\symbol{196}&amp;\symbol{197}&amp;\symbol{198}&amp;\symbol{199}&amp;\symbol{200}&amp;\symbol{201}&amp;\symbol{202}&amp;\symbol{203}&amp;\symbol{204}&amp;\symbol{205}&amp;\symbol{206}&amp;\symbol{207}\cr
%  D0&amp;\symbol{208}&amp;\symbol{209}&amp;\symbol{210}&amp;\symbol{211}&amp;\symbol{212}&amp;\symbol{213}&amp;\symbol{214}&amp;\symbol{215}&amp;\symbol{216}&amp;\symbol{217}&amp;\symbol{218}&amp;\symbol{219}&amp;\symbol{220}&amp;\symbol{221}&amp;\symbol{222}&amp;\symbol{223}\cr
%  E0&amp;\symbol{224}&amp;\symbol{225}&amp;\symbol{226}&amp;\symbol{227}&amp;\symbol{228}&amp;\symbol{229}&amp;\symbol{230}&amp;\symbol{231}&amp;\symbol{232}&amp;\symbol{233}&amp;\symbol{234}&amp;\symbol{235}&amp;\symbol{236}&amp;\symbol{237}&amp;\symbol{238}&amp;\symbol{239}\cr
%  F0&amp;\symbol{240}&amp;\symbol{241}&amp;\symbol{242}&amp;\symbol{243}&amp;\symbol{244}&amp;\symbol{245}&amp;\symbol{246}&amp;\symbol{247}&amp;\symbol{248}&amp;\symbol{249}&amp;\symbol{250}&amp;\symbol{251}&amp;\symbol{252}&amp;\symbol{253}&amp;\symbol{254}&amp;\symbol{255}\cr
% \end{tabular}
% \end{center}
%
% \section{A Unicode support companion package for the \texttt{LCYW} encoding}
%
% Use |cmap-cyr-vf.sty| to provide copy \&amp; find features of pdf viewers. 
% Just place |\usepackage{cmap-cyr-vf}| 
% to the preamble of a document. This style file uses |koi7a.cmap| file.
% It provides support for all Cyrillic Type 1 fonts by B.~Malyshev in the 
% following virtual fonts: 
% |kcm*.vf|, |wcm*.vf| (used by this package), |xcmr*.vf|, and |ycmr*.vf|.
% These virtual fonts give the same symbols set but in the different encodings 
% (see |cmap-cyr-vf.sty| for more details).
% The |LCYW| encoding is directly taken from |wcm*.vf|.
%
% This style may be used separately from |LCYW| encoding to direct Unicode 
% support for any of the mentioned above virtual fonts (at 5, 6, 7, 8, 9, 10, 10.95, 12, 
% 14.4, 17.28, 20.74, 24.88, 29.86, 35.83 pt), e.~g., in the MetaPost programs.
%
%
% \section{A PDF cmap file to support Unicode mapping of LCYW fonts}
%
% The file |koi7a.cmap| sets the following font symbol positions 
% Unicode mapping.
%
% \begin{tabular}[t]{lcr}
% \hline
% |19|&amp;	Numero sign&amp; |U+2116|\\
% |1D|&amp;	Left-pointing double angle quotation&amp; |U+00AB|\\
% |1E|&amp;	Right-pointing double angle quotation&amp; |U+00BB|\\
% |3C|&amp;	Cyrillic small letter io (it is missed in some fonts)&amp; |U+0451|\\
% |3E|&amp;	Cyrillic capital letter io&amp; |U+0401|\\
% |40|--|7E|&amp;	KOI-7 Standard\\
% |7F|&amp;	Cyrillic capital letter hard sign&amp; |U+042A|\\
% \hline
% \end{tabular}
%
% \StopEventually{}
%
%\iffalse
%&lt;*LCYW&gt;
%\fi
%\section{The \texttt{LCYW} encoding file}
%
% Declare the Local Cyrillic encoding (|lcywenc.def| file).  Specify a default 
% for the font substitution process for the |LCYW| encoding.
%
%    \begin{macrocode}
\def\cyrillicencoding{LCYW}         %for babel compatibility
%    \end{macrocode}
% The |LCYW| is not standard encoding listed in the babel package |*.ldf| and |*.cfg| files yet. 
%    \begin{macrocode}
\DeclareFontEncoding{LCYW}{}{}
\DeclareFontSubstitution{\LastDeclaredEncoding}{cmr}{m}{n}
%    \end{macrocode}
% The next lines are copied from the |ot1enc.def| file
%    \begin{macrocode}
\DeclareTextAccent{\"}{LCYW}{127}
\DeclareTextAccent{\'}{LCYW}{19}
\DeclareTextAccent{\.}{LCYW}{95}
\DeclareTextAccent{\=}{LCYW}{22}
\DeclareTextAccent{\^}{LCYW}{94}
\DeclareTextAccent{\`}{LCYW}{18}
\DeclareTextAccent{\~}{LCYW}{126}
\DeclareTextAccent{\H}{LCYW}{125}
\DeclareTextAccent{\u}{LCYW}{21}
\DeclareTextAccent{\v}{LCYW}{20}
\DeclareTextAccent{\r}{LCYW}{23}
\DeclareTextCommand{\b}{LCYW}[1]
   {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}%
     \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
\DeclareTextCommand{\c}{LCYW}[1]
   {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
    \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
\DeclareTextCommand{\d}{LCYW}[1]
   {\hmode@bgroup
    \o@lign{\relax#1\crcr\hidewidth\sh@ft{10}.\hidewidth}\egroup}
\DeclareTextSymbol{\AE}{LCYW}{29}
\DeclareTextSymbol{\OE}{LCYW}{30}
\DeclareTextSymbol{\O}{LCYW}{31}
\DeclareTextSymbol{\ae}{LCYW}{26}
\DeclareTextSymbol{\i}{LCYW}{16}
\DeclareTextSymbol{\j}{LCYW}{17}
\DeclareTextSymbol{\oe}{LCYW}{27}
\DeclareTextSymbol{\o}{LCYW}{28}
\DeclareTextSymbol{\ss}{LCYW}{25}
\DeclareTextSymbol{\textemdash}{LCYW}{124}
\DeclareTextSymbol{\textendash}{LCYW}{123}
\DeclareTextCommand{\textexclamdown}{LCYW}{!`}
\DeclareTextCommand{\textquestiondown}{LCYW}{?`}
\DeclareTextSymbol{\textquotedblleft}{LCYW}{92}
\DeclareTextSymbol{\textquotedblright}{LCYW}{`\"}
\DeclareTextSymbol{\textquoteleft}{LCYW}{`\`}
\DeclareTextSymbol{\textquoteright}{LCYW}{`\'}
\DeclareTextCommand{\L}{LCYW}
   {\leavevmode\setbox\z@\hbox{L}\hb@xt@\wd\z@{\hss\@xxxii L}}
\DeclareTextCommand{\l}{LCYW}
   {\hmode@bgroup\@xxxii l\egroup}
\DeclareTextCompositeCommand{\r}{LCYW}{A}
   {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
    \rlap{\raise.67\dimen@\hbox{\char23}}A}
\DeclareTextCommand{\textdollar}{LCYW}{\hmode@bgroup
   \ifdim \fontdimen\@ne\font &gt;\z@
      \slshape
   \else
      \upshape
   \fi
   \char`\$\egroup}
\DeclareTextCommand{\textsterling}{LCYW}{\hmode@bgroup
   \ifdim \fontdimen\@ne\font &gt;\z@
      \itshape
   \else
      \fontshape{ui}\selectfont
   \fi
   \char`\$\egroup}
\DeclareTextComposite{\.}{LCYW}{i}{`\i}
\DeclareTextComposite{\.}{LCYW}{\i}{`\i}
\DeclareTextCompositeCommand{\`}{LCYW}{i}{\@tabacckludge`\i}
\DeclareTextCompositeCommand{\'}{LCYW}{i}{\@tabacckludge'\i}
\DeclareTextCompositeCommand{\^}{LCYW}{i}{\^\i}
\DeclareTextCompositeCommand{\"}{LCYW}{i}{\"\i}
%    \end{macrocode}
% The next definitions are missed in |ot1def.enc|
%    \begin{macrocode}
\DeclareTextAccent{\U}{\LastDeclaredEncoding}{20}
\DeclareTextSymbol{\cyrdash}{\LastDeclaredEncoding}{124}
\DeclareTextSymbol{\textasciicircum}{\LastDeclaredEncoding}{94}
\DeclareTextSymbol{\textasciitilde}{\LastDeclaredEncoding}{126}
\DeclareTextSymbol{\textquotedbl}{\LastDeclaredEncoding}{34}
\DeclareTextSymbol{\guillemotleft}{\LastDeclaredEncoding}{60}
\DeclareTextSymbol{\guillemotright}{\LastDeclaredEncoding}{62}
%    \end{macrocode}
% The next lines relate to Cyrillic symbols
%    \begin{macrocode}
\DeclareTextSymbol{\textnumero}{\LastDeclaredEncoding}{185}
\DeclareTextComposite{\.}{\LastDeclaredEncoding}{i}{`\i}
\DeclareTextSymbol{\CYRA}{\LastDeclaredEncoding}{192}
\DeclareTextSymbol{\cyra}{\LastDeclaredEncoding}{224}
\DeclareTextSymbol{\CYRB}{\LastDeclaredEncoding}{193}
\DeclareTextSymbol{\cyrb}{\LastDeclaredEncoding}{225}
\DeclareTextSymbol{\CYRV}{\LastDeclaredEncoding}{194}
\DeclareTextSymbol{\cyrv}{\LastDeclaredEncoding}{226}
\DeclareTextSymbol{\CYRG}{\LastDeclaredEncoding}{195}
\DeclareTextSymbol{\cyrg}{\LastDeclaredEncoding}{227}
\DeclareTextSymbol{\CYRD}{\LastDeclaredEncoding}{196}
\DeclareTextSymbol{\cyrd}{\LastDeclaredEncoding}{228}
\DeclareTextSymbol{\CYRE}{\LastDeclaredEncoding}{197}
\DeclareTextSymbol{\cyre}{\LastDeclaredEncoding}{229}
\DeclareTextSymbol{\CYRZH}{\LastDeclaredEncoding}{198}
\DeclareTextSymbol{\cyrzh}{\LastDeclaredEncoding}{230}
\DeclareTextSymbol{\CYRZ}{\LastDeclaredEncoding}{199}
\DeclareTextSymbol{\cyrz}{\LastDeclaredEncoding}{231}
\DeclareTextSymbol{\CYRI}{\LastDeclaredEncoding}{200}
\DeclareTextSymbol{\cyri}{\LastDeclaredEncoding}{232}
\DeclareTextSymbol{\CYRISHRT}{\LastDeclaredEncoding}{201}
\DeclareTextSymbol{\cyrishrt}{\LastDeclaredEncoding}{233}
\DeclareTextSymbol{\CYRK}{\LastDeclaredEncoding}{202}
\DeclareTextSymbol{\cyrk}{\LastDeclaredEncoding}{234}
\DeclareTextSymbol{\CYRL}{\LastDeclaredEncoding}{203}
\DeclareTextSymbol{\cyrl}{\LastDeclaredEncoding}{235}
\DeclareTextSymbol{\CYRM}{\LastDeclaredEncoding}{204}
\DeclareTextSymbol{\cyrm}{\LastDeclaredEncoding}{236}
\DeclareTextSymbol{\CYRN}{\LastDeclaredEncoding}{205}
\DeclareTextSymbol{\cyrn}{\LastDeclaredEncoding}{237}
\DeclareTextSymbol{\CYRO}{\LastDeclaredEncoding}{206}
\DeclareTextSymbol{\cyro}{\LastDeclaredEncoding}{238}
\DeclareTextSymbol{\CYRP}{\LastDeclaredEncoding}{207}
\DeclareTextSymbol{\cyrp}{\LastDeclaredEncoding}{239}
\DeclareTextSymbol{\CYRR}{\LastDeclaredEncoding}{208}
\DeclareTextSymbol{\cyrr}{\LastDeclaredEncoding}{240}
\DeclareTextSymbol{\CYRS}{\LastDeclaredEncoding}{209}
\DeclareTextSymbol{\cyrs}{\LastDeclaredEncoding}{241}
\DeclareTextSymbol{\CYRT}{\LastDeclaredEncoding}{210}
\DeclareTextSymbol{\cyrt}{\LastDeclaredEncoding}{242}
\DeclareTextSymbol{\CYRU}{\LastDeclaredEncoding}{211}
\DeclareTextSymbol{\cyru}{\LastDeclaredEncoding}{243}
\DeclareTextSymbol{\CYRF}{\LastDeclaredEncoding}{212}
\DeclareTextSymbol{\cyrf}{\LastDeclaredEncoding}{244}
\DeclareTextSymbol{\CYRH}{\LastDeclaredEncoding}{213}
\DeclareTextSymbol{\cyrh}{\LastDeclaredEncoding}{245}
\DeclareTextSymbol{\CYRC}{\LastDeclaredEncoding}{214}
\DeclareTextSymbol{\cyrc}{\LastDeclaredEncoding}{246}
\DeclareTextSymbol{\CYRCH}{\LastDeclaredEncoding}{215}
\DeclareTextSymbol{\cyrch}{\LastDeclaredEncoding}{247}
\DeclareTextSymbol{\CYRSH}{\LastDeclaredEncoding}{216}
\DeclareTextSymbol{\cyrsh}{\LastDeclaredEncoding}{248}
\DeclareTextSymbol{\CYRSHCH}{\LastDeclaredEncoding}{217}
\DeclareTextSymbol{\cyrshch}{\LastDeclaredEncoding}{249}
\DeclareTextSymbol{\CYRHRDSN}{\LastDeclaredEncoding}{218}
\DeclareTextSymbol{\cyrhrdsn}{\LastDeclaredEncoding}{250}
\DeclareTextSymbol{\CYRERY}{\LastDeclaredEncoding}{219}
\DeclareTextSymbol{\cyrery}{\LastDeclaredEncoding}{251}
\DeclareTextSymbol{\CYRSFTSN}{\LastDeclaredEncoding}{220}
\DeclareTextSymbol{\cyrsftsn}{\LastDeclaredEncoding}{252}
\DeclareTextSymbol{\CYREREV}{\LastDeclaredEncoding}{221}
\DeclareTextSymbol{\cyrerev}{\LastDeclaredEncoding}{253}
\DeclareTextSymbol{\CYRYU}{\LastDeclaredEncoding}{222}
\DeclareTextSymbol{\cyryu}{\LastDeclaredEncoding}{254}
\DeclareTextSymbol{\CYRYA}{\LastDeclaredEncoding}{223}
\DeclareTextSymbol{\cyrya}{\LastDeclaredEncoding}{255}
\DeclareTextSymbol{\CYRYO}{\LastDeclaredEncoding}{168}
\DeclareTextSymbol{\cyryo}{\LastDeclaredEncoding}{184}
\DeclareTextSymbol{\CYRII}{\LastDeclaredEncoding}{73}
\DeclareTextSymbol{\cyrii}{\LastDeclaredEncoding}{105}
\DeclareTextSymbol{\CYRJE}{\LastDeclaredEncoding}{74}
\DeclareTextSymbol{\cyrje}{\LastDeclaredEncoding}{106}
\DeclareTextSymbol{\CYRQ}{\LastDeclaredEncoding}{81}
\DeclareTextSymbol{\cyrq}{\LastDeclaredEncoding}{113}
\DeclareTextSymbol{\CYRW}{\LastDeclaredEncoding}{87}
\DeclareTextSymbol{\cyrw}{\LastDeclaredEncoding}{119}
\DeclareTextComposite{\"}{\LastDeclaredEncoding}{\CYRE}{168}
\DeclareTextComposite{\"}{\LastDeclaredEncoding}{\cyre}{184}
\DeclareTextComposite{\U}{\LastDeclaredEncoding}{\CYRI}{201}
\DeclareTextComposite{\U}{\LastDeclaredEncoding}{\cyri}{233}
%    \end{macrocode}
%\iffalse
%&lt;/LCYW&gt;
%\fi
%
%\iffalse
%&lt;*package&gt;
%\fi
% \section{The \texttt{cmap-cyr-vf.sty} file}
%
%    \begin{macrocode}
%% This is file provides Unicode support for wcm* (almost CP1251), 
%%   kcm* (almost KOI8-R), xcm* (almost CP866), ycm* (almost ISO 8859-5) 
%%   virtual fonts
\def\fileversion{1.0}
\def\filedate{2008/03/29}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\RequirePackage{ifpdf}
\ProvidesPackage{cmap-cyr-vf}[\filedate\space\fileversion\space
 CMAP for Cyrillic part by B.Malyshev (in KOI7) of the virtual fonts]
\ifpdf
%    \end{macrocode}
% The file |koi7a.cmap| is requested in the next line.
%    \begin{macrocode}
\immediate\pdfobj stream file {koi7a.cmap}
%    \end{macrocode}
% \begin{macro}{\addfonttounicode}
% This macro maps to Unicode given font with given size in pt. If size is set to 
% zero then it doesn't pass size information for the mapping command. This macro may 
% be redefined lately. It is only required during initialization of the fonts in 
% this package.
%    \begin{macrocode}
\def\addfonttounicode#1#2{\expandafter\font\csname#1#2\endcsname=#1%
\ifnum0=#2\else\space at #2pt\fi\expandafter\pdffontattr
\csname#1#2\endcsname{/ToUnicode \the\pdflastobj\space 0 R}}
%    \end{macrocode}
% \end{macro}
%    \begin{macrocode}
\addfonttounicode{cmcssbx10}{5}
\addfonttounicode{cmcu10}{5}
\addfonttounicode{cmcssi8}{5}
\addfonttounicode{cmcss8}{5}
\addfonttounicode{cmcitt10}{5}
\addfonttounicode{cmcbx5}{0}
\addfonttounicode{cmcsltt10}{5}
\addfonttounicode{cmctt8}{5}
\addfonttounicode{cmcssdc10}{5}
\addfonttounicode{cmcti7}{5}
\addfonttounicode{cmcbxti10}{5}
\addfonttounicode{cmccsc8}{5}
\addfonttounicode{cmcyr5}{0}
\addfonttounicode{cmcb10}{5}
\addfonttounicode{cmcsl8}{5}
\addfonttounicode{cmcbxsl10}{5}
\addfonttounicode{cmcssbx10}{6}
\addfonttounicode{cmcu10}{6}
\addfonttounicode{cmcssi8}{6}
\addfonttounicode{cmcss8}{6}
\addfonttounicode{cmcitt10}{6}
\addfonttounicode{cmcbx6}{0}
\addfonttounicode{cmcsltt10}{6}
\addfonttounicode{cmctt8}{6}
\addfonttounicode{cmcssdc10}{6}
\addfonttounicode{cmcti7}{6}
\addfonttounicode{cmcbxti10}{6}
\addfonttounicode{cmccsc8}{6}
\addfonttounicode{cmcyr6}{0}
\addfonttounicode{cmcb10}{6}
\addfonttounicode{cmcsl8}{6}
\addfonttounicode{cmcbxsl10}{6}
\addfonttounicode{cmcssbx10}{7}
\addfonttounicode{cmcu10}{7}
\addfonttounicode{cmcssi8}{7}
\addfonttounicode{cmcss8}{7}
\addfonttounicode{cmcitt10}{7}
\addfonttounicode{cmcbx7}{0}
\addfonttounicode{cmcsltt10}{7}
\addfonttounicode{cmctt8}{7}
\addfonttounicode{cmcssdc10}{7}
\addfonttounicode{cmcti7}{0}
\addfonttounicode{cmcbxti10}{7}
\addfonttounicode{cmccsc8}{7}
\addfonttounicode{cmcyr7}{0}
\addfonttounicode{cmcb10}{7}
\addfonttounicode{cmcsl8}{7}
\addfonttounicode{cmcbxsl10}{7}
\addfonttounicode{cmcssbx10}{8}
\addfonttounicode{cmcu10}{8}
\addfonttounicode{cmcssi8}{0}
\addfonttounicode{cmcss8}{0}
\addfonttounicode{cmcitt10}{8}
\addfonttounicode{cmcbx8}{0}
\addfonttounicode{cmcsltt10}{8}
\addfonttounicode{cmctt8}{0}
\addfonttounicode{cmcssdc10}{8}
\addfonttounicode{cmcti8}{0}
\addfonttounicode{cmcbxti10}{8}
\addfonttounicode{cmccsc8}{0}
\addfonttounicode{cmcyr8}{0}
\addfonttounicode{cmcb10}{8}
\addfonttounicode{cmcsl8}{0}
\addfonttounicode{cmcbxsl10}{8}
\addfonttounicode{cmcssbx10}{9}
\addfonttounicode{cmcu10}{9}
\addfonttounicode{cmcssi9}{0}
\addfonttounicode{cmcss9}{0}
\addfonttounicode{cmcitt10}{9}
\addfonttounicode{cmcbx9}{0}
\addfonttounicode{cmcsltt10}{9}
\addfonttounicode{cmctt9}{0}
\addfonttounicode{cmcssdc10}{9}
\addfonttounicode{cmcti9}{0}
\addfonttounicode{cmcbxti10}{9}
\addfonttounicode{cmccsc9}{0}
\addfonttounicode{cmcyr9}{0}
\addfonttounicode{cmcb10}{9}
\addfonttounicode{cmcsl9}{0}
\addfonttounicode{cmcbxsl10}{9}
\addfonttounicode{cmcssbx10}{0}
\addfonttounicode{cmcu10}{0}
\addfonttounicode{cmcssi10}{0}
\addfonttounicode{cmcss10}{0}
\addfonttounicode{cmcitt10}{0}
\addfonttounicode{cmcbx10}{0}
\addfonttounicode{cmcsltt10}{0}
\addfonttounicode{cmctt10}{0}
\addfonttounicode{cmcssdc10}{0}
\addfonttounicode{cmcti10}{0}
\addfonttounicode{cmcbxti10}{0}
\addfonttounicode{cmccsc10}{0}
\addfonttounicode{cmcyr10}{0}
\addfonttounicode{cmcb10}{0}
\addfonttounicode{cmcsl10}{0}
\addfonttounicode{cmcbxsl10}{0}
\addfonttounicode{cmcssbx10}{10.95}
\addfonttounicode{cmcu10}{10.95}
\addfonttounicode{cmcssi10}{10.95}
\addfonttounicode{cmcss10}{10.95}
\addfonttounicode{cmcitt10}{10.95}
\addfonttounicode{cmcbx10}{10.95}
\addfonttounicode{cmcsltt10}{10.95}
\addfonttounicode{cmctt10}{10.95}
\addfonttounicode{cmcssdc10}{10.95}
\addfonttounicode{cmcti10}{10.95}
\addfonttounicode{cmcbxti10}{10.95}
\addfonttounicode{cmccsc10}{10.95}
\addfonttounicode{cmcyr10}{10.95}
\addfonttounicode{cmcb10}{10.95}
\addfonttounicode{cmcsl10}{10.95}
\addfonttounicode{cmcbxsl10}{10.95}
\addfonttounicode{cmcssbx10}{12}
\addfonttounicode{cmcu10}{12}
\addfonttounicode{cmcssi12}{0}
\addfonttounicode{cmcss12}{0}
\addfonttounicode{cmcitt10}{12}
\addfonttounicode{cmcbx12}{0}
\addfonttounicode{cmcsltt10}{12}
\addfonttounicode{cmctt12}{0}
\addfonttounicode{cmcssdc10}{12}
\addfonttounicode{cmcti12}{0}
\addfonttounicode{cmcbxti10}{12}
\addfonttounicode{cmccsc10}{12}
\addfonttounicode{cmcyr12}{0}
\addfonttounicode{cmcb10}{12}
\addfonttounicode{cmcsl12}{0}
\addfonttounicode{cmcbxsl10}{12}
\addfonttounicode{cmcssbx10}{14.4}
\addfonttounicode{cmcu10}{14.4}
\addfonttounicode{cmcssi12}{14.4}
\addfonttounicode{cmcss12}{14.4}
\addfonttounicode{cmcitt10}{14.4}
\addfonttounicode{cmcbx12}{14.4}
\addfonttounicode{cmcsltt10}{14.4}
\addfonttounicode{cmctt12}{14.4}
\addfonttounicode{cmcssdc10}{14.4}
\addfonttounicode{cmcti12}{14.4}
\addfonttounicode{cmcbxti10}{14.4}
\addfonttounicode{cmccsc10}{14.4}
\addfonttounicode{cmcyr12}{14.4}
\addfonttounicode{cmcb10}{14.4}
\addfonttounicode{cmcsl12}{14.4}
\addfonttounicode{cmcbxsl10}{14.4}
\addfonttounicode{cmcssbx10}{17.28}
\addfonttounicode{cmcu10}{17.28}
\addfonttounicode{cmcssi17}{17.28}
\addfonttounicode{cmcss17}{17.28}
\addfonttounicode{cmcitt10}{17.28}
\addfonttounicode{cmcbx12}{17.28}
\addfonttounicode{cmcsltt10}{17.28}
\addfonttounicode{cmctt12}{17.28}
\addfonttounicode{cmcssdc10}{17.28}
\addfonttounicode{cmcti12}{17.28}
\addfonttounicode{cmcbxti10}{17.28}
\addfonttounicode{cmccsc10}{17.28}
\addfonttounicode{cmcyr17}{17.28}
\addfonttounicode{cmcb10}{17.28}
\addfonttounicode{cmcsl12}{17.28}
\addfonttounicode{cmcbxsl10}{17.28}
\addfonttounicode{cmcssbx10}{20.74}
\addfonttounicode{cmcu10}{20.74}
\addfonttounicode{cmcssi17}{20.74}
\addfonttounicode{cmcss17}{20.74}
\addfonttounicode{cmcitt10}{20.74}
\addfonttounicode{cmcbx12}{20.74}
\addfonttounicode{cmcsltt10}{20.74}
\addfonttounicode{cmctt12}{20.74}
\addfonttounicode{cmcssdc10}{20.74}
\addfonttounicode{cmcti12}{20.74}
\addfonttounicode{cmcbxti10}{20.74}
\addfonttounicode{cmccsc10}{20.74}
\addfonttounicode{cmcyr17}{20.74}
\addfonttounicode{cmcb10}{20.74}
\addfonttounicode{cmcsl12}{20.74}
\addfonttounicode{cmcbxsl10}{20.74}
\addfonttounicode{cmcssbx10}{24.88}
\addfonttounicode{cmcu10}{24.88}
\addfonttounicode{cmcssi17}{24.88}
\addfonttounicode{cmcss17}{24.88}
\addfonttounicode{cmcitt10}{24.88}
\addfonttounicode{cmcbx12}{24.88}
\addfonttounicode{cmcsltt10}{24.88}
\addfonttounicode{cmctt12}{24.88}
\addfonttounicode{cmcssdc10}{24.88}
\addfonttounicode{cmcti12}{24.88}
\addfonttounicode{cmcbxti10}{24.88}
\addfonttounicode{cmccsc10}{24.88}
\addfonttounicode{cmcyr17}{24.88}
\addfonttounicode{cmcb10}{24.88}
\addfonttounicode{cmcsl12}{24.88}
\addfonttounicode{cmcbxsl10}{24.88}
\addfonttounicode{cmcssbx10}{29.86}
\addfonttounicode{cmcu10}{29.86}
\addfonttounicode{cmcssi17}{29.86}
\addfonttounicode{cmcss17}{29.86}
\addfonttounicode{cmcitt10}{29.86}
\addfonttounicode{cmcbx12}{29.86}
\addfonttounicode{cmcsltt10}{29.86}
\addfonttounicode{cmctt12}{29.86}
\addfonttounicode{cmcssdc10}{29.86}
\addfonttounicode{cmcti12}{29.86}
\addfonttounicode{cmcbxti10}{29.86}
\addfonttounicode{cmccsc10}{29.86}
\addfonttounicode{cmcyr17}{29.86}
\addfonttounicode{cmcb10}{29.86}
\addfonttounicode{cmcsl12}{29.86}
\addfonttounicode{cmcbxsl10}{29.86}
\addfonttounicode{cmcssbx10}{35.83}
\addfonttounicode{cmcu10}{35.83}
\addfonttounicode{cmcssi17}{35.83}
\addfonttounicode{cmcss17}{35.83}
\addfonttounicode{cmcitt10}{35.83}
\addfonttounicode{cmcbx12}{35.83}
\addfonttounicode{cmcsltt10}{35.83}
\addfonttounicode{cmctt12}{35.83}
\addfonttounicode{cmcssdc10}{35.83}
\addfonttounicode{cmcti12}{35.83}
\addfonttounicode{cmcbxti10}{35.83}
\addfonttounicode{cmccsc10}{35.83}
\addfonttounicode{cmcyr17}{35.83}
\addfonttounicode{cmcb10}{35.83}
\addfonttounicode{cmcsl12}{35.83}
\addfonttounicode{cmcbxsl10}{35.83}
\fi
%    \end{macrocode}
%\iffalse
%&lt;/package&gt;
%\fi
%
%\iffalse
%&lt;*cmap&gt;
%\fi
% \section{The \texttt{koi7a.cmap} file}
%
%    \begin{macrocode}
%!PS-Adobe-3.0 Resource-CMap
%%DocumentNeededResources: ProcSet (CIDInit)
%%IncludeResource: ProcSet (CIDInit)
%%BeginResource: CMap (TeX-KOI7-A)
%%Title: (TeX-KOI7-A TeX KOI7 A)
%%Version: 1.000
%%EndComments
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
&lt;&lt; /Registry (TeX)
/Ordering (KOI7)
/Supplement 0
&gt;&gt; def
/CMapName /TeX-KOI7-A def
/CMapType 2 def
1 begincodespacerange
&lt;00&gt; &lt;FF&gt;
endcodespacerange
2 beginbfrange
&lt;49&gt; &lt;50&gt; &lt;0438&gt;
&lt;69&gt; &lt;70&gt; &lt;0418&gt;
endbfrange
53 beginbfchar
&lt;19&gt; &lt;2116&gt;
&lt;1D&gt; &lt;00AB&gt;
&lt;1E&gt; &lt;00BB&gt;
&lt;3C&gt; &lt;0451&gt;
&lt;3E&gt; &lt;0401&gt;
&lt;40&gt; &lt;044E&gt;
&lt;41&gt; &lt;0430&gt;
&lt;42&gt; &lt;0431&gt;
&lt;43&gt; &lt;0446&gt;
&lt;44&gt; &lt;0434&gt;
&lt;45&gt; &lt;0435&gt;
&lt;46&gt; &lt;0444&gt;
&lt;47&gt; &lt;0433&gt;
&lt;48&gt; &lt;0445&gt;
&lt;51&gt; &lt;044F&gt;
&lt;52&gt; &lt;0440&gt;
&lt;53&gt; &lt;0441&gt;
&lt;54&gt; &lt;0442&gt;
&lt;55&gt; &lt;0443&gt;
&lt;56&gt; &lt;0436&gt;
&lt;57&gt; &lt;0432&gt;
&lt;58&gt; &lt;044C&gt;
&lt;59&gt; &lt;044B&gt;
&lt;5A&gt; &lt;0437&gt;
&lt;5B&gt; &lt;0448&gt;
&lt;5C&gt; &lt;044D&gt;
&lt;5D&gt; &lt;0449&gt;
&lt;5E&gt; &lt;0447&gt;
&lt;5F&gt; &lt;044A&gt;
&lt;60&gt; &lt;044E&gt;
&lt;61&gt; &lt;0410&gt;
&lt;62&gt; &lt;0411&gt;
&lt;63&gt; &lt;0426&gt;
&lt;64&gt; &lt;0414&gt;
&lt;65&gt; &lt;0415&gt;
&lt;66&gt; &lt;0424&gt;
&lt;67&gt; &lt;0413&gt;
&lt;68&gt; &lt;0425&gt;
&lt;71&gt; &lt;042F&gt;
&lt;72&gt; &lt;0420&gt;
&lt;73&gt; &lt;0421&gt;
&lt;74&gt; &lt;0422&gt;
&lt;75&gt; &lt;0423&gt;
&lt;76&gt; &lt;0416&gt;
&lt;77&gt; &lt;0412&gt;
&lt;78&gt; &lt;042C&gt;
&lt;79&gt; &lt;042B&gt;
&lt;7A&gt; &lt;0417&gt;
&lt;7B&gt; &lt;0428&gt;
&lt;7C&gt; &lt;042D&gt;
&lt;7D&gt; &lt;0429&gt;
&lt;7E&gt; &lt;0427&gt;
&lt;7F&gt; &lt;042A&gt;
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
%%EndResource
%%EOF
%    \end{macrocode}
%\iffalse
%&lt;/cmap&gt;
%\fi
%
% \Finale
\endinput
</pre></body></html>