texlive[42751] Master/texmf-dist: churchslavonic (19dec16)
commits+karl at tug.org
commits+karl at tug.org
Mon Dec 19 23:12:41 CET 2016
Revision: 42751
http://tug.org/svn/texlive?view=revision&revision=42751
Author: karl
Date: 2016-12-19 23:12:41 +0100 (Mon, 19 Dec 2016)
Log Message:
-----------
churchslavonic (19dec16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/churchslavonic/README
trunk/Master/texmf-dist/doc/latex/churchslavonic/churchslavonic-en.pdf
trunk/Master/texmf-dist/doc/latex/churchslavonic/churchslavonic-ru.pdf
Added Paths:
-----------
trunk/Master/texmf-dist/tex/latex/churchslavonic/gloss-churchslavonic.ldf
Modified: trunk/Master/texmf-dist/doc/latex/churchslavonic/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/churchslavonic/README 2016-12-19 22:12:23 UTC (rev 42750)
+++ trunk/Master/texmf-dist/doc/latex/churchslavonic/README 2016-12-19 22:12:41 UTC (rev 42751)
@@ -8,6 +8,13 @@
Only Unicode input encoding is supported. This package requires use of a modern TeX engine that supports
Unicode, such as XeTeX or LuaTeX.
+Changelog
+---------
+
+v0.2.1 2016.12.18 - gloss file included in CTAN package
+v0.2 2016.10.23 - new macrocommands and docs
+v0.1 2016.05.10 - first draft release
+
Installation
------------
Modified: trunk/Master/texmf-dist/doc/latex/churchslavonic/churchslavonic-en.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/churchslavonic/churchslavonic-ru.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/tex/latex/churchslavonic/gloss-churchslavonic.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/churchslavonic/gloss-churchslavonic.ldf (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/churchslavonic/gloss-churchslavonic.ldf 2016-12-19 22:12:41 UTC (rev 42751)
@@ -0,0 +1,245 @@
+\ProvidesFile{gloss-churchslavonic.ldf}[polyglossia: module for Church Slavonic]
+\PolyglossiaSetup{churchslavonic}{
+ script=Cyrillic,
+ scripttag=cyrl,
+ langtag=CHU,
+ hyphennames={churchslavonic},
+ hyphenmins={1,2},
+ frenchspacing=true,
+ fontsetup=true
+}
+
+% if spelling is set to modern, Russian date and caption
+% as well as ASCII digits are used.
+\define at key{churchslavonic}{spelling}[modern]{%
+ \ifstrequal{#1}{traditional}%
+ {\def\captionschurchslavonic{\captionschurchslavonic at traditional}%
+ \def\datechurchslavonic{\datechurchslavonic at traditional}}%
+ {\def\captionschurchslavonic{\captionschurchslavonic at modern}%
+ \def\datechurchslavonic{\datechurchslavonic at modern}}%
+}
+
+\newif\ifcyrillic at numerals
+\define at key{churchslavonic}{numerals}[latin]{%
+ \ifstrequal{#1}{cyrillic}%
+ {\cyrillic at numeralstrue}
+ {\cyrillic at numeralsfalse}%
+}
+
+\define at boolkey{churchslavonic}[churchslavonic@]{babelshorthands}[false]{}
+
+\setkeys{churchslavonic}{spelling,numerals}
+
+\ifsystem at babelshorthands
+ \setkeys{churchslavonic}{babelshorthands=true}
+\else
+ \setkeys{churchslavonic}{babelshorthands=false}
+\fi
+
+\ifcsundef{initiate at active@char}{%
+ \input{babelsh.def}%
+ \initiate at active@char{"}%
+}{}
+
+\def\churchslavonic at shorthands{%
+ \bbl at activate{"}%
+ \def\language at group{churchslavonic}%
+% \declare at shorthand{russian}{"`}{„}%
+% \declare at shorthand{russian}{"'}{“}%
+% \declare at shorthand{russian}{"<}{«}%
+% \declare at shorthand{russian}{">}{»}%
+ \declare at shorthand{churchslavonic}{""}{\hskip\z at skip}%
+ \declare at shorthand{churchslavonic}{"~}{\textormath{\leavevmode\hbox{-}}{-}}%
+ \declare at shorthand{churchslavonic}{"=}{\nobreak-\hskip\z at skip}%
+ \declare at shorthand{churchslavonic}{"|}{\textormath{\nobreak\discretionary{-}{}{\kern.03em}\allowhyphens}{}}%
+ \declare at shorthand{churchslavonic}{"-}{%
+ \def\churchslavonic at sh@tmp{%
+ \if\churchslavonic at sh@next-\expandafter\churchslavonic at sh@emdash
+ \else\expandafter\churchslavonic at sh@hyphen\fi
+ }%
+ \futurelet\churchslavonic at sh@next\churchslavonic at sh@tmp}%
+ \def\churchslavonic at sh@hyphen{%
+ \nobreak\-\bbl at allowhyphens}%
+ \def\churchslavonic at sh@emdash##1##2{\cdash-##1##2}%
+ \def\cdash##1##2##3{\def\tempx@{##3}%
+ \def\tempa@{-}\def\tempb@{~}\def\tempc@{*}%
+ \ifx\tempx@\tempa@\@Acdash\else
+ \ifx\tempx@\tempb@\@Bcdash\else
+ \ifx\tempx@\tempc@\@Ccdash\else
+ \errmessage{Wrong usage of cdash}\fi\fi\fi}%
+ \def\@Acdash{\ifdim\lastskip>\z@\unskip\nobreak\hskip.2em\fi
+ \cyrdash\hskip.2em\ignorespaces}%
+ \def\@Bcdash{\leavevmode\ifdim\lastskip>\z@\unskip\fi
+ \nobreak\cyrdash\penalty\exhyphenpenalty\hskip\z at skip\ignorespaces}%
+ \def\@Ccdash{\leavevmode
+ \nobreak\cyrdash\nobreak\hskip.35em\ignorespaces}%
+ \ifx\cyrdash\undefined
+ \def\cyrdash{\hbox to.8em{--\hss--}}
+ \fi
+ \declare at shorthand{churchslavonic}{",}{\nobreak\hskip.2em\ignorespaces}%
+}
+
+\def\nochurchslavonic at shorthands{%
+ \@ifundefined{initiate at active@char}{}{\bbl at deactivate{"}}%
+}
+
+
+\def\captionschurchslavonic at modern{%
+ \def\prefacename{Предисловие}%
+ \def\refname{Список литературы}%
+ \def\abstractname{Аннотация}%
+ \def\bibname{Литература}%
+\def\chaptername{Глава}%
+ \def\appendixname{Приложение}%
+ \ifcsundef{thechapter}%
+ {\def\contentsname{Содержание}}%
+ {\def\contentsname{Оглавление}}%
+ \def\listfigurename{Список иллюстраций}%
+ \def\listtablename{Список таблиц}%
+ \def\indexname{Предметный указатель}%
+ \def\authorname{Именной указатель}%
+ \def\figurename{Рис.}%
+ \def\tablename{Таблица}%
+ \def\partname{Часть}%
+ \def\enclname{вкл.}%
+ \def\ccname{исх.}%
+ \def\headtoname{вх.}%
+ \def\pagename{с.}%
+ \def\seename{см.}%
+ \def\alsoname{см.~также}%
+ \def\proofname{Доказательство}%
+}
+\def\datechurchslavonic at modern{%
+ \def\today{\number\day%
+ \space\ifcase\month\or%
+ января\or
+ февраля\or
+ марта\or
+ апреля\or
+ мая\or
+ июня\or
+ июля\or
+ августа\or
+ сентября\or
+ октября\or
+ ноября\or
+ декабря\fi%
+ \space \number\year\space г.}}
+
+\def\captionschurchslavonic at traditional{%
+ \def\prefacename{Предисло́вїе}%
+ \def\refname{Примѣча̑нїѧ}%
+ \def\abstractname{А҆ннота́цїѧ}%
+ \def\bibname{Вивлїогра́фїѧ}%
+ \def\chaptername{Глава̀}%
+ \def\appendixname{Приложе́нїе}%
+ \ifcsundef{thechapter}%
+ {\def\contentsname{Содержа́нїе}}%
+ {\def\contentsname{Ѡ҆главле́нїе}}%
+ \def\listfigurename{Надписа́нїе и҆з̾ѡбраже́нїй}%
+ \def\listtablename{Надписа́нїе табли́цъ}%
+ \def\indexname{Предмѣ́тный ᲂу҆каза́тель}%
+ \def\authorname{И҆менно́й ᲂу҆каза́тель}%
+ \def\figurename{И҆з̾ѡбраже́нїе}%
+ \def\tablename{Табли́ца}%
+ \def\partname{Ча́сть}%
+ \def\enclname{вкл.}%
+ \def\ccname{исх.}%
+ \def\headtoname{вх.}%
+ \def\pagename{с.}%
+ \def\seename{зрѝ}%
+ \def\alsoname{зрѝ~та́кожде}%
+ \def\proofname{Доказа́тельство}%
+}
+\def\datechurchslavonic at traditional{%
+ \def\today{\number\day%
+ \space\ifcase\month\or%
+ і҆аннꙋа́рїа\or
+ феврꙋа́рїа\or
+ ма́рта\or
+ а҆прі́ллїа\or
+ ма́їа\or
+ і҆ꙋ́нїа\or
+ і҆ꙋ́лїа\or
+ а҆́ѵгꙋста\or
+ септе́мврїа\or
+ ѻ҆ктѡ́врїа\or
+ ное́мврїа\or
+ деке́мврїа\fi%
+ \space л.\space\number\year\space}}
+
+% The following is based on some ideas from ruscor.sty
+\def\churchslavonic at capsformat{%
+ \def\@seccntformat##1{\csname pre##1\endcsname%
+ \csname the##1\endcsname%
+ \csname post##1\endcsname}%
+ \def\@aftersepkern{\hspace{0.5em}}%
+ \def\postchapter{.\@aftersepkern}%
+ \def\postsection{.\@aftersepkern}%
+ \def\postsubsection{.\@aftersepkern}%
+ \def\postsubsubsection{.\@aftersepkern}%
+ \def\postparagraph{.\@aftersepkern}%
+ \def\postsubparagraph{.\@aftersepkern}%
+ \def\prechapter{}%
+ \def\presection{}%
+ \def\presubsection{}%
+ \def\presubsubsection{}%
+ \def\preparagraph{}%
+ \def\presubparagraph{}}
+
+\def\Azbuk#1{\expandafter\churchslavonic at Alph\csname c@#1\endcsname}
+\def\churchslavonic at Alph#1{\ifcase#1\or
+ А\or Б\or В\or Г\or Д\or Є\or Ж\or Ѕ\or
+ З\or И\or І\or К\or Л\or М\or Н\or О\or
+ П\or Р\or С\or Т\or Ꙋ\or Ф\or Х\or Ѿ\or
+ Ц\or Ч\or Ш\or Щ\or Ъ\or Ы\or Ь\or Ѣ\or
+ Ю\or Ѫ\or Ѧ\or Ѯ\or Ѱ\or Ѳ\or Ѵ\else\xpg at ill@value{#1}{churchslavonic at Alph}\fi}
+
+\def\azbuk#1{\expandafter\churchslavonic at alph\csname c@#1\endcsname}
+\def\churchslavonic at alph#1{\ifcase#1\or
+ а\or б\or в\or г\or д\or е\or ж\or ѕ\or
+ з\or и\or ї\or к\or л\or м\or н\or о\or
+ п\or р\or с\or т\or ꙋ\or ф\or х\or ѿ\or
+ ц\or ч\or ш\or щ\or ъ\or ы\or ь\or ѣ\or
+ ю\or ѫ\or ѧ\or ѯ\or ѱ\or ѳ\or ѵ\else\xpg at ill@value{#1}{churchslavonic at alph}\fi}
+
+%% Deleting stuff for Cyrillic numerals
+%% TODO: link with cu-num package
+\def\noextras at churchslavonic{%
+ \def\@seccntformat##1{\csname the##1\endcsname\quad}% = LaTeX kernel
+ \ifcyrillic at numerals\nochurchslavonic at numbers\fi
+ \nochurchslavonic at shorthands%
+}
+
+\def\blockextras at churchslavonic{%
+ \churchslavonic at capsformat%
+ \ifcyrillic at numerals\churchslavonic at numbers\fi
+ \ifchurchslavonic at babelshorthands\churchslavonic at shorthands\fi
+}
+
+\def\inlineextras at churchslavonic{%
+ \ifchurchslavonic at babelshorthands\churchslavonic at shorthands\fi%
+}
+
+%%% These lines taken from russianb.ldf, part of babel package.
+% make it optional?
+\def\sh {\mathop{\operator at font sh}\nolimits}
+\def\ch {\mathop{\operator at font ch}\nolimits}
+\def\tg {\mathop{\operator at font tg}\nolimits}
+\def\arctg {\mathop{\operator at font arctg}\nolimits}
+\def\arcctg{\mathop{\operator at font arcctg}\nolimits}
+\def\th {\mathop{\operator at font th}\nolimits}
+\def\ctg {\mathop{\operator at font ctg}\nolimits}
+\def\cth {\mathop{\operator at font cth}\nolimits}
+\def\cosec {\mathop{\operator at font cosec}\nolimits}
+\def\Prob {\mathop{\kern\z@\mathsf{P}}\nolimits}
+\def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits}
+\def\nod {\mathop{\mathrm{н.о.д.}}\nolimits}
+\def\nok {\mathop{\mathrm{н.о.к.}}\nolimits}
+\def\NOD {\mathop{\mathrm{НОД}}\nolimits}
+\def\NOK {\mathop{\mathrm{НОК}}\nolimits}
+\def\Proj {\mathop{\mathrm{Пр}}\nolimits}
+%\DeclareRobustCommand{\No}{№}
+
+\endinput
+
More information about the tex-live-commits
mailing list