|
|
\ProvidesFile{gloss-nko.ldf}[Polyglossia: module for N’Ko v0.1 2013/05/19]
|
|
|
\PolyglossiaSetup{nko}{%
|
|
|
bcp47=nko,
|
|
|
script=N'ko,
|
|
|
scripttag=nko~,
|
|
|
langtag=NKO,
|
|
|
fontsetup=true,
|
|
|
hyphennames={nohyphenation},
|
|
|
direction=RL,
|
|
|
localnumeral=nkonumerals
|
|
|
}
|
|
|
|
|
|
\RequirePackage{nkonumbers}%
|
|
|
|
|
|
\newcommand{\nkonumerals}[2]{\nkonumber{#2}}
|
|
|
|
|
|
\def\captionsnko{%
|
|
|
\def\prefacename{ߢߍߛߓߍ}%
|
|
|
\def\refname{ߞߐߡߊߛߙߋ}%
|
|
|
\def\abstractname{ߓߊߕߐߡߐ߲}%
|
|
|
\def\bibname{ߟߍߙߊߥߙߍߟߐ߲߲}%
|
|
|
\def\chaptername{ߛߌ߰ߘߊ}%
|
|
|
\def\appendixname{ߘߋ߬ߙߋ}%
|
|
|
\def\contentsname{ߞߣߐߘߐ}%
|
|
|
\def\listfigurename{ߢߊ ߟߎ߬ ߛߙߍߘߍ}%
|
|
|
\def\listtablename{ߦߌ߬ߘߊ߬ߥߟߊ ߟߎ߬ ߛߙߍߘߍ}%
|
|
|
\def\indexname{ߛߙߍߘߍ}%
|
|
|
\def\figurename{ߢߊ}%
|
|
|
\def\tablename{ߦߌ߬ߘߊ߬ߥߟߊ}%
|
|
|
\def\partname{ߛߌ߰ߘߊ߬ߙߋ߲}%
|
|
|
\def\enclname{ߝߍ߬ߕߊ}%
|
|
|
\def\ccname{ߓߊ ߘߏ߫ ߘߌ߫}%
|
|
|
\def\headtoname{ߞߊߕߙߍ߬}%
|
|
|
\def\pagename{ߞߐߜߍ}%
|
|
|
\def\seename{ߡߊߝߟߍ߫}%
|
|
|
\def\alsoname{ߝߟߍߡߊߛߊ߬ߦߌ߬}%
|
|
|
\def\proofname{ߦߌ߬ߘߊ߬ߞߏ}%
|
|
|
\def\glossaryname{ߞߘߐߝߐߟߊ߲}%
|
|
|
}%
|
|
|
|
|
|
% In n'ko, this is an example of date :
|
|
|
% ߂߀߁߃ ߞߏ߲ߞߏߜߍ ߕߟߋ߬ ߁߈ (RTL)
|
|
|
% ( 18 February 2013 )
|
|
|
% The word "ߕߟߋ߬" is mandatory between month name and day number.
|
|
|
% Replace "ߕߟߋ߬" by "ߕߋ߬ߟߋ߫" if and only if day = 2 or day = 3 or day = 9
|
|
|
% or (day >= 20 and day <= 29).
|
|
|
|
|
|
\newcommand*\nkodayprefix[1]{%
|
|
|
\ifnum\numexpr#1=2 ߕߋ߬ߟߋ߫\else%
|
|
|
\ifnum\numexpr#1=3 ߕߋ߬ߟߋ߫\else%
|
|
|
\ifnum\numexpr#1=9 ߕߋ߬ߟߋ߫\else%
|
|
|
\ifnum\numexpr#1>19\ifnum\numexpr#1<30 ߕߋ߬ߟߋ߫\else ߕߟߋ߬\fi\else ߕߟߋ߬\fi%
|
|
|
\fi%
|
|
|
\fi%
|
|
|
\fi%
|
|
|
}
|
|
|
|
|
|
\newcommand*\nkoday[1]{%
|
|
|
% If day = 1, put above "߁", NKO_COMBINING_SHORT_RISING_TONE
|
|
|
\ifnum\numexpr#1=1 ߁߭\else%
|
|
|
\nkonumber{#1}
|
|
|
\fi
|
|
|
}
|
|
|
|
|
|
\def\datenko{%
|
|
|
\def\today{%
|
|
|
\nkonumber{\year}\space
|
|
|
\ifcase\month
|
|
|
\or ߓߌ߲ߠߊߥߎߟߋ߲%
|
|
|
\or ߞߏ߲ߞߏߜߍ%
|
|
|
\or ߕߙߊߓߊ%
|
|
|
\or ߞߏ߲ߞߏߘߌ߬ߓߌ%
|
|
|
\or ߘߓߊ߬ߕߊ%
|
|
|
\or ߥߊ߬ߛߌߥߊ߬ߙߊ%
|
|
|
\or ߞߊ߬ߙߌߝߐ߭%
|
|
|
\or ߘߓߊ߬ߓߌߟߊ%
|
|
|
\or ߕߎߟߊߝߌ߲%
|
|
|
\or ߞߏ߲ߓߌߕߌ߮%
|
|
|
\or ߣߍߣߍߓߊ%
|
|
|
\or ߞߏ߬ߟߌ߲߬ߞߏߟߌ߲\fi
|
|
|
\space\nkodayprefix{\number\day}
|
|
|
\space\nkoday{\day}
|
|
|
}%
|
|
|
}%
|
|
|
|
|
|
\endinput
|
|
|
|