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.ldf23
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
index 0537a0386c1..d4f16da891e 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf
@@ -13,8 +13,10 @@
\define@boolkey{finnish}[finnish@]{babelshorthands}[true]{}
+\define@boolkey{finnish}[finnish@]{schoolhyphens}[true]{}
+
% Register default options
-\xpg@initialize@gloss@options{finnish}{babelshorthands=false}
+\xpg@initialize@gloss@options{finnish}{babelshorthands=false,schoolhyphens=false}
\ifsystem@babelshorthands
\setkeys{finnish}{babelshorthands=true}
@@ -68,6 +70,21 @@
\def\proofname{Todistus}%
\def\glossaryname{Sanasto}%
}
+
+\def\finnish@language{%
+ \iffinnish@schoolhyphens
+ \xpg@ifdefined{schoolfinnish}{%
+ \polyglossia@setup@language@patterns{schoolfinnish}%
+ }{%
+ \xpg@warning{Finnish 'School' hyphenation patterns (schoolfinnish) not available.\MessageBreak
+ I will use the standard patterns for Finnish instead}%
+ \polyglossia@setup@language@patterns{finnish}%
+ }%
+ \else
+ \polyglossia@setup@language@patterns{finnish}%
+ \fi
+}
+
\def\datefinnish{%
\def\today{\number\day.~\ifcase\month\or
tammikuuta\or helmikuuta\or maaliskuuta\or huhtikuuta\or
@@ -80,11 +97,11 @@
}
\def\blockextras@finnish{%
- \iffinnish@babelshorthands\finnish@shorthands\fi%
+ \iffinnish@babelshorthands\finnish@shorthands\else\nofinnish@shorthands\fi%
}
\def\inlineextras@finnish{%
- \iffinnish@babelshorthands\finnish@shorthands\fi%
+ \iffinnish@babelshorthands\finnish@shorthands\else\nofinnish@shorthands\fi%
}
\endinput