From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 .../tex-locale/samples/sample-locale-xeltx.tex     | 109 +++++++++++++++++++++
 1 file changed, 109 insertions(+)
 create mode 100644 macros/generic/tex-locale/samples/sample-locale-xeltx.tex

(limited to 'macros/generic/tex-locale/samples/sample-locale-xeltx.tex')

diff --git a/macros/generic/tex-locale/samples/sample-locale-xeltx.tex b/macros/generic/tex-locale/samples/sample-locale-xeltx.tex
new file mode 100644
index 0000000000..8f5ce375ef
--- /dev/null
+++ b/macros/generic/tex-locale/samples/sample-locale-xeltx.tex
@@ -0,0 +1,109 @@
+% arara: xelatex
+
+% 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}
+
+\begin{document}
+
+\section{General Information}
+
+OS name: \LocaleOSname.
+OS version: \texttt{\LocaleOSversion}.
+OS arch: \LocaleOSarch.
+
+PDF now: \texttt{\LocaleNowStamp}.
+Tag: \LocaleOStag.
+
+\ifx\LocaleMainFile\empty
+\else
+  File \texttt{\LocaleMainFile} last modified: 
+  \texttt{\LocaleFileMod}.
+\fi
+
+Main locale: \texttt{\LocaleMain} (\texttt{\LocaleMainDialect}).
+
+\newcount\tmpctr
+
+\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}}).
+
+  Days of the week:%
+  \tmpctr=0\relax
+  \loop
+   \space\LocaleDayName{\thisdialect}{\tmpctr}%
+   \advance\tmpctr by 1
+  \ifnum\tmpctr<7
+  \repeat.
+
+  Short days of the week:%
+  \tmpctr=0\relax
+  \loop
+   \space\LocaleShortDayName{\thisdialect}{\tmpctr}%
+   \advance\tmpctr by 1
+  \ifnum\tmpctr<7
+  \repeat.
+
+  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: 
+  \LocaleCurrencySymbol{\thisdialect}
+  (\LocaleCurrencyTeXSymbol{\thisdialect}).
+
+}
+\end{document}
-- 
cgit v1.2.3

