summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx')
-rw-r--r--macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx39
1 files changed, 20 insertions, 19 deletions
diff --git a/macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx b/macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx
index 22f69bf0f8..2a33327ee9 100644
--- a/macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx
+++ b/macros/latex/contrib/babel-contrib/serbianc/serbianc.dtx
@@ -32,7 +32,7 @@
%<code>\ProvidesLanguage{serbianc}
%\fi
%\ProvidesFile{serbianc.dtx}
- [2019/01/12 3.0 Serbian Cyrillic support for the Babel system]
+ [2019/12/15 3.0a Serbian Cyrillic support for the Babel system]
%\iffalse
%% File `serbianc.dtx'
%
@@ -42,6 +42,7 @@
\documentclass{ltxdoc}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
+\usepackage[a4paper,top=2.0cm,left=3cm,right=2.5cm,bottom=2cm,includefoot,includehead]{geometry}
\title{The Serbian Cyrillic Language in the \babel\ system}
\author{Uroš Stefanović\footnote{\texttt{urostajms@gmail.com}}}
\newcommand*\babel{\textsf{babel}}
@@ -382,7 +383,7 @@
\def\glossaryname{Речник}%
}%
\let\captionsserbianc@ijekav=\captionsserbianc
- \addto\captionsserbianc@ijekav{
+ \addto\captionsserbianc@ijekav{%
\def\partname{Дио}%
\def\glossaryname{Рjечник}%
}
@@ -411,7 +412,7 @@
\def\glossaryname{{\cyr\CYRR\cyre\cyrch\cyrn\cyri\cyrk}}%
}%
\let\captionsserbianc@ijekav=\captionsserbianc
- \addto\captionsserbianc@ijekav{
+ \addto\captionsserbianc@ijekav{%
\def\partname{{\cyr\CYRD\cyri\cyro}}%
\def\glossaryname{{\cyr\CYRR\cyrje\cyre\cyrch\cyrn\cyri\cyrk}}%
}
@@ -435,13 +436,13 @@
септембар\or
октобар\or
новембар\or
- децембар\fi}
- \def\today{\number\day.~\month@serbianc\ \number\year\@ifstar{}{.}}
+ децембар\fi}%
+ \def\today{\number\day.~\month@serbianc\ \number\year\@ifstar{}{.}}%
\def\todayRoman{\number\day.~\@Roman\month~\number\year\@ifstar{}{.}}}
\let\dateserbianc@datei=\dateserbianc
- \addto\dateserbianc@datei{
+ \addto\dateserbianc@datei{%
\def\month@serbianc@datei{\ifnum\month=6 јуни%
- \else\ifnum\month=7 јули\else\month@serbianc\fi\fi}
+ \else\ifnum\month=7 јули\else\month@serbianc\fi\fi}%
\def\today{\number\day.~\month@serbianc@datei\ \number\year\@ifstar{}{.}}}
\else
\def\dateserbianc{%
@@ -457,21 +458,21 @@
\cyrs\cyre\cyrp\cyrt\cyre\cyrm\cyrb\cyra\cyrr\or
\cyro\cyrk\cyrt\cyro\cyrb\cyra\cyrr\or
\cyrn\cyro\cyrv\cyre\cyrm\cyrb\cyra\cyrr\or
- \cyrd\cyre\cyrc\cyre\cyrm\cyrb\cyra\cyrr\fi}
- \def\today{\number\day.~\month@serbianc\ \number\year\@ifstar{}{.}}
+ \cyrd\cyre\cyrc\cyre\cyrm\cyrb\cyra\cyrr\fi}%
+ \def\today{\number\day.~\month@serbianc\ \number\year\@ifstar{}{.}}%
\def\todayRoman{\number\day.~\@Roman\month~\number\year\@ifstar{}{.}}}
\let\dateserbianc@datei=\dateserbianc
- \addto\dateserbianc@datei{
+ \addto\dateserbianc@datei{%
\def\month@serbianc@datei{\ifnum\month=6\cyrje\cyru\cyrn\cyri%
- \else\ifnum\month=7\cyrje\cyru\cyrl\cyri\else\month@serbianc\fi\fi}
+ \else\ifnum\month=7\cyrje\cyru\cyrl\cyri\else\month@serbianc\fi\fi}%
\def\today{\number\day.~\month@serbianc@datei\ \number\year\@ifstar{}{.}}
}
\fi
% \end{macrocode}
%
% The Serbian hyphenation patterns can be used with |\lefthyphenmin| and
-% |\righthyphenmin| set to 2. (Actually, the “official” definition even allows one character for |lefthyphen|, but in that case,
-% the \LaTeX{} hyphenation patterns will give the wrong results.)
+% |\righthyphenmin| set to 2. (Actually, the “official” definition allows even one character for |lefthyphen|,
+% but it is recommended to use value two for better results.)
%
% \begin{macrocode}
\providehyphenmins{\CurrentOption}{\tw@\tw@}
@@ -516,20 +517,20 @@
% ones when Serbian is switched on.
%
% \begin{macrocode}
-\addto\extrasserbianc{
+\addto\extrasserbianc{%
\babel@save\@Alph
\if@srbc@uni@ode
\def\@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 Ш\else\@ctrerr\fi}
+ Ч\or Џ\or Ш\else\@ctrerr\fi}%
\else
\def\@Alph#1{\ifcase#1\or
\CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRDJE\or\CYRE\or\CYRZH\or\CYRZ\or
\CYRI\or\CYRJE\or\CYRK\or\CYRL\or\CYRLJE\or\CYRM\or\CYRN\or\CYRNJE\or\CYRO\or
\CYRP\or\CYRR\or\CYRS\or\CYRT\or\CYRTSHE\or\CYRU\or\CYRF\or\CYRH\or\CYRC\or
- \CYRCH\or\CYRDZHE\or\CYRSH\else\@ctrerr\fi}
+ \CYRCH\or\CYRDZHE\or\CYRSH\else\@ctrerr\fi}%
\fi
}
% \end{macrocode}
@@ -537,20 +538,20 @@
% The macro |\alph| produces lowercase Cyrillic letters.
%
% \begin{macrocode}
-\addto\extrasserbianc{
+\addto\extrasserbianc{%
\babel@save\@alph
\if@srbc@uni@ode
\def\@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 ш\else\@ctrerr\fi}
+ ч\or џ\or ш\else\@ctrerr\fi}%
\else
\def\@alph#1{\ifcase#1\or
\cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyrdje\or\cyre\or\cyrzh\or\cyrz\or
\cyri\or\cyrje\or\cyrk\or\cyrl\or\cyrlje\or\cyrm\or\cyrn\or\cyrnje\or\cyro\or
\cyrp\or\cyrr\or\cyrs\or\cyrt\or\cyrtshe\or\cyru\or\cyrf\or\cyrh\or\cyrc\or
- \cyrch\or\cyrdzhe\or\cyrsh\else\@ctrerr\fi}
+ \cyrch\or\cyrdzhe\or\cyrsh\else\@ctrerr\fi}%
\fi
}
% \end{macrocode}