Debian Codegraph @

texmf-dist/tex/latex/polyglossia/gloss-afrikaans.ldf

raw
1 % Language definition file (part of polyglossia v2.10 -- 2026/04/18)
2 %
3 \ProvidesFile{gloss-afrikaans.ldf}[polyglossia: module for Afrikaans]
4
5 \PolyglossiaSetup{afrikaans}{
6 bcp47=af,
7 bcp47-language=af,
8 bcp47-script=Latn,
9 hyphennames={afrikaans,dutch},
10 hyphenmins={2,2},
11 langtag=AFK,
12 frenchspacing=true,
13 }
14
15 % BCP-47 compliant aliases
16 \setlanguagealias*{afrikaans}{af}
17
18 \DeclareKeys[polyglossia/gloss/afrikaans]
19 {
20 babelshorthands.if = afrikaans@babelshorthands,
21 babelshorthands.default:n = true,
22 }
23
24 \ifsystem@babelshorthands
25 \SetGlossOptions{afrikaans}{babelshorthands=true}
26 % Register default options
27 \InitializeGlossOptions{afrikaans}{babelshorthands=true}
28 \else
29 \SetGlossOptions{afrikaans}{babelshorthands=false}
30 % Register default options
31 \InitializeGlossOptions{afrikaans}{babelshorthands=false}
32 \fi
33
34 \InitializeBabelShorthands
35
36 \def\afrikaans@shorthands{%
37 \xpg@activate@shorthands%
38 \def\language@group{afrikaans}%
39 \declare@shorthand{afrikaans}{"-}{\xpg@breakable@hyphen}%
40 \declare@shorthand{afrikaans}{"~}{\xpg@nobreak@hyphen}%
41 \declare@shorthand{afrikaans}{"|}{\xpg@ligature@break}%
42 \declare@shorthand{afrikaans}{""}{\xpg@invisible@break}%
43 \declare@shorthand{afrikaans}{"/}{\xpg@breakable@slash}%
44 \def\-{\xpg@allowhyphenationbefore\discretionary{-}{}{}\xpg@allowhyphenationafter}%
45 }
46
47 \def\noafrikaans@shorthands{%
48 \xpg@deactivate@shorthands%
49 }
50
51 \def\captionsafrikaans{%
52 \def\prefacename{Voorwoord}%
53 \def\refname{Verwysings}%
54 \def\abstractname{Samevatting}%
55 \def\bibname{Bibliografie}%
56 \def\chaptername{Hoofstuk}%
57 \def\appendixname{Bylae}%
58 \def\contentsname{Inhoudsopgawe}%
59 \def\listfigurename{Lys van figure}%
60 \def\listtablename{Lys van tabelle}%
61 \def\indexname{Inhoud}%
62 \def\figurename{Figuur}%
63 \def\tablename{Tabel}%
64 \def\partname{Deel}%
65 \def\enclname{Bylae(n)}%
66 \def\ccname{a.\,a.}%
67 \def\headtoname{Aan}%
68 \def\pagename{Bladsy}%
69 \def\seename{sien}%
70 \def\alsoname{sien ook}%
71 \def\proofname{Bewys}%
72 % \def\glossaryname{}%
73 }
74
75 \def\dateafrikaans{%
76 \def\today{\number\day~\ifcase\month\or
77 Januarie\or Februarie\or Maart\or April\or Mei\or Junie\or
78 Julie\or Augustus\or September\or Oktober\or November\or
79 Desember\fi
80 \space \number\year}%
81 }
82
83 \def\noextras@afrikaans{%
84 \ifafrikaans@babelshorthands\noafrikaans@shorthands\fi%
85 }
86
87 \def\blockextras@afrikaans{%
88 \ifafrikaans@babelshorthands\afrikaans@shorthands\else\noafrikaans@shorthands\fi%
89 }
90
91 \def\inlineextras@afrikaans{%
92 \ifafrikaans@babelshorthands\afrikaans@shorthands\else\noafrikaans@shorthands\fi%
93 }
94
95 \endinput