| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-icelandic.ldf}[polyglossia: module for Icelandic] |
| 4 |
\PolyglossiaSetup{icelandic}{ |
| 5 |
bcp47=is, |
| 6 |
bcp47-language=is, |
| 7 |
bcp47-script=Latn, |
| 8 |
hyphennames={icelandic}, |
| 9 |
hyphenmins={2,2}, |
| 10 |
langtag=ISL, |
| 11 |
} |
| 12 |
|
| 13 |
% BCP-47 compliant aliases |
| 14 |
\setlanguagealias*{icelandic}{is} |
| 15 |
|
| 16 |
\def\captionsicelandic{% |
| 17 |
\def\refname{Heimildir}% |
| 18 |
\def\abstractname{Útdráttur}% |
| 19 |
\def\bibname{Heimildir}% |
| 20 |
\def\prefacename{Formáli}% |
| 21 |
\def\chaptername{Kafli}% |
| 22 |
\def\appendixname{Viðauki}% |
| 23 |
\def\contentsname{Efnisyfirlit}% |
| 24 |
\def\listfigurename{Myndaskrá}% |
| 25 |
\def\listtablename{Töfluskrá}% |
| 26 |
\def\indexname{Atriðisorðaskrá}% |
| 27 |
\def\figurename{Mynd}% |
| 28 |
\def\tablename{Tafla}% |
| 29 |
%\def\thepart{}% |
| 30 |
\def\partname{Hluti}% |
| 31 |
\def\pagename{Blaðsíða}% |
| 32 |
\def\seename{Sjá}% |
| 33 |
\def\alsoname{Sjá einnig}% |
| 34 |
\def\enclname{Hjálagt}% |
| 35 |
\def\ccname{Samrit}% |
| 36 |
\def\headtoname{Til:}% |
| 37 |
\def\proofname{Sönnun}% |
| 38 |
\def\glossaryname{Orðalisti}% |
| 39 |
} |
| 40 |
|
| 41 |
\def\dateicelandic{% |
| 42 |
\def\today{\number\day.~\ifcase\month\or |
| 43 |
janúar\or febrúar\or mars\or apríl\or maí\or |
| 44 |
júní\or júlí\or ágúst\or september\or |
| 45 |
október\or nóvember\or desember\fi |
| 46 |
\space\number\year}% |
| 47 |
} |
| 48 |
|
| 49 |
\endinput |
| 50 |
|
| 51 |
|
| 52 |
%%TODO: implement this as a separate module ? |
| 53 |
%\mathchardef\m@comma="013B |
| 54 |
%\def\@comma@{\ifmmode\m@comma\else,\fi} |
| 55 |
%\def\f@thousandsep{\ifmmode\mskip5.5mu\else\penalty\@M\kern.3em\fi} |
| 56 |
%\newcommand{\decimalsep}{.} \newcommand{\thousandsep}{\@comma@} |
| 57 |
% |
| 58 |
%\newcommand{\tala}[2][\decimalsep]{% |
| 59 |
% \def\@decimalsep{#1}\@tala#2\@empty,\@empty,\@nil} |
| 60 |
%\def\@tala#1,#2,#3\@nil{% |
| 61 |
% \ifx\@empty#2% |
| 62 |
% \@integerpart{#1}% |
| 63 |
% \else |
| 64 |
% \@integerpart{#1}\@decimalsep\@decimalpart{#2}% |
| 65 |
% \fi} |
| 66 |
%\def\@decimalpart#1{\@@decimalpart#1\@empty\@empty\@empty} |
| 67 |
%\def\@@decimalpart#1#2#3#4{#1#2#3% |
| 68 |
% \ifx\@empty#4% |
| 69 |
% \else |
| 70 |
% \thousandsep\expandafter\@@decimalpart\expandafter#4% |
| 71 |
% \fi} |
| 72 |
%\def\@integerpart#1{\@@integerpart{}#1\@empty\@empty\@empty} |
| 73 |
%\def\@@integerpart#1#2#3#4{% |
| 74 |
% \ifx\@empty#2% |
| 75 |
% \@addthousandsep#1\relax |
| 76 |
% \else |
| 77 |
% \ifx\@empty#3% |
| 78 |
% \@addthousandsep\@empty\@empty#1#2\relax |
| 79 |
% \else |
| 80 |
% \ifx\@empty#4% |
| 81 |
% \@addthousandsep\@empty#1#2#3\relax |
| 82 |
% \else |
| 83 |
% \@@integerpartafterfi{#1#2#3#4}% |
| 84 |
% \fi |
| 85 |
% \fi |
| 86 |
% \fi} |
| 87 |
%\def\@@integerpartafterfi#1\fi\fi\fi{\fi\fi\fi\@@integerpart{#1}} |
| 88 |
%\def\@addthousandsep#1#2#3#4{#1#2#3% |
| 89 |
% \if#4\relax |
| 90 |
% \else |
| 91 |
% \thousandsep\expandafter\@addthousandsep\expandafter#4% |
| 92 |
% \fi} |