| 1 |
# English Language Module for datatool v3.0+ (datatool-english) |
| 2 |
|
| 3 |
Version 1.1 (2025-03-12) |
| 4 |
|
| 5 |
Author: Nicola L. C. Talbot [dickimaw-books.com](https://www.dickimaw-books.com/) |
| 6 |
|
| 7 |
Licence: LPPL |
| 8 |
|
| 9 |
Home Page: https://github.com/nlct/datatool-english |
| 10 |
|
| 11 |
Required Packages: |
| 12 |
[datatool](https://ctan.org/pkg/datatool) (3.0+), |
| 13 |
[tracklang](https://ctan.org/pkg/tracklang) (1.6.4+) |
| 14 |
|
| 15 |
Provides English language localisation support for |
| 16 |
the `datatool` package (v3.0+). Encoding support for UTF-8 and ISO-8859-1 |
| 17 |
(Latin 1). Any other encoding will be treated as US-ASCII. |
| 18 |
The `*.ldf` files should all be placed on TeX's path. |
| 19 |
|
| 20 |
These files don't require any explicit loading. They will |
| 21 |
automatically be input by `datatool-base.sty` (or relevant |
| 22 |
supplementary package) if they are found and required by the |
| 23 |
`tracklang` localisation settings. See the `datatool` and `tracklang` user |
| 24 |
manuals for further details. |
| 25 |
|
| 26 |
This bundle is specific to language support or particular |
| 27 |
language+region combinations where the region default depends on the |
| 28 |
language. Region files (such as `datatool-GB.ldf`) are provided |
| 29 |
with `datatool-regions` which needs to be installed separately. This |
| 30 |
separation allows arbitrary mix of language and region. |
| 31 |
|
| 32 |
Example: |
| 33 |
|
| 34 |
\documentclass[en-GB]{article} |
| 35 |
\usepackage{datatool-base}% v3.0 |
| 36 |
\newcommand{\mylist}{élan,elephant,élite,elk} |
| 37 |
\begin{document} |
| 38 |
Currency: \DTLdecimaltocurrency{1234.56}{\result}\result. |
| 39 |
|
| 40 |
Original list: \DTLformatlist{\mylist}. |
| 41 |
|
| 42 |
\DTLsortwordlist{\mylist}{\DTLsortwordcasehandler} |
| 43 |
Sorted list: \DTLformatlist{\mylist}. |
| 44 |
\end{document} |
| 45 |
|
| 46 |
If `datatool-english` is correctly installed, the result will be: |
| 47 |
|
| 48 |
> Currency: £1,234.56. |
| 49 |
> Original list: élan, elephant, élite and elk. |
| 50 |
> Sorted list: élan, elephant, élite and elk. |
| 51 |
|
| 52 |
Otherwise the result will be: |
| 53 |
|
| 54 |
> Currency: £1,234.56. |
| 55 |
> Original list: élan, elephant, élite & elk. |
| 56 |
> Sorted list: elephant, elk, élan & élite. |
| 57 |
|
| 58 |
(This assumes the region file `datatool-GB.ldf` provided with |
| 59 |
`datatool-regions` is also installed.) |
| 60 |
|
| 61 |
The language doesn't need to be an official language for the region. |
| 62 |
For example: |
| 63 |
|
| 64 |
\documentclass{article} |
| 65 |
\usepackage[locales={en-BE}]{datatool-base}% v3.0 |
| 66 |
\newcommand{\mylist}{élan,elephant,élite,elk} |
| 67 |
\begin{document} |
| 68 |
Currency: \DTLdecimaltocurrency{1234.56}{\result}\result. |
| 69 |
|
| 70 |
Original list: \DTLformatlist{\mylist}. |
| 71 |
|
| 72 |
\DTLsortwordlist{\mylist}{\DTLsortwordcasehandler} |
| 73 |
Sorted list: \DTLformatlist{\mylist}. |
| 74 |
\end{document} |
| 75 |
|
| 76 |
If both `datatool-english.ldf` (provided with this bundle) and |
| 77 |
`datatool-BE.ldf` (provided with `datatool-regions`) are installed, |
| 78 |
the result will be: |
| 79 |
|
| 80 |
> Currency: 1.234,56€. |
| 81 |
> Original list: élan, elephant, élite and elk. |
| 82 |
> Sorted list: élan, elephant, élite and elk. |
| 83 |
|
| 84 |
|
| 85 |
See also: |
| 86 |
|
| 87 |
- [`datatool-regions` (GitHub)](https://github.com/nlct/datatool-regions) |
| 88 |
- [Localisation with datatool v3.0+](https://www.dickimaw-books.com/latex/tracklang/datatool-locale.shtml). |
| 89 |
|
| 90 |
This bundle also includes limited support for Old English |
| 91 |
(Anglo-Saxon) mainly to provide an example for a language that has |
| 92 |
multiple scripts (in this case, Latin and Runic) or for a language |
| 93 |
that has an extended Latin or non-Latin script. The language codes |
| 94 |
are `ang-Latn` for Anglo-Saxon Latin Script and `ang-Runr` for |
| 95 |
Anglo-Saxon Runic Script. There's only support for UTF-8. |
| 96 |
|
| 97 |
This material is subject to the LaTeX Project Public License. |
| 98 |
See http://www.ctan.org/license/lppl1.3 for the details of that |
| 99 |
license. |