diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-finnish.ldf')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/gloss-finnish.ldf | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-finnish.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-finnish.ldf index 5da03045ae7..b2f0ec57f0f 100644 --- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-finnish.ldf +++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-finnish.ldf @@ -1,11 +1,11 @@ \ProvidesFile{gloss-finnish.ldf}[polyglossia: module for finnish] \makeatletter -\def\finnish@font{\selectfontfamilylatin} - -\ifx\l@finnish\@undefined% - \xpg@nopatterns{Finnish}% - \adddialect\l@finnish\l@nohyphenation% -\fi +\PolyglossiaSetup{finnish}{ + hyphennames={finnish}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} \def\captionsfinnish{% \def\refname{Viitteet}% @@ -38,26 +38,10 @@ syyskuuta\or lokakuuta\or marraskuuta\or joulukuuta\fi \space\number\year}} -\def\finnish@language{\language=\l@finnish} - -\setlocalhyphenmins{finnish}{2}{2}% - -\def\noextras@finnish{% - \nonfrenchspacing% - } - -\def\blockextras@finnish{% - \frenchspacing% - } - -\def\inlineextras@finnish{% - \frenchspacing% - } - \endinput -% TODO ? -\addto\extrasfinnish{% +% TODO ? this is set in babel: +\gappto\blockextrasfinnish{% \babel@savevariable\hyphenpenalty\hyphenpenalty=30% \babel@savevariable\exhyphenpenalty\exhyphenpenalty=30% \babel@savevariable\doublehyphendemerits\doublehyphendemerits=5000% |