summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf')
-rw-r--r--Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf42
1 files changed, 38 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf
index dc0255b19da..b7f6e37650b 100644
--- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf
+++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-dutch.ldf
@@ -1,6 +1,6 @@
\ProvidesFile{gloss-dutch.ldf}[polyglossia: module for dutch]
\makeatletter
-\def\dutch@font{\normalfontlatin}
+\def\dutch@font{\selectfontfamilylatin}
\ifx\l@dutch\@undefined
\xpg@nopatterns{Dutch}
@@ -15,6 +15,37 @@
\nonfrenchspacing%
}
+\define@boolkey{dutch}[dutch@]{babelshorthands}[true]{}
+
+\ifsystem@babelshorthands
+ \setkeys{dutch}{babelshorthands=true}
+\else
+ \setkeys{dutch}{babelshorthands=false}
+\fi
+
+\ifcsundef{initiate@active@char}{%
+\input{babelsh.def}%
+\initiate@active@char{"}%
+}{}
+
+\def\dutch@shorthands{%
+ \bbl@activate{"}%
+ \def\language@group{dutch}%
+ \declare@shorthand{dutch}{"-}{\nobreak-\bbl@allowhyphens}
+ \declare@shorthand{dutch}{"~}{\textormath{\leavevmode\hbox{-}}{-}}
+ \declare@shorthand{dutch}{"|}{%
+ \textormath{\discretionary{-}{}{\kern.03em}}{}}
+ \declare@shorthand{dutch}{""}{\hskip\z@skip}
+ \declare@shorthand{dutch}{"/}{\textormath
+ {\bbl@allowhyphens\discretionary{/}{}{/}\bbl@allowhyphens}{}}%
+ \def\-{\bbl@allowhyphens\discretionary{-}{}{}\bbl@allowhyphens}%
+}
+
+\def\nodutch@shorthands{%
+ \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}%
+ \def\-{\discretionary{-}{}{}}% << original def in latex.ltx
+}
+
\def\captionsdutch{%
\def\prefacename{Voorwoord}%
\def\refname{Referenties}%
@@ -48,15 +79,18 @@
\setlocalhyphenmins{dutch}{2}{2}%
\def\noextras@dutch{%
- \nodutch@punctuation%
+ \nodutch@punctuation%
+ \nodutch@shorthands%
}
\def\blockextras@dutch{%
- \dutch@punctuation%
+ \dutch@punctuation%
+ \ifdutch@babelshorthands\dutch@shorthands\fi%
}
\def\inlineextras@dutch{%
- \dutch@punctuation%
+ \dutch@punctuation%
+ \ifdutch@babelshorthands\dutch@shorthands\fi%
}
\endinput