<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% CYRILLIC IN NON-CYRILLIC DOCUMENTS (pdflatex only)
%
% refs: https://tex.stackexchange.com/q/460271/
\ProvidesPackage{sphinxpackagecyrillic}%
  [2018/11/21 v2.0 support for Cyrillic in non-Cyrillic documents]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{prefix=spx@cyropt@} % use \spx@cyropt@ prefix
\DeclareBoolOption[false]{Xtwo}
\DeclareBoolOption[false]{TtwoA}
\DeclareDefaultOption{\@unknownoptionerror}
\ProcessLocalKeyvalOptions* % ignore class options

\ifspx@cyropt@Xtwo
% original code by tex.sx user egreg (updated 2019/10/28):
%   https://tex.stackexchange.com/a/460325/
% 159 Cyrillic glyphs as available in X2 TeX 8bit font encoding
% This assumes inputenc loaded with utf8 option, or LaTeX release
% as recent as 2018/04/01 which does it automatically.
  \@tfor\next:=%
    {Ð}{Ð‚}{Ð„}{Ð…}{Ð†}{Ðˆ}{Ð‰}{ÐŠ}{Ð‹}{ÐŽ}{Ð}{Ð}{Ð‘}{Ð’}{Ð“}{Ð”}{Ð•}{Ð–}{Ð—}{Ð˜}{Ð™}%
    {Ðš}{Ð›}{Ðœ}{Ð}{Ðž}{ÐŸ}{Ð&nbsp;}{Ð¡}{Ð¢}{Ð£}{Ð¤}{Ð¥}{Ð¦}{Ð§}{Ð¨}{Ð©}{Ðª}{Ð«}{Ð¬}{Ð­}{Ð®}%
    {Ð¯}{Ð°}{Ð±}{Ð²}{Ð³}{Ð´}{Ðµ}{Ð¶}{Ð·}{Ð¸}{Ð¹}{Ðº}{Ð»}{Ð¼}{Ð½}{Ð¾}{Ð¿}{Ñ€}{Ñ}{Ñ‚}{Ñƒ}%
    {Ñ„}{Ñ…}{Ñ†}{Ñ‡}{Ñˆ}{Ñ‰}{ÑŠ}{Ñ‹}{ÑŒ}{Ñ}{ÑŽ}{Ñ}{Ñ‘}{Ñ’}{Ñ”}{Ñ•}{Ñ–}{Ñ˜}{Ñ™}{Ñš}{Ñ›}%
    {Ñž}{ÑŸ}{Ñ¢}{Ñ£}{Ñª}{Ñ«}{Ñ´}{Ñµ}{Ò}{Ò‘}{Ò’}{Ò“}{Ò”}{Ò•}{Ò–}{Ò—}{Ò˜}{Ò™}{Òš}{Ò›}{Òœ}{Ò}%
    {Òž}{ÒŸ}{Ò&nbsp;}{Ò¡}{Ò¢}{Ò£}{Ò¤}{Ò¥}{Ò¦}{Ò§}{Ò¨}{Ò©}{Òª}{Ò«}{Ò¬}{Ò­}{Ò®}{Ò¯}{Ò°}{Ò±}{Ò²}{Ò³}%
    {Ò´}{Òµ}{Ò¶}{Ò·}{Ò¸}{Ò¹}{Òº}{Ò»}{Ò¼}{Ò½}{Ò¾}{Ò¿}{Ó€}{Óƒ}{Ó„}{Ó…}{Ó†}{Ó‡}{Óˆ}{Ó‹}{ÓŒ}%
    {Ó}{ÓŽ}{Ó”}{Ó•}{Ó˜}{Ó™}{Ó&nbsp;}{Ó¡}{Ó¨}{Ó©}\do
  {%
    \begingroup\def\IeC{\protect\DeclareTextSymbolDefault}%
    \protected@edef\@temp{\endgroup
    \@ifl@t@r{\fmtversion}{2019/10/01}{\csname u8:\next\endcsname}{\next}}%
    \@temp{X2}%
  }%
\else
\ifspx@cyropt@TtwoA
% original code by tex.sx user jfbu:
%   https://tex.stackexchange.com/a/460305/
% 63*2+1=127 Cyrillic glyphs as found in T2A 8bit TeX font-encoding
  \@tfor\@tempa:=%
    {ae}{a}{b}{chrdsc}{chvcrs}{ch}{c}{dje}{dze}{dzhe}{d}{erev}{ery}{e}%
    {f}{ghcrs}{gup}{g}{hdsc}{hrdsn}{h}{ie}{ii}{ishrt}{i}{je}%
    {kbeak}{kdsc}{kvcrs}{k}{lje}{l}{m}{ndsc}{ng}{nje}{n}{otld}{o}{p}{r}%
    {schwa}{sdsc}{sftsn}{shch}{shha}{sh}{s}{tshe}{t}{ushrt}{u}{v}%
    {ya}{yhcrs}{yi}{yo}{yu}{y}{zdsc}{zhdsc}{zh}{z}\do
  {%
    \expandafter\DeclareTextSymbolDefault\expandafter
               {\csname cyr\@tempa\endcsname}{T2A}%
    \expandafter\uppercase\expandafter{\expandafter
                 \def\expandafter\@tempa\expandafter{\@tempa}}%
    \expandafter\DeclareTextSymbolDefault\expandafter
      {\csname CYR\@tempa\endcsname}{T2A}%
  }%
  \DeclareTextSymbolDefault{\CYRpalochka}{T2A}%
\fi\fi
\endinput
</pre></body></html>