| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-georgian.ldf}[polyglossia: module for Georgian] |
| 4 |
|
| 5 |
\PolyglossiaSetup{georgian}{ |
| 6 |
bcp47=ka, |
| 7 |
bcp47-language=ka, |
| 8 |
bcp47-script=Geor, |
| 9 |
script=Georgian, |
| 10 |
scripttag=geor, |
| 11 |
langtag=KAT, |
| 12 |
hyphennames={georgian}, |
| 13 |
localnumeral=georgiannumerals, |
| 14 |
Localnumeral=georgiannumerals |
| 15 |
} |
| 16 |
|
| 17 |
% BCP-47 compliant aliases |
| 18 |
\setlanguagealias*{georgian}{ka} |
| 19 |
|
| 20 |
\newif\ifgeorgian@numerals |
| 21 |
|
| 22 |
\DeclareKeys[polyglossia/gloss/georgian] |
| 23 |
{ |
| 24 |
babelshorthands.if = georgian@babelshorthands, |
| 25 |
babelshorthands.default:n = true, |
| 26 |
oldmonthnames.if = georgian@oldmonthnames, |
| 27 |
oldmonthnames.default:n = true, |
| 28 |
numerals.choice:, |
| 29 |
numerals / arabic.code = |
| 30 |
{% |
| 31 |
\georgian@numeralsfalse |
| 32 |
\SetLanguageKeys{georgian}{bcp47-extension-u=nu-latn}% |
| 33 |
}, |
| 34 |
numerals / georgian.code = |
| 35 |
{% |
| 36 |
\georgian@numeralstrue |
| 37 |
\SetLanguageKeys{georgian}{bcp47-extension-u=nu-geor}% |
| 38 |
}, |
| 39 |
numerals.default:n = arabic |
| 40 |
} |
| 41 |
|
| 42 |
\ifsystem@babelshorthands |
| 43 |
\SetGlossOptions{georgian}{babelshorthands=true} |
| 44 |
% Register default options |
| 45 |
\InitializeGlossOptions{georgian}{babelshorthands=true,oldmonthnames=false,numerals=arabic} |
| 46 |
\else |
| 47 |
\SetGlossOptions{georgian}{babelshorthands=false} |
| 48 |
% Register default options |
| 49 |
\InitializeGlossOptions{georgian}{babelshorthands=false,oldmonthnames=false,numerals=arabic} |
| 50 |
\fi |
| 51 |
|
| 52 |
\InitializeBabelShorthands |
| 53 |
|
| 54 |
\def\georgian@shorthands{% |
| 55 |
\xpg@activate@shorthands% |
| 56 |
\def\language@group{georgian}% |
| 57 |
\declare@shorthand{georgian}{"`}{„}% |
| 58 |
\declare@shorthand{georgian}{"'}{“}% |
| 59 |
\declare@shorthand{georgian}{"<}{«}% |
| 60 |
\declare@shorthand{georgian}{">}{»}% |
| 61 |
\declare@shorthand{georgian}{""}{\xpg@invisible@break}% |
| 62 |
\declare@shorthand{georgian}{"~}{\xpg@nobreak@hyphen}% |
| 63 |
\declare@shorthand{georgian}{"=}{\xpg@breakable@hyphen}% |
| 64 |
\declare@shorthand{georgian}{"|}{\xpg@ligature@break}% |
| 65 |
\declare@shorthand{georgian}{"-}{\xpg@cyrillic@dash}% |
| 66 |
\declare@shorthand{georgian}{",}{\xpg@thinspace@allow@hyphenation@after}% |
| 67 |
} |
| 68 |
|
| 69 |
\ifx\cyrdash\undefined |
| 70 |
\def\cyrdash{\leavevmode\hbox to.8em{\textendash\hss\textendash}}% |
| 71 |
\fi |
| 72 |
|
| 73 |
\def\nogeorgian@shorthands{% |
| 74 |
\xpg@deactivate@shorthands% |
| 75 |
} |
| 76 |
|
| 77 |
\def\captionsgeorgian{% |
| 78 |
\def\prefacename{წინასიტყვაობა}% |
| 79 |
\def\refname{ლიტერატურა}% |
| 80 |
\def\abstractname{ანოტაცია}% |
| 81 |
\def\bibname{ლიტერატურა}% |
| 82 |
\def\chaptername{თავი}% |
| 83 |
\def\appendixname{დანართი}% |
| 84 |
\@ifundefined{thechapter} |
| 85 |
{\def\contentsname{შინაარსი}}% |
| 86 |
{\def\contentsname{შინაარსი}}% |
| 87 |
\let\tocname=\contentsname |
| 88 |
\def\listfigurename{სურათი}% |
| 89 |
\def\listtablename{ცხრილი}% |
| 90 |
\def\indexname{საძიებელი}% |
| 91 |
\def\authorname{სახელთა საძიებელი}% |
| 92 |
\def\figurename{სურ.}% |
| 93 |
\def\tablename{ცხრ.}% |
| 94 |
\def\partname{ნაწილი}% |
| 95 |
\def\enclname{ჩათვ.}% |
| 96 |
\def\ccname{წყარ.}% |
| 97 |
\def\headtoname{შ.}% |
| 98 |
\def\pagename{გვ.}% |
| 99 |
\def\seename{იხ.}% |
| 100 |
\def\alsoname{იხ.\ ასევე}% |
| 101 |
\def\proofname{დამტკიცება}% |
| 102 |
\def\glossaryname{ტერმინები}% |
| 103 |
}% |
| 104 |
|
| 105 |
\def\dategeorgian{% |
| 106 |
\def\today{\number\day~\ifcase\month\or |
| 107 |
იანვარი\or |
| 108 |
თებერვალი\or |
| 109 |
მარტი\or |
| 110 |
აპრილი\or |
| 111 |
მაისი\or |
| 112 |
ივნისი\or |
| 113 |
ივლისი\or |
| 114 |
აგვისტო\or |
| 115 |
სექტემბერი\or |
| 116 |
ოქტომბერი\or |
| 117 |
ნოემბერი\or |
| 118 |
დეკემბერი\fi |
| 119 |
\space \number\year~წ.}% |
| 120 |
\ifgeorgian@oldmonthnames |
| 121 |
\dategeorgian@old% |
| 122 |
\fi |
| 123 |
} |
| 124 |
|
| 125 |
\def\dategeorgian@old{% |
| 126 |
\def\today{\number\day~\ifcase\month\or |
| 127 |
აპნისი\or |
| 128 |
სურწყუნისი\or |
| 129 |
მირკანი\or |
| 130 |
იგრიკა\or |
| 131 |
ვარდობისთვე\or |
| 132 |
თიბათვე\or |
| 133 |
მკათათვე\or |
| 134 |
მარიამობისთვე\or |
| 135 |
ახალწლისა ენკენისთვე\or |
| 136 |
ღვინობისთვე\or |
| 137 |
გიორგობისთვე\or |
| 138 |
ქრისტეშობისთვე\fi |
| 139 |
\space \number\year~წ.}% |
| 140 |
} |
| 141 |
|
| 142 |
\def\georgian@numbers{% |
| 143 |
\ifgeorgian@numerals% |
| 144 |
\def\georgian@alph##1{\expandafter\georgiannumeral\expandafter{\the##1}}% |
| 145 |
\let\@alph\georgian@@alph% |
| 146 |
\fi |
| 147 |
} |
| 148 |
|
| 149 |
\def\nogeorgian@numbers{% |
| 150 |
\let\@alph\latin@alph% |
| 151 |
\let\georgian@alph\@undefined% |
| 152 |
} |
| 153 |
|
| 154 |
\def\georgian@globalnumbers{% |
| 155 |
\ifgeorgian@numerals |
| 156 |
\let\@arabic\georgiannumber% |
| 157 |
\renewcommand\thefootnote{\localnumeral*{footnote}}% |
| 158 |
\renewcommand\theequation{\localnumeral*{equation}}% |
| 159 |
\fi |
| 160 |
} |
| 161 |
|
| 162 |
% Store original definition |
| 163 |
\let\xpg@save@arabic\@arabic |
| 164 |
|
| 165 |
\def\nogeorgian@globalnumbers{ |
| 166 |
\let\@arabic\xpg@save@arabic% |
| 167 |
} |
| 168 |
|
| 169 |
\newcommand{\georgiannumerals}[2]{% |
| 170 |
\ifgeorgian@numerals |
| 171 |
\georgiannumber{#2}% |
| 172 |
\else |
| 173 |
#2% |
| 174 |
\fi% |
| 175 |
} |
| 176 |
|
| 177 |
\protected\def\georgiannumber#1{\expandafter\@georgiannumber\expandafter{\number#1}} |
| 178 |
\def\@georgiannumber#1{% |
| 179 |
\ifnum#1<\@ne\space\geor@ill@value{#1}% |
| 180 |
\else |
| 181 |
\ifnum#1<10\expandafter\geor@num@i\number#1% |
| 182 |
\else |
| 183 |
\ifnum#1<100\expandafter\geor@num@ii\number#1% |
| 184 |
\else |
| 185 |
\ifnum#1<\@m\expandafter\geor@num@iii\number#1% |
| 186 |
\else |
| 187 |
\ifnum#1<\@M\expandafter\geor@num@iv\number#1% |
| 188 |
\else |
| 189 |
\space\geor@ill@value{#1}% |
| 190 |
\fi |
| 191 |
\fi |
| 192 |
\fi |
| 193 |
\fi |
| 194 |
\fi |
| 195 |
} |
| 196 |
|
| 197 |
\let\georgiannumeral=\georgiannumber |
| 198 |
\def\geor@num@i#1{% 1--9 |
| 199 |
\ifcase#1\or ა\or ბ\or გ\or დ\or ე\or ვ\or ზ\or ჱ\or თ\fi} |
| 200 |
\def\geor@num@ii#1{% 10--90 |
| 201 |
\ifcase#1\or ი\or კ\or ლ\or მ\or ნ\or ჲ\or ო\or პ\or ჟ\fi |
| 202 |
\geor@num@i} |
| 203 |
\def\geor@num@iii#1{% 100--900 |
| 204 |
\ifcase#1\or რ\or ს\or ტ\or ჳ\or ფ\or ქ\or ღ\or ყ\or შ\fi |
| 205 |
\geor@num@ii} |
| 206 |
\def\geor@num@iv#1{% 1000--9000 |
| 207 |
\ifcase#1\or ჩ\or ც\or ძ\or წ\or ჭ\or ხ\or ჴ\or ჯ\or ჰ\fi |
| 208 |
\geor@num@iii} |
| 209 |
\def\geor@ill@value#1{\xpg@warning{Illegal value (#1) for Georgian numeral}[$#1$]} |
| 210 |
|
| 211 |
\def\noextras@georgian{% |
| 212 |
\ifgeorgian@numerals\nogeorgian@numbers\fi% |
| 213 |
\ifgeorgian@babelshorthands\nogeorgian@shorthands\fi% |
| 214 |
} |
| 215 |
|
| 216 |
\def\blockextras@georgian{% |
| 217 |
\ifgeorgian@numerals\georgian@numbers\else\nogeorgian@numbers\fi% |
| 218 |
\ifgeorgian@babelshorthands\georgian@shorthands\else\nogeorgian@shorthands\fi% |
| 219 |
} |
| 220 |
|
| 221 |
\def\inlineextras@georgian{% |
| 222 |
\ifgeorgian@babelshorthands\georgian@shorthands\else\nogeorgian@shorthands\fi% |
| 223 |
} |
| 224 |
|
| 225 |
\endinput |