% !TEX encoding = UTF-8 Unicode % Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \ProvidesFile{gloss-piedmontese.ldf}[2013/02/12 v1.0 polyglossia: module for Piedmontese] \makeatletter \PolyglossiaSetup{piedmontese}{ bcp47=pms, bcp47-language=pms, bcp47-script=Latn, hyphennames={piedmontese}, hyphenmins={2,2}, langtag=PMS, frenchspacing=true, fontsetup=true, } % BCP-47 compliant aliases \setlanguagealias*{piedmontese}{pms} \DeclareKeys[polyglossia/gloss/piedmontese] { babelshorthands.if = piedmontese@babelshorthands, babelshorthands.default:n = true } \ifsystem@babelshorthands \SetGlossOptions{piedmontese}{babelshorthands=true} \else \SetGlossOptions{piedmontese}{babelshorthands=false} \fi \InitializeBabelShorthands \def\piedmontese@shorthands{% \xpg@activate@shorthands% \def\language@group{piedmontese}% \declare@shorthand{piedmontese}{"}{% \relax\ifmmode \def\xpgpms@next{''}% \else \def\xpgpms@next{\futurelet\xpgpms@temp\xpgpms@cwm}% \fi \xpgpms@next}% } \def\xpgpms@@cwm{\nobreak\discretionary{-}{}{}\nobreak\hskip\z@skip} \def\xpgpms@cwm{\let\xpgpms@@next\relax \ifcat\noexpand\xpgpms@temp a% \def\xpgpms@@next{\pms@@cwm}% \else \ifx\xpgpms@temp/% \def\xpgpms@@next{\bbl@allowhyphens/\bbl@allowhyphens\@gobble}% \else \ifx\xpgpms@temp-% \def\xpgpms@@next{\bbl@allowhyphens-\bbl@allowhyphens\@gobble}% \else \ifx\xpgpms@temp"% \def\xpgpms@@next{``\expandafter\@gobble\string}% \fi \fi \fi \xpgpms@@next} \def\nopiedmontese@shorthands{% \xpg@deactivate@shorthands% } \@namedef{captions\CurrentOption}{% \def\prefacename{Prefassion}% \def\refname{Riferiment}% \def\abstractname{Somari}% \def\bibname{Bibliografìa}% \def\chaptername{Capìtol}% \def\appendixname{Gionta}% \def\contentsname{Tàula}% \def\listfigurename{Lista dle figure}% \def\listtablename{Lista dle tabele}% \def\indexname{Tàula analìtica}% \def\figurename{Figura}% \def\tablename{Tabela}% \def\partname{Part}% \def\enclname{Gionta/e}% \def\ccname{Con còpia a}% \def\headtoname{Për}% \def\pagename{Pàgina}% \def\seename{vëd}% \def\alsoname{vëd anche}% \def\proofname{Dimostrassion}% \def\glossaryname{Glossari}% } \@namedef{date\CurrentOption}{% \def\today{\number\day\space\ifcase\month\or ëd gené\or ëd fevré\or ëd mars\or d'avril\or ëd maj\or ëd giugn\or ëd luj\or d'agost\or dë stèmber\or d'otóber\or ëd novèmber\or dë dzèmber% \fi\space dal\space\number\year}} \AddToHook{begindocument/before}{% \edef\xpgpms@savedvalues{% \clubpenalty=\the\clubpenalty\space \@clubpenalty=\the\@clubpenalty\space \widowpenalty=\the\widowpenalty\space \finalhyphendemerits=\the\finalhyphendemerits} } \def\noextras@piedmontese{% \lccode\string"2019=\z@% \ifpiedmontese@babelshorthands\nopiedmontese@shorthands\fi% \xpgpms@savedvalues% } \def\blockextras@piedmontese{% \lccode\string"2019=\string"2019% \clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000% \finalhyphendemerits=50000000% \ifpiedmontese@babelshorthands\piedmontese@shorthands\else\nopiedmontese@shorthands\fi% } \def\inlineextras@piedmontese{% \lccode\string"2019=\string"2019% \ifpiedmontese@babelshorthands\piedmontese@shorthands\else\nopiedmontese@shorthands\fi% } %%% CHANGES END %%% \endinput