summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-07-16 21:13:37 +0000
committerKarl Berry <karl@freefriends.org>2019-07-16 21:13:37 +0000
commit444bab00733dfef06cba9e2ba93c8f63fb00a014 (patch)
treed8f3d2b7f09bc7d29926421d2d06d76d9aaff24c /Master/texmf-dist/tex
parent40ab1ab06c07f247ef9448fab8e9c961a22497b3 (diff)
babel-serbian (16jul19)
git-svn-id: svn://tug.org/texlive/trunk@51651 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/generic/babel-serbian/serbian.ldf206
1 files changed, 136 insertions, 70 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-serbian/serbian.ldf b/Master/texmf-dist/tex/generic/babel-serbian/serbian.ldf
index cde349e6805..2a03053afec 100644
--- a/Master/texmf-dist/tex/generic/babel-serbian/serbian.ldf
+++ b/Master/texmf-dist/tex/generic/babel-serbian/serbian.ldf
@@ -7,11 +7,11 @@
%% serbian.dtx (with options: `code')
%% This is a generated file.
%%
-%% Copyright 1989-2005 Johannes L. Braams and any individual authors
+%% Copyright 2019 Uroš Stefanović and any individual authors
%% listed elsewhere in this file. All rights reserved.
%%
-%% This file was generated from file(s) of the Babel system.
-%% ---------------------------------------------------------
+%% This file is intended to be used with the Babel system.
+%% ------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -23,35 +23,59 @@
%%
%% This work has the LPPL maintenance status "maintained".
%%
-%% The Current Maintainer of this work is Johannes Braams.
-%%
-%% This file may only be distributed together with a copy of the Babel
-%% system. You may however distribute the Babel system without
-%% such generated files.
-%%
-%% The list of all files belonging to the Babel distribution is
-%% given in the file `manifest.bbl'. See also `legal.bbl for additional
-%% information.
+%% The Current Maintainer of this work is Uroš Stefanović.
%%
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
\ProvidesLanguage{serbian}
- [2005/03/31 v1.0d Serbocroatian support from the babel system]
-\LdfInit{serbian}\captionsserbian
+ [2019/07/16 2.0 Serbian Latin support for the Babel system]
+%% File `serbian.dtx'
+\LdfInit{serbian}{captionsserbian}
+\ifdefined\if@srb@uni@ode
+ \PackageError{babel}{if@srb@uni@ode already defined.}
+ \relax
+\fi
+\newif\if@srb@uni@ode
+\ifdefined\luatexversion \@srb@uni@odetrue \else
+\ifdefined\XeTeXrevision \@srb@uni@odetrue \fi\fi
\ifx\l@serbian\@undefined
- \@nopatterns{Serbian}
- \adddialect\l@serbian0\fi
+ \@nopatterns{Serbian}
+ \adddialect\l@serbian0
+\fi
+\initiate@active@char{"}
+\begingroup \catcode`\"12
+\def\reserved@a{\endgroup
+ \def\@SS{\mathchar"7019 }
+ \def\dq{"}}
+\reserved@a
+\declare@shorthand{serbian}{"c}{\textormath{\v c}{\check c}}
+\declare@shorthand{serbian}{"d}{\textormath{\dj}{\textnormal{\dj}}}
+\declare@shorthand{serbian}{"s}{\textormath{\v s}{\check s}}
+\declare@shorthand{serbian}{"z}{\textormath{\v z}{\check z}}
+\declare@shorthand{serbian}{"C}{\textormath{\v C}{\check C}}
+\declare@shorthand{serbian}{"D}{\textormath{\DJ}{\textnormal{\DJ}}}
+\declare@shorthand{serbian}{"S}{\textormath{\v S}{\check S}}
+\declare@shorthand{serbian}{"Z}{\textormath{\v Z}{\check Z}}
+\declare@shorthand{serbian}{"`}{\quotedblbase}
+\declare@shorthand{serbian}{"'}{\textquotedblleft}
+\declare@shorthand{serbian}{"<}{\guillemotleft}
+\declare@shorthand{serbian}{">}{\guillemotright}
+\declare@shorthand{serbian}{""}{\hskip\z@skip}
+\declare@shorthand{serbian}{"~}{\textormath{\leavevmode\hbox{-}}{-}}
+\declare@shorthand{serbian}{"=}{\nobreak-\hskip\z@skip}
+\declare@shorthand{serbian}{"|}{\textormath{\nobreak\discretionary{-}{}{\kern.03em}\allowhyphens}{}}
+\declare@shorthand{serbian}{"-}{\nobreak\discretionary{-}{-}{-}\bbl@allowhyphens}
\addto\captionsserbian{%
\def\prefacename{Predgovor}%
\def\refname{Literatura}%
- \def\abstractname{Sa\v{z}etak}%
+ \def\abstractname{Sa\v zetak}%
\def\bibname{Bibliografija}%
\def\chaptername{Glava}%
\def\appendixname{Dodatak}%
- \def\contentsname{Sadr\v{z}aj}%
- \def\listfigurename{Slike}%
- \def\listtablename{Tabele}%
+ \def\contentsname{Sadr\v zaj}%
+ \def\listfigurename{Spisak slika}%
+ \def\listtablename{Spisak tabela}%
\def\indexname{Indeks}%
\def\figurename{Slika}%
\def\tablename{Tabela}%
@@ -59,66 +83,108 @@
\def\enclname{Prilozi}%
\def\ccname{Kopije}%
\def\headtoname{Prima}%
- \def\pagename{Strana}%
- \def\seename{Vidi}%
- \def\alsoname{Vidi tako\dj e}%
+ \def\pagename{strana}%
+ \def\seename{vidi}%
+ \def\alsoname{vidi tako\dj e}%
\def\proofname{Dokaz}%
- \def\glossaryname{Glossary}% <-- Needs translation
+ \def\glossaryname{Re\v cnik}%
+}%
+\if@srb@uni@ode
+ \addto\captionsserbian{%
+ \def\abstractname{Sažetak}%
+ \def\contentsname{Sadržaj}%
+ \def\alsoname{vidi takođe}%
+ \def\glossaryname{Rečnik}%
}%
-\def\dateserbian{%
- \def\today{\number\day .~\ifcase\month\or
- januar\or februar\or mart\or april\or maj\or
- juni\or juli\or avgust\or septembar\or oktobar\or novembar\or
- decembar\fi \space \number\year}}
-\initiate@active@char{"}
+\fi
+\let\captionsserbian@ijekav=\captionsserbian
+\addto\captionsserbian@ijekav{
+ \def\partname{Dio}%
+ \def\glossaryname{Rje\v cnik}%
+}
+\if@srb@uni@ode
+ \addto\captionsserbian@ijekav{
+ \def\glossaryname{Rječnik}%
+ }
+\fi
+ \def\dateserbian{%
+ \def\month@serbian{\ifcase\month\or
+ januar\or
+ februar\or
+ mart\or
+ april\or
+ maj\or
+ jun\or
+ jul\or
+ avgust\or
+ septembar\or
+ oktobar\or
+ novembar\or
+ decembar\fi}
+ \def\today{\number\day.~\month@serbian\ \number\year\@ifstar{}{.}}
+ \def\todayRoman{\number\day.~\@Roman\month~\number\year\@ifstar{}{.}}}
+ \let\dateserbian@datei=\dateserbian
+ \addto\dateserbian@datei{
+ \def\month@serbian@datei{\ifnum\month=6 juni%
+ \else\ifnum\month=7 juli\else\month@serbian\fi\fi}
+ \def\today{\number\day.~\month@serbian@datei\ \number\year\@ifstar{}{.}}
+}
+\providehyphenmins{\CurrentOption}{\tw@\tw@}
+\providehyphenmins{serbian}{\tw@\tw@}
\addto\extrasserbian{\languageshorthands{serbian}}
\addto\extrasserbian{\bbl@activate{"}}
\addto\noextrasserbian{\bbl@deactivate{"}}
-\declare@shorthand{serbian}{"c}{\textormath{\v c}{\check c}}
-\declare@shorthand{serbian}{"d}{\textormath{\dj}{\dj}}%%
-\declare@shorthand{serbian}{"s}{\textormath{\v s}{\check s}}
-\declare@shorthand{serbian}{"z}{\textormath{\v z}{\check z}}
-\declare@shorthand{serbian}{"C}{\textormath{\v C}{\check C}}
-\declare@shorthand{serbian}{"D}{\textormath{\DJ}{\DJ}}%%
-\declare@shorthand{serbian}{"S}{\textormath{\v S}{\check S}}
-\declare@shorthand{serbian}{"Z}{\textormath{\v Z}{\check Z}}
-\declare@shorthand{serbian}{"`}{%
- \textormath{\quotedblbase{}}{\mbox{\quotedblbase}}}
-\declare@shorthand{serbian}{"'}{%
- \textormath{\textquotedblleft{}}{\mbox{\textquotedblleft}}}
-\declare@shorthand{serbian}{"<}{%
- \textormath{\guillemotleft{}}{\mbox{\guillemotleft}}}
-\declare@shorthand{serbian}{">}{%
- \textormath{\guillemotright{}}{\mbox{\guillemotright}}}
-\declare@shorthand{serbian}{"-}{\nobreak-\bbl@allowhyphens}
-\declare@shorthand{serbian}{""}{\hskip\z@skip}
-\declare@shorthand{serbian}{"|}{%
- \textormath{\discretionary{-}{}{\kern.03em}}{}}
-\ifx\fmtname plain \else
- \let\@aifORI\@afterindentfalse
- \def\bbl@frenchindent{\let\@afterindentfalse\@afterindenttrue
- \@afterindenttrue}
- \def\bbl@nonfrenchindent{\let\@afterindentfalse\@aifORI
- \@afterindentfalse}
- \addto\extrasserbian{\bbl@frenchindent}
- \addto\noextrasserbian{\bbl@nonfrenchindent}
-\fi
-\def\sh{\mathop{\operator@font sh}\nolimits} % same as \sinh
-\def\ch{\mathop{\operator@font ch}\nolimits} % same as \cosh
-\def\th{\mathop{\operator@font th}\nolimits} % same as \tanh
-\def\cth{\mathop{\operator@font cth}\nolimits} % same as \coth
+\addto\extrasserbian{\bbl@frenchspacing}
+\addto\noextrasserbian{\bbl@nonfrenchspacing}
+\let\@aifORI\@afterindentfalse
+\def\bbl@serbianindent{\let\@afterindentfalse\@afterindenttrue\@afterindenttrue}
+\def\bbl@nonserbianindent{\let\@afterindentfalse\@aifORI\@afterindentfalse}
+\addto\extrasserbian{\bbl@serbianindent}
+\addto\noextrasserbian{\bbl@nonserbianindent}
+\bbl@declare@ttribute{serbian}{ijekav}{%
+ \PackageInfo{babel}{Serbian attribute set to ijekav}%
+ \let\captionsserbian=\captionsserbian@ijekav }
+\@onlypreamble\captionsserbian@ijekav
+\bbl@declare@ttribute{serbian}{quotes}{%
+ \PackageInfo{babel}{Serbian attribute set to quotes}%
+ \declare@shorthand{serbian}{"'}{\textquotedblright} }
+\bbl@declare@ttribute{serbian}{datei}{%
+ \PackageInfo{babel}{Serbian attribute set to datei}%
+ \let\dateserbian=\dateserbian@datei }
+\@onlypreamble\dateserbian@datei
+\def\sh{\mathop{\operator@font sh}\nolimits}
+\def\ch{\mathop{\operator@font ch}\nolimits}
+\def\tg{\mathop{\operator@font tg}\nolimits}
+\def\ctg{\mathop{\operator@font ctg}\nolimits}
+\def\arctg{\mathop{\operator@font arctg}\nolimits}
+\def\arcctg{\mathop{\operator@font arcctg}\nolimits}
+\addto\extrasserbian{%
+ \babel@save{\th}%
+ \let\ltx@th\th
+ \def\th{\textormath{\ltx@th}%
+ {\mathop{\operator@font th}\nolimits}}%
+ }
+\def\cth{\mathop{\operator@font cth}\nolimits}
\def\arsh{\mathop{\operator@font arsh}\nolimits}
\def\arch{\mathop{\operator@font arch}\nolimits}
\def\arth{\mathop{\operator@font arth}\nolimits}
\def\arcth{\mathop{\operator@font arcth}\nolimits}
-\def\tg{\mathop{\operator@font tg}\nolimits} % same as \tan
-\def\ctg{\mathop{\operator@font ctg}\nolimits} % same as \cot
-\def\arctg{\mathop{\operator@font arctg}\nolimits} % same as \arctan
-\def\arcctg{\mathop{\operator@font arcctg}\nolimits}
-\def\Prob{\mathop{\mathsf P\hskip0pt}\nolimits}
-\def\Expect{\mathop{\mathsf E\hskip0pt}\nolimits}
-\def\Variance{\mathop{\mathsf D\hskip0pt}\nolimits}
+\def\cosec{\mathop{\operator@font cosec}\nolimits}
+\def\arcsec{\mathop{\operator@font arcsec}\nolimits}
+\def\arccosec{\mathop{\operator@font arccosec}\nolimits}
+\def\sech{\mathop{\operator@font sech}\nolimits}
+\def\cosech{\mathop{\operator@font cosech}\nolimits}
+\def\arsech{\mathop{\operator@font arsech}\nolimits}
+\def\arcosech{\mathop{\operator@font arcosech}\nolimits}
+\def\Prob{\mathop{\kern\z@\mathsf{P}}\nolimits}
+\def\Expect{\mathop{\kern\z@\mathsf{E}}\nolimits}
+\def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits}
+\def\nzs{\mathop{\operator@font nzs}\nolimits}
+\def\nzd{\mathop{\operator@font nzd}\nolimits}
+\def\NZS{\mathop{\operator@font NZS}\nolimits}
+\def\NZD{\mathop{\operator@font NZD}\nolimits}
\ldf@finish{serbian}
+%%
%% \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