%% Package Sw2Rus.sty to use with LaTeX 2e.
%% Copyright (C) 2000-2003 Berik I. Tuleuov, Karaganda, Kazakhstan.
%% E-mail: berik_tuleuov@yahoo.com
%% This program can be used, distributed, and modified under the terms
%% of the LaTeX Project Public License.
%% Last Modified 17.02.2003

%% These somewhat tricky macros allows you to combine the power of 
%% graphical front-end of Scientific Word/Scientific WorkPlace (SW/SWP) 
%% with your favourite TeX compiler (for example, MiKTeX). SW/SWP creates 
%% TeX source files with commands \Unicode{character code} (versions 3.0) or 
%% \U{character code} (versions 3.5 and up) instead of usual characters, and 
%% we have to redefine these commands, with no change of source file. 
%% This idea is generic, i.e. it can also be applied to other european 
%% languages. You may or may not use `babel' multilanguage support package;
%% that's why I decided not to use \def\mxl{\CYRA} instead of \def\mxl{À}
%% and so on.
%% Here given implementation for russian language.

\def\mxl{À}                                  % À   €
\def\mxli{Á}                                 % Á   �
\def\mxlii{Â}                                % Â   ‚
\def\mxliii{Ã}                               % Ã   ƒ
\def\mxliv{Ä}                                % Ä   „
\def\mxlv{Å}                                 % Å   …
\def\mxlvi{Æ}                                % Æ   †
\def\mxlvii{Ç}                               % Ç   ‡
\def\mxlviii{È}                              % È   ˆ
\def\mxlix{É}                                % É   ‰
\def\lxva{Ê}           \def\ml{Ê}            % Ê   Š
\def\lxvb{Ë}           \def\mli{Ë}           % Ë   ‹
\def\lxvc{Ì}           \def\mlii{Ì}          % Ì   Œ
\def\lxvd{Í}           \def\mliii{Í}         % Í   �
\def\lxve{Î}           \def\mliv{Î}          % Î   Ž
\def\lxvf{Ï}           \def\mlv{Ï}           % Ï   �
\def\mlvi{Ð}                                 % Ð   �
\def\mlvii{Ñ}                                % Ñ   ‘
\def\mlviii{Ò}                               % Ò   ’
\def\mlix{Ó}                                 % Ó   “
\def\mlx{Ô}                                  % Ô   ”
\def\mlxi{Õ}                                 % Õ   •
\def\mlxii{Ö}                                % Ö   –
\def\mlxiii{×}                               % ×   —
\def\mlxiv{Ø}                                % Ø   ˜
\def\mlxv{Ù}                                 % Ù   ™
\def\lxvia{Ú}          \def\mlxvi{Ú}         % Ú   š
\def\lxvib{Û}          \def\mlxvii{Û}        % Û   ›
\def\lxvic{Ü}          \def\mlxviii{Ü}       % Ü   œ
\def\lxvid{Ý}          \def\mlxix{Ý}         % Ý   �
\def\lxvie{Þ}          \def\mlxx{Þ}          % Þ   ž
\def\lxvif{ß}          \def\mlxxi{ß}         % ß   Ÿ
\def\mlxxii{à}                               % à    
\def\mlxxiii{á}                              % á   ¡
\def\mlxxiv{â}                               % â   ¢
\def\mlxxv{ã}                                % ã   £
\def\mlxxvi{ä}                               % ä   ¤
\def\mlxxvii{å}                              % å   ¥
\def\mlxxviii{æ}                             % æ   ¦
\def\mlxxix{ç}                               % ç   §
\def\mlxxx{è}                                % è   ¨
\def\mlxxxi{é}                               % é   ©
\def\lxviia{ê}         \def\mlxxxii{ê}       % ê   ª
\def\lxviib{ë}         \def\mlxxxiii{ë}      % ë   «
\def\lxviic{ì}         \def\mlxxxiv{ì}       % ì   ¬
\def\lxviid{í}         \def\mlxxxv{í}        % í   ­
\def\lxviie{î}         \def\mlxxxvi{î}       % î   ®
\def\lxviif{ï}         \def\mlxxxvii{ï}      % ï   ¯
\def\mlxxxviii{ð}                            % ð   à
\def\mlxxxix{ñ}                              % ñ   á
\def\mxc{ò}                                  % ò   â
\def\mxci{ó}                                 % ó   ã
\def\mxcii{ô}                                % ô   ä
\def\mxciii{õ}                               % õ   å
\def\mxciv{ö}                                % ö   æ
\def\mxcv{÷}                                 % ÷   ç
\def\mxcvi{ø}                                % ø   è
\def\mxcvii{ù}                               % ù   é
\def\lxviiia{ú}        \def\mxcviii{ú}       % ú   ê
\def\lxviiib{û}        \def\mxcix{û}         % û   ë
\def\lxviiic{ü}        \def\mc{ü}            % ü   ì
\def\lxviiid{ý}        \def\mci{ý}           % ý   í
\def\lxviiie{þ}        \def\mcii{þ}          % þ   î
\def\lxviiif{ÿ}        \def\mciii{ÿ}         % ÿ   ï

\def\UNICODE#1{\csname\romannumeral"\@gobbletwo#1\endcsname}% for versions 3.0
\def\U#1{\csname\romannumeral"#1\endcsname}% for versions 3.5 and up
