summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf47
1 files changed, 45 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
index 6b271e531d9..e0c884f9664 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
@@ -2,10 +2,41 @@
\PolyglossiaSetup{finnish}{
hyphennames={finnish},
hyphenmins={2,2},
+ langtag=FIN,
frenchspacing=true,
fontsetup=true,
}
+\define@boolkey{finnish}[finnish@]{babelshorthands}[true]{}
+
+\ifsystem@babelshorthands
+ \setkeys{finnish}{babelshorthands=true}
+\else
+ \setkeys{finnish}{babelshorthands=false}
+\fi
+
+\ifcsundef{initiate@active@char}{%
+ \input{babelsh.def}%
+ \initiate@active@char{"}%
+ \shorthandoff{"}%
+}{}
+
+\def\finnish@shorthands{%
+ \bbl@activate{"}%
+ \def\language@group{finnish}%
+ \declare@shorthand{finnish}{"-}{\nobreak-\bbl@allowhyphens}
+ \declare@shorthand{finnish}{"|}{\textormath{\penalty@M\discretionary{-}{}{\kern.03em}}{}}%
+ \declare@shorthand{finnish}{""}{\hskip\z@skip}%
+ \declare@shorthand{finnish}{"~}{\textormath{\leavevmode\hbox{-}}{-}}%
+ \declare@shorthand{finnish}{"=}{\penalty@M-\hskip\z@skip}%
+ \declare@shorthand{finnish}{"/}{\textormath
+ {\bbl@allowhyphens\discretionary{/}{}{/}\bbl@allowhyphens}{}}%
+}
+
+\def\nofinnish@shorthands{%
+ \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}%
+}
+
\def\captionsfinnish{%
\def\refname{Viitteet}%
\def\abstractname{Tiivistelmä}%
@@ -29,7 +60,7 @@
\def\headtoname{Vastaanottaja}%
\def\proofname{Todistus}%
\def\glossaryname{Sanasto}%
- }
+}
\def\datefinnish{%
\def\today{\number\day.~\ifcase\month\or
tammikuuta\or helmikuuta\or maaliskuuta\or huhtikuuta\or
@@ -37,6 +68,18 @@
syyskuuta\or lokakuuta\or marraskuuta\or joulukuuta\fi
\space\number\year}}
+\def\noextras@finnish{%
+ \nofinnish@shorthands%
+}
+
+\def\blockextras@finnish{%
+ \iffinnish@babelshorthands\finnish@shorthands\fi%
+}
+
+\def\inlineextras@finnish{%
+ \iffinnish@babelshorthands\finnish@shorthands\fi%
+}
+
\endinput
% TODO ? this is set in babel:
@@ -45,4 +88,4 @@
\babel@savevariable\exhyphenpenalty\exhyphenpenalty=30%
\babel@savevariable\doublehyphendemerits\doublehyphendemerits=5000%
\babel@savevariable\finalhyphendemerits\finalhyphendemerits=5000%
- }
+}