blob: e7039a1ea26687eeb3c4528b77fde54c9bf1f6f1 (
plain)
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
|
% arara: xelatex: {shell: on}
\documentclass{article}
\usepackage[main={sr-Cyrl-RS},other={en-GB},date=full]{tex-locale}
\LocaleSupportPackageCase
{\newcommand{\textenglish}[1]{\foreignlanguage{british}{#1}}}% babel
{% polyglossia
\setmainfont{Liberation Serif}
\setmonofont{Liberation Mono}
\newfontfamily\cyrillicfont{Liberation Serif}
\newfontfamily\cyrillicfonttt{Liberation Mono}
}
{\newcommand{\textenglish}[1]{#1}}% none
\newcount\tmpctr
\newcommand{\test}{%
\section{\textenglish{Document language} \languagename}
\subsection{\textenglish{datetime2 commands}}
\textenglish{\texttt{\string\today}}: \today.
\textenglish{\texttt{\string\DTMcurrenttime}}: \DTMcurrenttime.
\subsection{\textenglish{Locale Details}}
\textenglish{Language:} \CurrentLocaleLanguageNativeName.
\textenglish{Region:} \CurrentLocaleRegionNativeName.
\subsection{\textenglish{Dates and Times (Obtained from Java)}}
\textenglish{Today:} \CurrentLocaleDate.
\textenglish{Time:} \CurrentLocaleTime.
\textenglish{First day of the week:}
\CurrentLocaleStandaloneDayName{\CurrentLocaleFirstDayIndex}
(\textenglish{index:} \CurrentLocaleFirstDayIndex).
\textenglish{Current month:}
\CurrentLocaleStandaloneMonthName{\month}.
\par
\textenglish{Days of the week:}%
\tmpctr=1\relax
\loop
\space
\CurrentLocaleStandaloneDayName
{\CurrentLocaleDayIndexFromRegion{\tmpctr}}%
\advance\tmpctr by 1
\ifnum\tmpctr<8
\repeat
.
\subsection{\textenglish{Numeric}}
\textenglish{Numeric symbols:}
\CurrentLocaleNumericGroupSep\ \textenglish{(group separator)}
\CurrentLocaleDecimalSep\ \textenglish{(decimal separator)}
\CurrentLocaleMonetarySep\ \textenglish{(monetary separator)}
\CurrentLocaleExponent\ \textenglish{(exponent)}
\CurrentLocalePercent\ \textenglish{(percent)}
\CurrentLocalePermill\ \textenglish{(per mill).}
\par
\textenglish{Uses numeric group separator:
\CurrentLocaleIfNumericUsesGroup{yes}{no}.}
\par
\textenglish{Currency:} \CurrentLocaleCurrency
}
\begin{document}
\test
\end{document}
|