summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.tex
blob: 82c07ab69a9749615cb05a54c5204f0512236d73 (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
% arara: pdftex

\catcode `\@11\relax
\input tracklang
\catcode `\@12\relax

\TrackPredefinedDialect{british}
\TrackPredefinedDialect{american}
\TrackPredefinedDialect{canadian}
\TrackPredefinedDialect{canadien}
\TrackPredefinedDialect{belgique}

Dialect Regions:

\ForEachTrackedDialect{\ThisDialect}{\ThisDialect:
 \TrackedIsoCodeFromLanguage{\TwoLetterIsoCountryCode}{\ThisDialect}. }

Language Codes:

\ForEachTrackedLanguage{\ThisLanguage}{\ThisLanguage:
 \TrackedIsoCodeFromLanguage{\TwoLetterIsoLanguageCode}{\ThisLanguage}. }

\ForEachTrackedDialect{\ThisDialect}
{%
  \IfTrackedLanguageFileExists{\ThisDialect}{animals-}{.ldf}%
  {Found ``animals-\CurrentTrackedTag.ldf''\par}%
  {No file found for dialect ``\ThisDialect''\par}
}

\bye