blob: 214182ba500f27a86e6471a9a3759e32fa5e0b80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
% !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
|