diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.tex | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.tex b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.tex new file mode 100644 index 00000000000..5c382234a29 --- /dev/null +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.tex @@ -0,0 +1,27 @@ +% arara: xelatex +\documentclass[a4paper]{article} + +\usepackage{fontspec} + +\usepackage{polyglossia} + +\setotherlanguages{french,dutch} +\setmainlanguage[variant=british]{english} + +\usepackage{tracklang} + +\begin{document} + +Languages: +\ForEachTrackedLanguage{\ThisLanguage}{\ThisLanguage\space +(ISO \TwoLetterIsoLanguageCode: ``\TrackedIsoCodeFromLanguage{\TwoLetterIsoLanguageCode}{\ThisLanguage}''). } + +Dialects: \ForEachTrackedDialect{\ThisDialect}{\ThisDialect\space +(\IfTrackedLanguageHasIsoCode{\TwoLetterIsoCountryCode}{\ThisDialect}% + {ISO \TwoLetterIsoCountryCode: + ``\TrackedIsoCodeFromLanguage{\TwoLetterIsoCountryCode}{\ThisDialect}''}% + {no specific region}; +root: \TrackedLanguageFromDialect{\ThisDialect}). } + +Variants aren't detected with polyglossia. +\end{document} |