You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.7 KiB
98 lines
2.7 KiB
\ProvidesFile{gloss-finnish.ldf}[polyglossia: module for finnish]
|
|
\PolyglossiaSetup{finnish}{
|
|
bcp47=fi,
|
|
hyphennames={finnish},
|
|
hyphenmins={2,2},
|
|
langtag=FIN,
|
|
frenchspacing=true,
|
|
fontsetup=true,
|
|
}
|
|
|
|
% BCP-47 compliant aliases
|
|
\setlanguagealias*{finnish}{fi}
|
|
|
|
\define@boolkey{finnish}[finnish@]{babelshorthands}[true]{}
|
|
|
|
% Register default options
|
|
\xpg@initialize@gloss@options{finnish}{babelshorthands=false}
|
|
|
|
\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ä}%
|
|
\def\bibname{Kirjallisuutta}%
|
|
\def\prefacename{Esipuhe}%
|
|
\def\chaptername{Luku}%
|
|
\def\appendixname{Liite}%
|
|
\def\contentsname{Sisällys}%
|
|
\def\listfigurename{Kuvat}%
|
|
\def\listtablename{Taulukot}%
|
|
\def\indexname{Hakemisto}%
|
|
\def\figurename{Kuva}%
|
|
\def\tablename{Taulukko}%
|
|
%\def\thepart{}%
|
|
\def\partname{Osa}%
|
|
\def\pagename{Sivu}%
|
|
\def\seename{katso}%
|
|
\def\alsoname{katso myös}%
|
|
\def\enclname{Liitteet}%
|
|
\def\ccname{Jakelu}%
|
|
\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
|
|
toukokuuta\or kesäkuuta\or heinäkuuta\or elokuuta\or
|
|
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:
|
|
\gappto\blockextrasfinnish{%
|
|
\babel@savevariable\hyphenpenalty\hyphenpenalty=30%
|
|
\babel@savevariable\exhyphenpenalty\exhyphenpenalty=30%
|
|
\babel@savevariable\doublehyphendemerits\doublehyphendemerits=5000%
|
|
\babel@savevariable\finalhyphendemerits\finalhyphendemerits=5000%
|
|
}
|
|
|