% Language definition file (part of polyglossia v2.3 -- 2024/09/23) % \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} \DeclareKeys[polyglossia/gloss/norwegian] { variant.choice:, variant / nynorsk.code = {% \def\norwegian@variant{nynorsk}% \SetLanguageKeys{norwegian}{langtag=NYN,babelname=nynorsk,bcp47=nn,bcp47-language=nn}% \SetupLatinPolyglossiaFont{norwegian}% }, variant / bokmal.code = {% \def\norwegian@variant{norsk}% \SetLanguageKeys{norwegian}{langtag=NOR,babelname=norsk,bcp47=nb,bcp47-language=nb}% \SetupLatinPolyglossiaFont{norwegian}% }, variant.default:n = nynorsk, variant/unknown.code = \xpg@warning{Unknown norwegian variant `#1'} } % Register default options \InitializeGlossOptions{norwegian}{variant=nynorsk} \def\norwegian@language{% \SetupPolyglossiaLangPatterns{\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