| 1 |
% !TEX encoding = UTF-8 Unicode |
| 2 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 3 |
% |
| 4 |
\ProvidesFile{gloss-italian.ldf}[polyglossia: module for Italian] |
| 5 |
\PolyglossiaSetup{italian}{ |
| 6 |
bcp47=it, |
| 7 |
bcp47-language=it, |
| 8 |
bcp47-region=IT, |
| 9 |
bcp47-script=Latn, |
| 10 |
hyphennames={italian}, |
| 11 |
hyphenmins={2,2}, |
| 12 |
langtag=ITA, |
| 13 |
frenchspacing=true, |
| 14 |
indentfirst=true, |
| 15 |
} |
| 16 |
|
| 17 |
% BCP-47 compliant aliases |
| 18 |
\setlanguagealias*{italian}{it} |
| 19 |
|
| 20 |
\DeclareKeys[polyglossia/gloss/italian] |
| 21 |
{ |
| 22 |
babelshorthands.if = italian@babelshorthands, |
| 23 |
babelshorthands.default:n = true, |
| 24 |
} |
| 25 |
|
| 26 |
\ifsystem@babelshorthands |
| 27 |
\SetGlossOptions{italian}{babelshorthands=true} |
| 28 |
% Register default options |
| 29 |
\InitializeGlossOptions{italian}{babelshorthands=true} |
| 30 |
\else |
| 31 |
\SetGlossOptions{italian}{babelshorthands=false} |
| 32 |
% Register default options |
| 33 |
\InitializeGlossOptions{italian}{babelshorthands=false} |
| 34 |
\fi |
| 35 |
|
| 36 |
\InitializeBabelShorthands |
| 37 |
|
| 38 |
\def\italian@shorthands{% |
| 39 |
\xpg@activate@shorthands% |
| 40 |
\def\language@group{italian}% |
| 41 |
\declare@shorthand{italian}{"}{% |
| 42 |
\relax\ifmmode |
| 43 |
\def\xpgit@next{''}% |
| 44 |
\else |
| 45 |
\def\xpgit@next{\futurelet\xpgit@temp\xpgit@cwm}% |
| 46 |
\fi |
| 47 |
\xpgit@next}% |
| 48 |
} |
| 49 |
|
| 50 |
%%% By Enrico Gregorio and Claudio Beccari %%% |
| 51 |
\def\xpgit@@cwm{\nobreak\discretionary{-}{}{}\nobreak\hskip\z@skip} |
| 52 |
\def\xpgit@cwm{\let\xpgit@@next\relax |
| 53 |
\ifcat\noexpand\xpgit@temp a% |
| 54 |
\def\xpgit@@next{\xpgit@@cwm}% |
| 55 |
\else |
| 56 |
\if\noexpand\xpgit@temp \string|% |
| 57 |
\def\xpgit@@next##1{\xpgit@@cwm}% |
| 58 |
\else |
| 59 |
\if\noexpand\xpgit@temp \string<% |
| 60 |
\def\xpgit@@next##1{«\ignorespaces}% |
| 61 |
\else |
| 62 |
\if\noexpand\xpgit@temp \string>% |
| 63 |
\def\xpgit@@next##1{\unskip »}% |
| 64 |
\else |
| 65 |
\if\noexpand\xpgit@temp\string/% |
| 66 |
\def\xpgit@@next##1{\slash}% |
| 67 |
\else |
| 68 |
\ifx\xpgit@temp"% |
| 69 |
\def\xpgit@@next##1{?}% |
| 70 |
\fi |
| 71 |
\fi |
| 72 |
\fi |
| 73 |
\fi |
| 74 |
\fi |
| 75 |
\fi |
| 76 |
\xpgit@@next} |
| 77 |
|
| 78 |
\def\noitalian@shorthands{% |
| 79 |
\xpg@deactivate@shorthands% |
| 80 |
} |
| 81 |
%%% CHANGES END %%% |
| 82 |
|
| 83 |
%%% ORIGINAL %%% by Claudio Beccari |
| 84 |
\def\captionsitalian{% |
| 85 |
\def\prefacename{Prefazione}% |
| 86 |
\def\refname{Riferimenti bibliografici}% |
| 87 |
\def\abstractname{Sommario}% |
| 88 |
\def\bibname{Bibliografia}% |
| 89 |
\def\chaptername{Capitolo}% |
| 90 |
\def\appendixname{Appendice}% |
| 91 |
\def\contentsname{Indice}% |
| 92 |
\def\listfigurename{Elenco delle figure}% |
| 93 |
\def\listtablename{Elenco delle tabelle}% |
| 94 |
\def\indexname{Indice analitico}% |
| 95 |
\def\figurename{Figura}% |
| 96 |
\def\tablename{Tabella}% |
| 97 |
\def\partname{Parte}% |
| 98 |
\def\enclname{Allegati}% |
| 99 |
\def\ccname{e~p.~c.}% |
| 100 |
\def\headtoname{Per}% |
| 101 |
\def\pagename{Pag.}% % in Italian the abbreviation is preferred |
| 102 |
\def\seename{vedi}% |
| 103 |
\def\alsoname{vedi anche}% |
| 104 |
\def\proofname{Dimostrazione}% |
| 105 |
\def\glossaryname{Glossario}% |
| 106 |
} |
| 107 |
\def\dateitalian{% |
| 108 |
\def\today{\number\day~\ifcase\month\or |
| 109 |
gennaio\or febbraio\or marzo\or aprile\or maggio\or giugno\or |
| 110 |
luglio\or agosto\or settembre\or ottobre\or novembre\or |
| 111 |
dicembre\fi\space \number\year}} |
| 112 |
%%% ORIGINAL END %%% |
| 113 |
|
| 114 |
%%% CHANGES START %%% by Enrico Gregorio |
| 115 |
\let\xpgit@savedvalues\empty |
| 116 |
\AddToHook{begindocument/before}{% the user or the class might define different values |
| 117 |
\edef\xpgit@savedvalues{% |
| 118 |
\clubpenalty=\the\clubpenalty\space |
| 119 |
\@clubpenalty=\the\@clubpenalty\space |
| 120 |
\widowpenalty=\the\widowpenalty\space |
| 121 |
\finalhyphendemerits=\the\finalhyphendemerits} |
| 122 |
} |
| 123 |
|
| 124 |
|
| 125 |
\def\noextras@italian{% |
| 126 |
\lccode\string"2019=\z@% |
| 127 |
\ifitalian@babelshorthands\noitalian@shorthands\fi% |
| 128 |
\xpgit@savedvalues% |
| 129 |
} |
| 130 |
|
| 131 |
\def\blockextras@italian{% |
| 132 |
\lccode\string"2019=\string"2019% |
| 133 |
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000% |
| 134 |
\finalhyphendemerits=50000000% |
| 135 |
\ifitalian@babelshorthands\italian@shorthands\else\noitalian@shorthands\fi% |
| 136 |
} |
| 137 |
|
| 138 |
\def\inlineextras@italian{% |
| 139 |
\lccode\string"2019=\string"2019% |
| 140 |
\ifitalian@babelshorthands\italian@shorthands\else\noitalian@shorthands\fi% |
| 141 |
} |
| 142 |
%%% CHANGES END %%% |
| 143 |
\endinput |
| 144 |
|