| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-breton.ldf}[polyglossia: module for Breton] |
| 4 |
\PolyglossiaSetup{breton}{ |
| 5 |
bcp47=br, |
| 6 |
bcp47-language=br, |
| 7 |
bcp47-region=FR, |
| 8 |
bcp47-script=Latn, |
| 9 |
hyphennames={breton}, |
| 10 |
hyphenmins={2,2}, |
| 11 |
langtag=BRE, |
| 12 |
frenchspacing=true, |
| 13 |
indentfirst=true, |
| 14 |
} |
| 15 |
|
| 16 |
% BCP-47 compliant aliases |
| 17 |
\setlanguagealias*{breton}{br} |
| 18 |
|
| 19 |
\ifluatex |
| 20 |
% TODO |
| 21 |
\else |
| 22 |
\newXeTeXintercharclass\breton@punctthin % ! ? ; |
| 23 |
\newXeTeXintercharclass\breton@punctthick % : |
| 24 |
\fi |
| 25 |
|
| 26 |
\def\breton@punctthinspace{{\unskip\thinspace}} |
| 27 |
\def\breton@punctthickspace{{\unskip\nobreakspace}} |
| 28 |
|
| 29 |
\def\breton@punctuation{% |
| 30 |
\ifluatex |
| 31 |
% TODO |
| 32 |
\else |
| 33 |
\XeTeXinterchartokenstate=1% |
| 34 |
\XeTeXcharclass `\! \breton@punctthin |
| 35 |
\XeTeXcharclass `\? \breton@punctthin |
| 36 |
\XeTeXcharclass `\; \breton@punctthin |
| 37 |
\XeTeXcharclass `\: \breton@punctthick |
| 38 |
\XeTeXinterchartoks \z@ \breton@punctthin = \breton@punctthinspace |
| 39 |
\XeTeXinterchartoks \z@ \breton@punctthick = \breton@punctthickspace |
| 40 |
\fi |
| 41 |
} |
| 42 |
|
| 43 |
\def\nobreton@punctuation{% |
| 44 |
\ifluatex |
| 45 |
% TODO |
| 46 |
\else |
| 47 |
\XeTeXcharclass `\! \z@ |
| 48 |
\XeTeXcharclass `\? \z@ |
| 49 |
\XeTeXcharclass `\; \z@ |
| 50 |
\XeTeXcharclass `\: \z@ |
| 51 |
\XeTeXinterchartokenstate=0% |
| 52 |
\fi |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
\def\captionsbreton{% |
| 57 |
\def\refname{Daveennoù}% |
| 58 |
\def\abstractname{Dvierrañ}% |
| 59 |
\def\bibname{Lennadurezh}% |
| 60 |
\def\prefacename{Rakskrid}% |
| 61 |
\def\chaptername{Pennad}% |
| 62 |
\def\appendixname{Stagadenn}% |
| 63 |
\def\contentsname{Taolenn}% |
| 64 |
\def\listfigurename{Listenn ar Figurennoù}% |
| 65 |
\def\listtablename{Listenn an taolennoù}% |
| 66 |
\def\indexname{Meneger}% |
| 67 |
\def\figurename{Figurenn}% |
| 68 |
\def\tablename{Taolenn}% |
| 69 |
\def\thepart{}% |
| 70 |
\def\partname{Lodenn}% |
| 71 |
\def\pagename{Pajenn}% |
| 72 |
\def\seename{Gwelout}% |
| 73 |
\def\alsoname{Gwelout ivez}% |
| 74 |
\def\enclname{Dielloù kevret}% |
| 75 |
\def\ccname{Eilskrid da}% |
| 76 |
\def\headtoname{evit}% |
| 77 |
\def\proofname{Proof}% |
| 78 |
\def\glossaryname{Glossary}% |
| 79 |
} |
| 80 |
\def\datebreton{% |
| 81 |
\def\today{\ifnum\day=1\relax 1\/\textsuperscript{añ}\else |
| 82 |
\number\day\fi \space a\space viz\space\ifcase\month\or |
| 83 |
Genver\or C'hwevrer\or Meurzh\or Ebrel\or Mae\or Mezheven\or |
| 84 |
Gouere\or Eost\or Gwengolo\or Here\or Du\or Kerzu\fi |
| 85 |
\space\number\year}} |
| 86 |
|
| 87 |
\def\noextras@breton{% |
| 88 |
\nobreton@punctuation% |
| 89 |
} |
| 90 |
|
| 91 |
\def\blockextras@breton{% |
| 92 |
\breton@punctuation% |
| 93 |
} |
| 94 |
|
| 95 |
\def\inlineextras@breton{% |
| 96 |
\breton@punctuation% |
| 97 |
} |
| 98 |
|
| 99 |
\endinput |
| 100 |
|
| 101 |
% These are defined in Babel |
| 102 |
% perhaps we should activate them only if option |
| 103 |
% "ordinalmacros" is given |
| 104 |
\def\kentan{1\/\textsuperscript{añ}} %${}^{\rm a\tilde{n}}$} |
| 105 |
\def\eil{2\/\textsuperscript{l}} %${}^{\rm l}$} |
| 106 |
\def\re{\/\textsuperscript{re}} %${}^{\rm re}$} |
| 107 |
\def\trede{3\re} |
| 108 |
\def\pevare{4\re} |
| 109 |
\def\vet{\/\textsuperscript{vet}} %${}^{\rm vet}$} |
| 110 |
\def\pempvet{5\vet} |