diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-german.ldf')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/gloss-german.ldf | 74 |
1 files changed, 33 insertions, 41 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-german.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-german.ldf index 49c7abc4e7c..2cf2d673791 100644 --- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-german.ldf +++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-german.ldf @@ -1,47 +1,44 @@ \ProvidesFile{gloss-german.ldf}[polyglossia: module for german] \makeatletter -\def\german@font{\selectfontfamilylatin} +\PolyglossiaSetup{german}{ + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} \def\tmp@old{old} \def\tmp@oldyr{1901} \newif\if@german@oldspelling \@german@oldspellingfalse \define@key{german}{spelling}[new]{% - \def\@tmpa{#1}% - \ifx\@tmpa\tmp@old% - \ifx\l@german\@undefined% - \xpg@nopatterns{german}% - \adddialect\l@german\l@nohyphenation% - \fi% - \@german@oldspellingtrue% - \else% - \ifx\@tmpa\tmp@oldyr% - \ifx\l@german\@undefined% - \xpg@nopatterns{german}% - \adddialect\l@german\l@nohyphenation% - \fi% - \@german@oldspellingtrue% - \else% - \ifx\l@ngerman\@undefined% - \ifx\l@german\@undefined% - \xpg@nopatterns{ngerman}% - \adddialect\l@ngerman\l@nohyphenation% - \else% - \xpg@warning{You asked for `ngerman' but only `german' hyphenation is available!}% - \@german@oldspellingtrue% - \fi% - \else% - \@german@oldspellingfalse - \fi% - \fi% - \fi% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@oldyr\def\@tmpa{old}\fi + \ifx\@tmpa\tmp@old + \ifx\l@german\@undefined + \xpg@nopatterns{german}% + \adddialect\l@german\l@nohyphenation + \fi + \@german@oldspellingtrue + \else %try ngerman + \ifx\l@ngerman\@undefined + \ifx\l@german\@undefined + \xpg@nopatterns{ngerman}% + \adddialect\l@ngerman\l@nohyphenation + \else + \xpg@warning{You asked for `ngerman' but only `german' hyphenation is available!}% + \@german@oldspellingtrue + \fi + \else %we use ngerman + \@german@oldspellingfalse + \fi + \fi } \newif\if@german@fraktur \def\tmp@fraktur{fraktur} \define@key{german}{script}[latin]{% \def\@tmpa{#1}% - \ifx\@tmpa\tmp@fraktur\@german@frakturtrue\else% + \ifx\@tmpa\tmp@fraktur\@german@frakturtrue\else \@german@frakturfalse% \fi} @@ -132,7 +129,7 @@ \space \ifcase\month%TODO add option for Austrian forms (Jänner etc) \or Januar\or Februar\or März\or April\or Mai\or Juni\or% Juli\or August\or September\or Oktober\or November\or% - Dezember\fi% + Dezember\fi \space \number\year}% } @@ -150,36 +147,31 @@ \space \ifcase\month%TODO add option for Austrian forms (Jänner etc) \or Januar\or Februar\or März\or April\or Mai\or Juni\or% Juli\or Auguſt\or September\or Oktober\or November\or% - Dezember\fi% + Dezember\fi \space \number\year}% } \def\captionsgerman{% - \if@german@fraktur\captions@german@fraktur\else\captions@german\fi% + \if@german@fraktur\captions@german@fraktur\else\captions@german\fi } \def\dategerman{% - \if@german@fraktur\date@german@fraktur\else\date@german\fi% + \if@german@fraktur\date@german@fraktur\else\date@german\fi } \def\german@language{\language=% \csname l@\if@german@oldspelling\else n\fi german\ifgerman@latesthyphen -x-latest\fi\endcsname} -\setlocalhyphenmins{german}{2}{2}% - \def\noextras@german{% - \nonfrenchspacing% \nogerman@shorthands% } \def\blockextras@german{% - \frenchspacing% - \ifgerman@babelshorthands\german@shorthands\fi% + \ifgerman@babelshorthands\german@shorthands\fi } \def\inlineextras@german{% - \frenchspacing% - \ifgerman@babelshorthands\german@shorthands\fi% + \ifgerman@babelshorthands\german@shorthands\fi } \endinput |