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
|
% Language definition file (part of polyglossia v1.66 -- 2023/12/11)
%
\ProvidesFile{gloss-norwegian.ldf}[polyglossia: module for Norwegian]
\PolyglossiaSetup{norwegian}{
bcp47=nn,
bcp47-language=nn,
bcp47-script=Latn,
hyphennames={nynorsk},
langtag=NYN,
hyphenmins={2,2},
frenchspacing=true,
fontsetup=false,
}
% BCP-47 compliant aliases
\setlanguagealias*[variant=bokmal]{norwegian}{nb}
\setlanguagealias*[variant=nynorsk]{norwegian}{nn}
% Babel and backwards compat. aliases
\setlanguagealias[variant=bokmal]{norwegian}{norsk}
\setlanguagealias[variant=nynorsk]{norwegian}{nynorsk}
\def\norwegian@variant{nynorsk}
\define@choicekey*+{norwegian}{variant}[\xpg@val\xpg@nr]{nynorsk,bokmal}[nynorsk]{%
\ifcase\xpg@nr\relax
% nynorsk:
\def\norwegian@variant{nynorsk}%
\SetLanguageKeys{norwegian}{langtag=NYN,babelname=nynorsk,bcp47=nn,bcp47-language=nn}%
\xpg@fontsetup@latin{norwegian}%
\or
% bokmal:
\def\norwegian@variant{norsk}%
\SetLanguageKeys{norwegian}{langtag=NOR,babelname=norsk,bcp47=nb,bcp47-language=nb}%
\xpg@fontsetup@latin{norwegian}%
\fi
\xpg@info{Option: norwegian, variant=\xpg@val}%
}{\xpg@warning{Unknown norwegian variant `#1'}}
% Register default options
\xpg@initialize@gloss@options{norwegian}{variant=nynorsk}
\def\norwegian@language{%
\polyglossia@setup@language@patterns{\norwegian@variant}%
}%
\def\captionsnorwegian@nynorsk{%
\def\refname{Referansar}%
\def\abstractname{Sammendrag}%
\def\bibname{Litteratur}%
\def\prefacename{Forord}%
\def\chaptername{Kapittel}%
\def\appendixname{Tillegg}%
\def\contentsname{Innhald}%
\def\listfigurename{Figurar}%
\def\listtablename{Tabellar}%
\def\indexname{Register}%
\def\figurename{Figur}%
\def\tablename{Tabell}%
%\def\thepart{}% <<<
\def\partname{Del}%
\def\pagename{Side}%
\def\seename{Sjå}%
\def\alsoname{Sjå òg}%
\def\enclname{Vedlegg}%
\def\ccname{Kopi til}%
\def\headtoname{Til}%
\def\proofname{Bevis}%
\def\glossaryname{Ordliste}%
}
\def\captionsnorwegian@norsk{%
\def\refname{Referanser}%
\def\abstractname{Sammendrag}%
\def\bibname{Bibliografi}%
\def\prefacename{Forord}%
\def\chaptername{Kapittel}%
\def\appendixname{Tillegg}%
\def\contentsname{Innhold}%
\def\listfigurename{Figurer}%
\def\listtablename{Tabeller}%
\def\indexname{Register}%
\def\figurename{Figur}%
\def\tablename{Tabell}%
%\def\thepart{}% <<<
\def\partname{Del}%
\def\pagename{Side}%
\def\seename{Se}%
\def\alsoname{Se også}%
\def\enclname{Vedlegg}%
\def\ccname{Kopi sendt}%
\def\headtoname{Til}%
\def\proofname{Bevis}%
\def\glossaryname{Ordliste}%
}
\def\captionsnorwegian{%
\csname captionsnorwegian@\norwegian@variant\endcsname%
}
\def\datenorwegian@nynorsk{%
\def\today{\number\day.~\ifcase\month\or
januar\or februar\or mars\or april\or mai\or juni\or
juli\or august\or september\or oktober\or november\or desember
\fi\space\number\year}%
}
\def\datenorwegian@norsk{%
\def\today{\number\day.~\ifcase\month\or
januar\or februar\or mars\or april\or mai\or juni\or
juli\or august\or september\or oktober\or november\or
desember\fi\space\number\year}%
}
\def\datenorwegian{%
\csname datenorwegian@\norwegian@variant\endcsname%
}
\endinput
|