summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf')
-rw-r--r--Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf29
1 files changed, 24 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf b/Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf
index 43994b571d9..b5a8619286b 100644
--- a/Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf
+++ b/Master/texmf-dist/tex/generic/babel-german/ngermanb.ldf
@@ -34,7 +34,7 @@
%% via: https://github.com/jspitz/babel-german
%%
\ProvidesLanguage{ngermanb}
- [2024/01/19 v2.14 German support for babel (post-1996 orthography)]
+ [2024/12/10 v2.15 German support for babel (post-1996 orthography)]
\def\tmpa{ngermanb}
\ifx\CurrentOption\tmpa
\def\CurrentOption{ngerman}
@@ -136,15 +136,30 @@
\ifntoss\bbl@ntosstrue\else\bbl@ntossfalse\fi}
\fi
\newif\ifcapsz\capszfalse
+\newif\ifnocapsz\nocapszfalse
\newif\ifbbl@capsz\bbl@capszfalse
+\ifdefined\casing@ngerman
+ \let\save@casing@ngerman\casing@ngerman
+\else
+ \xdef\save@casing@naustrian{de}
+\fi
+\ifdefined\casing@naustrian
+ \let\save@casing@naustrian\casing@naustrian
+\else
+ \xdef\save@casing@naustrian{de}
+\fi
\ifx\bbl@mod@ngerman\@undefined\else
\@expandtwoargs\in@{,capsz,}{,\bbl@mod@ngerman,}
\ifin@
\capsztrue
\fi
+ \@expandtwoargs\in@{,nocapsz,}{,\bbl@mod@ngerman,}
+ \ifin@
+ \nocapsztrue
+ \fi
\addto\extrasngerman{%
\ifcapsz\bbl@capsztrue\bbl@csarg\xdef{casing@ngerman}{de-x-eszett}%
- \else\bbl@csarg\xdef{casing@ngerman}{de}\bbl@capszfalse\fi}
+ \else\ifnocapsz\bbl@csarg\xdef{casing@ngerman}{de}\fi\bbl@capszfalse\fi}
\fi
\newif\if@at@capsz\@at@capszfalse
\ifx\bbl@mod@naustrian\@undefined\else
@@ -152,9 +167,13 @@
\ifin@
\@at@capsztrue
\fi
+ \@expandtwoargs\in@{,nocapsz,}{,\bbl@mod@naustrian,}
+ \ifin@
+ \nocapsztrue
+ \fi
\addto\extrasnaustrian{%
\if@at@capsz\bbl@capsztrue\bbl@csarg\xdef{casing@naustrian}{de-x-eszett}%
- \else\bbl@csarg\xdef{casing@naustrian}{de}\bbl@capszfalse\fi}
+ \else\ifnocapsz\bbl@csarg\xdef{casing@naustrian}{de}\fi\bbl@capszfalse\fi}
\fi
\expandafter\addto\csname noextras\CurrentOption\endcsname{%
\bbl@deactivate{"}}
@@ -163,12 +182,12 @@
\fi
\ifx\CurrentOption\bbl@opt@ngerman
\ifbbl@capsz
- \addto\noextrasngerman{\bbl@capszfalse\bbl@csarg\xdef{casing@ngerman}{de}}
+ \addto\noextrasngerman{\bbl@capszfalse\bbl@csarg\xdef{casing@ngerman}{\save@casing@ngerman}}
\fi
\fi
\ifx\CurrentOption\bbl@opt@naustrian
\ifbbl@capsz
- \addto\noextrasnaustrian{\bbl@capszfalse\bbl@csarg\xdef{casing@naustrian}{de}}
+ \addto\noextrasnaustrian{\bbl@capszfalse\bbl@csarg\xdef{casing@naustrian}{\save@casing@naustrian}}
\fi
\fi
\expandafter\addto\csname extras\CurrentOption\endcsname{%