| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-dutch.ldf}[polyglossia: module for Dutch] |
| 4 |
\PolyglossiaSetup{dutch}{ |
| 5 |
bcp47=nl, |
| 6 |
bcp47-language=nl, |
| 7 |
bcp47-script=Latn, |
| 8 |
hyphennames={dutch}, |
| 9 |
hyphenmins={2,2}, |
| 10 |
langtag=NLD, |
| 11 |
frenchspacing=true, |
| 12 |
} |
| 13 |
|
| 14 |
% BCP-47 compliant aliases |
| 15 |
\setlanguagealias*{dutch}{nl} |
| 16 |
|
| 17 |
\DeclareKeys[polyglossia/gloss/dutch] |
| 18 |
{ |
| 19 |
babelshorthands.if = dutch@babelshorthands, |
| 20 |
babelshorthands.default:n = true, |
| 21 |
tremahyphenation.if = dutch@tremahyphenation, |
| 22 |
tremahyphenation.default:n = true |
| 23 |
} |
| 24 |
|
| 25 |
\ifsystem@babelshorthands |
| 26 |
\SetGlossOptions{dutch}{babelshorthands=true} |
| 27 |
% Register default options |
| 28 |
\InitializeGlossOptions{dutch}{babelshorthands=true,tremahyphenation=true} |
| 29 |
\else |
| 30 |
\SetGlossOptions{dutch}{babelshorthands=false} |
| 31 |
% Register default options |
| 32 |
\InitializeGlossOptions{dutch}{babelshorthands=false,tremahyphenation=true} |
| 33 |
\fi |
| 34 |
|
| 35 |
\InitializeBabelShorthands |
| 36 |
|
| 37 |
\def\xpg@trema#1{\allowhyphens\discretionary{-}{#1}{\"{#1}}\allowhyphens} |
| 38 |
|
| 39 |
\def\xpg@itrema{% |
| 40 |
\textormath{\allowhyphens\discretionary{-}{i}{\"{\i}}\allowhyphens}% |
| 41 |
{\ddot \imath}% |
| 42 |
} |
| 43 |
|
| 44 |
\def\xpg@imtrema{% |
| 45 |
\textormath{\allowhyphens\discretionary{-}{I}{\"{I}}\allowhyphens}% |
| 46 |
{\ddot I}% |
| 47 |
} |
| 48 |
|
| 49 |
\def\dutch@shorthands{% |
| 50 |
\xpg@activate@shorthands% |
| 51 |
\def\language@group{dutch}% |
| 52 |
\declare@shorthand{dutch}{"a}{\textormath{\xpg@trema{a}}{\ddot a}}% |
| 53 |
\declare@shorthand{dutch}{"e}{\textormath{\xpg@trema{e}}{\ddot e}}% |
| 54 |
\declare@shorthand{dutch}{"i}{\xpg@itrema}% |
| 55 |
\declare@shorthand{dutch}{"o}{\textormath{\xpg@trema{o}}{\ddot o}}% |
| 56 |
\declare@shorthand{dutch}{"u}{\textormath{\xpg@trema{u}}{\ddot u}}% |
| 57 |
\declare@shorthand{dutch}{"A}{\textormath{\xpg@trema{A}}{\ddot A}}% |
| 58 |
\declare@shorthand{dutch}{"E}{\textormath{\xpg@trema{E}}{\ddot E}}% |
| 59 |
\declare@shorthand{dutch}{"I}{\xpg@imtrema}% |
| 60 |
\declare@shorthand{dutch}{"O}{\textormath{\xpg@trema{O}}{\ddot O}}% |
| 61 |
\declare@shorthand{dutch}{"U}{\textormath{\xpg@trema{U}}{\ddot U}}% |
| 62 |
\declare@shorthand{dutch}{"y}{\textormath{\ij{}}{\ddot y}}% |
| 63 |
\declare@shorthand{dutch}{"Y}{\textormath{\IJ{}}{\ddot Y}}% |
| 64 |
\declare@shorthand{dutch}{"-}{\xpg@breakable@hyphen}% |
| 65 |
\declare@shorthand{dutch}{"~}{\xpg@nobreak@hyphen}% |
| 66 |
\declare@shorthand{dutch}{"|}{\xpg@ligature@break}% |
| 67 |
\declare@shorthand{dutch}{""}{\xpg@invisible@break}% |
| 68 |
\declare@shorthand{dutch}{"/}{\xpg@breakable@slash}% |
| 69 |
\def\-{\xpg@allowhyphenationbefore\discretionary{-}{}{}\xpg@allowhyphenationafter}% |
| 70 |
} |
| 71 |
|
| 72 |
\def\nodutch@shorthands{% |
| 73 |
\xpg@deactivate@shorthands% |
| 74 |
\def\-{\discretionary{-}{}{}}% << original def in latex.ltx |
| 75 |
} |
| 76 |
|
| 77 |
% |
| 78 |
% Support proper hyphenation of tremata: after hyphenation, |
| 79 |
% the trema is omitted, e.g. geëxecuteerd > ge-executeerd |
| 80 |
% We support this by making the respective letters active. |
| 81 |
% |
| 82 |
% Save catcodes of trema characters for later restorage |
| 83 |
\chardef\xpg@saved@auml@catcode\catcode`ä |
| 84 |
\chardef\xpg@saved@euml@catcode\catcode`ë |
| 85 |
\chardef\xpg@saved@iuml@catcode\catcode`ï |
| 86 |
\chardef\xpg@saved@ouml@catcode\catcode`ö |
| 87 |
\chardef\xpg@saved@uuml@catcode\catcode`ü |
| 88 |
\chardef\xpg@saved@Auml@catcode\catcode`Ä |
| 89 |
\chardef\xpg@saved@Euml@catcode\catcode`Ë |
| 90 |
\chardef\xpg@saved@Iuml@catcode\catcode`Ï |
| 91 |
\chardef\xpg@saved@Ouml@catcode\catcode`Ö |
| 92 |
\chardef\xpg@saved@Uuml@catcode\catcode`Ü |
| 93 |
|
| 94 |
% activate trema characters |
| 95 |
\def\dutch@@tremahyph{% |
| 96 |
\catcode`ä = \active |
| 97 |
\catcode`ë = \active |
| 98 |
\catcode`ï = \active |
| 99 |
\catcode`ö = \active |
| 100 |
\catcode`ü = \active |
| 101 |
\catcode`Ä = \active |
| 102 |
\catcode`Ë = \active |
| 103 |
\catcode`Ï = \active |
| 104 |
\catcode`Ö = \active |
| 105 |
\catcode`Ü = \active |
| 106 |
} |
| 107 |
|
| 108 |
% restore previous catcode of trema characters |
| 109 |
\def\nodutch@@tremahyph{% |
| 110 |
\catcode`ä = \xpg@saved@auml@catcode |
| 111 |
\catcode`ë = \xpg@saved@euml@catcode |
| 112 |
\catcode`ï = \xpg@saved@iuml@catcode |
| 113 |
\catcode`ö = \xpg@saved@ouml@catcode |
| 114 |
\catcode`ü = \xpg@saved@uuml@catcode |
| 115 |
\catcode`Ä = \xpg@saved@Auml@catcode |
| 116 |
\catcode`Ë = \xpg@saved@Euml@catcode |
| 117 |
\catcode`Ï = \xpg@saved@Iuml@catcode |
| 118 |
\catcode`Ö = \xpg@saved@Ouml@catcode |
| 119 |
\catcode`Ü = \xpg@saved@Uuml@catcode |
| 120 |
} |
| 121 |
|
| 122 |
\bgroup |
| 123 |
\dutch@@tremahyph |
| 124 |
\gdef\dutch@tremahyph{% |
| 125 |
\dutch@@tremahyph% |
| 126 |
\def ä{\textormath{\xpg@trema{a}}{\ddot a}}% |
| 127 |
\def ë{\textormath{\xpg@trema{e}}{\ddot e}}% |
| 128 |
\def ï{\textormath{\xpg@trema{i}}{\ddot i}}% |
| 129 |
\def ö{\textormath{\xpg@trema{o}}{\ddot o}}% |
| 130 |
\def ü{\textormath{\xpg@trema{u}}{\ddot u}}% |
| 131 |
\def Ä{\textormath{\xpg@trema{A}}{\ddot A}}% |
| 132 |
\def Ë{\textormath{\xpg@trema{E}}{\ddot E}}% |
| 133 |
\def Ï{\textormath{\xpg@trema{I}}{\ddot I}}% |
| 134 |
\def Ö{\textormath{\xpg@trema{O}}{\ddot O}}% |
| 135 |
\def Ü{\textormath{\xpg@trema{U}}{\ddot U}}% |
| 136 |
} |
| 137 |
|
| 138 |
\gdef\nodutch@tremahyph{% |
| 139 |
\let ä\relax% |
| 140 |
\let ë\relax% |
| 141 |
\let ï\relax% |
| 142 |
\let ö\relax% |
| 143 |
\let ü\relax% |
| 144 |
\let Ä\relax% |
| 145 |
\let Ë\relax% |
| 146 |
\let Ï\relax% |
| 147 |
\let Ö\relax% |
| 148 |
\let Ü\relax% |
| 149 |
\nodutch@@tremahyph% |
| 150 |
} |
| 151 |
\egroup |
| 152 |
|
| 153 |
\def\captionsdutch{% |
| 154 |
\def\prefacename{Voorwoord}% |
| 155 |
\def\refname{Referenties}% |
| 156 |
\def\abstractname{Samenvatting}% |
| 157 |
\def\bibname{Bibliografie}% |
| 158 |
\def\chaptername{Hoofdstuk}% |
| 159 |
\def\appendixname{Bijlage}% |
| 160 |
\def\contentsname{Inhoudsopgave}% |
| 161 |
\def\listfigurename{Lijst van figuren}% |
| 162 |
\def\listtablename{Lijst van tabellen}% |
| 163 |
\def\indexname{Index}% |
| 164 |
\def\figurename{Figuur}% |
| 165 |
\def\tablename{Tabel}% |
| 166 |
\def\partname{Deel}% |
| 167 |
\def\enclname{Bijlage(n)}% |
| 168 |
\def\ccname{cc}% |
| 169 |
\def\headtoname{Aan}% |
| 170 |
\def\pagename{Pagina}% |
| 171 |
\def\seename{zie}% |
| 172 |
\def\alsoname{zie ook}% |
| 173 |
\def\proofname{Bewijs}% |
| 174 |
\def\glossaryname{Verklarende woordenlijst}% |
| 175 |
} |
| 176 |
|
| 177 |
\def\datedutch{% |
| 178 |
\def\today{\number\day~\ifcase\month% |
| 179 |
\or januari\or februari\or maart\or april\or mei\or juni\or |
| 180 |
juli\or augustus\or september\or oktober\or november\or |
| 181 |
december\fi |
| 182 |
\space \number\year}% |
| 183 |
} |
| 184 |
|
| 185 |
\def\noextras@dutch{% |
| 186 |
\ifdutch@babelshorthands\nodutch@shorthands\fi% |
| 187 |
\ifdutch@tremahyphenation\nodutch@tremahyph\fi% |
| 188 |
} |
| 189 |
|
| 190 |
\def\blockextras@dutch{% |
| 191 |
\ifdutch@babelshorthands\dutch@shorthands\else\nodutch@shorthands\fi% |
| 192 |
\ifdutch@tremahyphenation\dutch@tremahyph\else\nodutch@tremahyph\fi% |
| 193 |
} |
| 194 |
|
| 195 |
\def\inlineextras@dutch{% |
| 196 |
\ifdutch@babelshorthands\dutch@shorthands\else\nodutch@shorthands\fi% |
| 197 |
\ifdutch@tremahyphenation\dutch@tremahyph\else\nodutch@tremahyph\fi% |
| 198 |
} |
| 199 |
|
| 200 |
\endinput |