summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf27
1 files changed, 23 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf
index aae310ca027..54074f0b14f 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf
@@ -22,8 +22,11 @@
\define@boolkey{croatian}[croatian@]{splithyphens}[true]{}
+\define@boolkey{croatian}[croatian@]{localalph}[true]{}
+
% Register default options
-\xpg@initialize@gloss@options{croatian}{babelshorthands=false,disableligatures=false,splithyphens=true}
+\xpg@initialize@gloss@options{croatian}{babelshorthands=false,disableligatures=false,
+ splithyphens=true,localalph=true}
\ifsystem@babelshorthands
\setkeys{croatian}{babelshorthands=true}
@@ -202,24 +205,40 @@
\def\datecroatian{%
\def\today{\number\day.~\ifcase\month\or
- siječnja\or veljače\or ožujka\or travnja\or svibnja\or
- lipnja\or srpnja\or kolovoza\or rujna\or listopada\or studenoga\or
- prosinca\fi \space \number\year.}%
+ siječ\hr@charifavailable{01CC}{nj}a\or ve\hr@charifavailable{01C9}{lj}ače\or
+ ožujka\or trav\hr@charifavailable{01CC}{nj}a\or svib\hr@charifavailable{01CC}{nj}a\or
+ lip\hr@charifavailable{01CC}{nj}a\or srp\hr@charifavailable{01CC}{nj}a\or
+ kolovoza\or rujna\or listopada\or studenoga\or prosinca\fi \space \number\year.}%
+}
+
+\def\croatian@@alph#1{%
+ \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or k\or l\or
+ m\or n\or o\or p\or r\or s\or t\or u\or v\or z\else#1\fi
}
+\def\croatian@@Alph#1{%
+ \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or K\or L\or
+ M\or N\or O\or P\or R\or S\or T\or U\or V\or Z\else#1\fi
+}
+
+\def\croatian@alph#1{\expandafter\croatian@@alph\csname c@#1\endcsname}
+\def\croatian@Alph#1{\expandafter\croatian@@Alph\csname c@#1\endcsname}
\def\noextras@croatian{%
\ifcroatian@babelshorthands\nocroatian@shorthands\fi%
\nocroatian@hyphens%
+ \let\alph\latinalph\let\Alph\latinAlph%
}
\def\blockextras@croatian{%
\ifcroatian@babelshorthands\croatian@shorthands\fi%
\ifcroatian@splithyphens\croatian@hyphens\else\nocroatian@hyphens\fi%
+ \ifcroatian@localalph\let\alph\croatian@alph\let\Alph\croatian@Alph\fi%
}
\def\inlineextras@croatian{%
\ifcroatian@babelshorthands\croatian@shorthands\fi%
\ifcroatian@splithyphens\croatian@hyphens\else\nocroatian@hyphens\fi%
+ \ifcroatian@localalph\let\alph\croatian@alph\let\Alph\croatian@Alph\fi%
}
\endinput