Debian Codegraph @

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

raw
1 % Language definition file (part of polyglossia v2.10 -- 2026/04/18)
2 %
3 \ProvidesFile{gloss-nko.ldf}[Polyglossia: module for N’Ko]
4 \PolyglossiaSetup{nko}{%
5 bcp47=nko,
6 bcp47-language=nko,
7 bcp47-script=Nkoo,
8 script=N'ko,
9 scripttag=nko~,
10 langtag=NKO,
11 hyphennames={nohyphenation},
12 direction=RL,
13 localnumeral=nkonumerals,
14 Localnumeral=nkonumerals
15 }
16
17 \RequireBidi
18 \RequirePackage{nkonumbers}%
19
20 \newcommand{\nkonumerals}[2]{\nkonumber{#2}}
21
22 \def\captionsnko{%
23 \def\prefacename{ߢߍߛߓߍ}%
24 \def\refname{ߞߐߡߊߛߙߋ}%
25 \def\abstractname{ߓߊߕߐߡߐ߲}%
26 \def\bibname{ߟߍߙߊߥߙߍߟߐ߲߲}%
27 \def\chaptername{ߛߌ߰ߘߊ}%
28 \def\appendixname{ߘߋ߬ߙߋ}%
29 \def\contentsname{ߞߣߐߘߐ}%
30 \def\listfigurename{ߢߊ ߟߎ߬ ߛߙߍߘߍ}%
31 \def\listtablename{ߦߌ߬ߘߊ߬ߥߟߊ ߟߎ߬ ߛߙߍߘߍ}%
32 \def\indexname{ߛߙߍߘߍ}%
33 \def\figurename{ߢߊ}%
34 \def\tablename{ߦߌ߬ߘߊ߬ߥߟߊ}%
35 \def\partname{ߛߌ߰ߘߊ߬ߙߋ߲}%
36 \def\enclname{ߝߍ߬ߕߊ}%
37 \def\ccname{ߓߊ ߘߏ߫ ߘߌ߫}%
38 \def\headtoname{ߞߊߕߙߍ߬}%
39 \def\pagename{ߞߐߜߍ}%
40 \def\seename{ߡߊߝߟߍ߫}%
41 \def\alsoname{ߝߟߍߡߊߛߊ߬ߦߌ߬}%
42 \def\proofname{ߦߌ߬ߘߊ߬ߞߏ}%
43 \def\glossaryname{ߞߘߐߝߐߟߊ߲}%
44 }%
45
46 % In n'ko, this is an example of date :
47 % ߂߀߁߃ ߞߏ߲ߞߏߜߍ ߕߟߋ߬ ߁߈ (RTL)
48 % ( 18 February 2013 )
49 % The word "ߕߟߋ߬" is mandatory between month name and day number.
50 % Replace "ߕߟߋ߬" by "ߕߋ߬ߟߋ߫" if and only if day = 2 or day = 3 or day = 9
51 % or (day >= 20 and day <= 29).
52
53 \newcommand*\nkodayprefix[1]{%
54 \ifnum\numexpr#1=2 ߕߋ߬ߟߋ߫\else%
55 \ifnum\numexpr#1=3 ߕߋ߬ߟߋ߫\else%
56 \ifnum\numexpr#1=9 ߕߋ߬ߟߋ߫\else%
57 \ifnum\numexpr#1>19\ifnum\numexpr#1<30 ߕߋ߬ߟߋ߫\else ߕߟߋ߬\fi\else ߕߟߋ߬\fi%
58 \fi%
59 \fi%
60 \fi%
61 }
62
63 \newcommand*\nkoday[1]{%
64 % If day = 1, put above "߁", NKO_COMBINING_SHORT_RISING_TONE
65 \ifnum\numexpr#1=1 ߁߭\else%
66 \nkonumber{#1}
67 \fi
68 }
69
70 \def\datenko{%
71 \def\today{%
72 \nkonumber{\year}\space
73 \ifcase\month
74 \or ߓߌ߲ߠߊߥߎߟߋ߲%
75 \or ߞߏ߲ߞߏߜߍ%
76 \or ߕߙߊߓߊ%
77 \or ߞߏ߲ߞߏߘߌ߬ߓߌ%
78 \or ߘߓߊ߬ߕߊ%
79 \or ߥߊ߬ߛߌߥߊ߬ߙߊ%
80 \or ߞߊ߬ߙߌߝߐ߭%
81 \or ߘߓߊ߬ߓߌߟߊ%
82 \or ߕߎߟߊߝߌ߲%
83 \or ߞߏ߲ߓߌߕߌ߮%
84 \or ߣߍߣߍߓߊ%
85 \or ߞߏ߬ߟߌ߲߬ߞߏߟߌ߲\fi
86 \space\nkodayprefix{\number\day}
87 \space\nkoday{\day}
88 }%
89 }%
90
91 \endinput