blob: 4c5050bfc798ae50e45f17223e0515bf18b378ed (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
% arara: pdflatex
% If texosquery.cfg is correctly set up to use texosquery-jre8
% this should work in restricted mode. The texosquery.cfg
% default settings require --shell-escape
\documentclass{article}
\usepackage{tex-locale}
\title{Sample Document Illustrating the tex-locale package}
\author{Nicola Talbot}
\begin{document}
\maketitle
texosquery version: \texttt{\TeXOSInvokerName\
\csname ver@texosquery.tex\endcsname}.
OS name: \LocaleOSname.
OS version: \LocaleOSversion.
OS arch: \LocaleOSarch.
PDF now: \LocaleNowStamp.
(Compare \verb|\pdfcreationdate|: \pdfcreationdate.)
Tag: \LocaleOStag.
Codeset: \LocaleOScodeset.
\ifx\LocaleMainFile\empty
\else
File \texttt{\LocaleMainFile} last modified:
\texttt{\LocaleFileMod}.
\fi
Main locale: \texttt{\LocaleMain} (\texttt{\LocaleMainDialect}).
\ForEachTrackedDialect{\thisdialect}{%
\section{\LocaleLanguageTag{\thisdialect}}
Dialect label: \texttt{\thisdialect}.
Language name: \LocaleLanguageNativeName{\thisdialect}
(\LocaleLanguageName{\thisdialect}).
\LocaleIfHasRegionName{\thisdialect}%
{%
Region name: \LocaleRegionNativeName{\thisdialect}
(\LocaleRegionName{\thisdialect})%
}%
{No region name}.
\LocaleIfHasVariantName{\thisdialect}%
{%
Variant name: \LocaleVariantNativeName{\thisdialect}
(\LocaleVariantName{\thisdialect})%
}%
{No variant name}.
Full date: \LocaleFullDate{\thisdialect}.
Long date: \LocaleLongDate{\thisdialect}.
Medium date: \LocaleMediumDate{\thisdialect}.
Short date: \LocaleShortDate{\thisdialect}.
First day of week: \LocaleFirstDayIndex{\thisdialect}
(\LocaleDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}
/ \LocaleShortDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}).
Current month: \LocaleMonthName{\thisdialect}{\month} /
\LocaleShortMonthName{\thisdialect}{\month}.
Standalone (display form) first day of week:
\LocaleStandaloneDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}
/ \LocaleStandaloneShortDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}.
Standalone (display form) current month:
\LocaleStandaloneMonthName{\thisdialect}{\month} /
\LocaleStandaloneShortMonthName{\thisdialect}{\month}.
Full time: \LocaleFullTime{\thisdialect}.
Long time: \LocaleLongTime{\thisdialect}.
Medium time: \LocaleMediumTime{\thisdialect}.
Short time: \LocaleShortTime{\thisdialect}.
Numeric: \LocaleNumericGroupSep{\thisdialect} (group sep)
\LocaleNumericDecimalSep{\thisdialect} (decimal sep)
\LocaleNumericMonetarySep{\thisdialect} (monetary sep)
\LocaleNumericExponent{\thisdialect} (exponent symbol).
\LocaleNumericPercent{\thisdialect} (percent symbol).
\LocaleNumericPermill{\thisdialect} (permill symbol).
\LocaleIfNumericUsesGroup{\thisdialect}{Uses}{Doesn't use}
numeric group separator.
Currency label:
\LocaleCurrencyLabel{\thisdialect}
(\LocaleCurrencyRegionalLabel{\thisdialect}).
Currency symbol:
\LocaleCurrencyTeXSymbol{\thisdialect}.
}
\end{document}
|