diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-05 22:10:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-05 22:10:52 +0000 |
commit | 1d3a41c853f7524663343fd7a7d561848375497a (patch) | |
tree | b5f046c070ef4fc5ed8e7f417b9d4a81b36fe860 /Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf | |
parent | 44c7e92cd62a724d239c17b52359d86abaf22615 (diff) |
polyglossia (27mar22)
git-svn-id: svn://tug.org/texlive/trunk@62940 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf | 23 |
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 |