Skip to content

Commit

Permalink
More Greek counters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Nov 9, 2021
1 parent ec2f3a5 commit 740fa9b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions docs/guides/locale-greek.md
Expand Up @@ -9,7 +9,7 @@ which may be a source of issues. It’s strongly recommended to use
`xetex` or `luatex`.


# As `ldf`
## As `ldf`

It supports Monotonic and Polytonic Greek, but only one at a time.
Ancient Greek is not supported. A minimal preamble with Monotonic and
Expand All @@ -19,7 +19,7 @@ Ancient Greek is not supported. A minimal preamble with Monotonic and
\usepackage[greek]{babel}
```

# As `ini`
## As `ini`

This method is available for `xetex` and `luatex` (it might work with
`pdftex`, but it has not been extensively tested). It supports
Expand Down Expand Up @@ -48,16 +48,24 @@ There is a full example in Polytonic Greek in the repository

## Counters

With the `ini` method a macro is defined, `\greeknumeral{number}`,
which converts the number to Ionian (alphabetic) form, as represented
by the original babel `greek` style, and with the same upper limit
(999999). However, the code has been rewritten from scratch, and now it’s fully
expandable. There are three macros to customize it, which are
redefined with `\renewcommand`:
With the `ini` method and if the locale has been explicitly requested,
a macro is defined, `\greeknumeral{number}`, which converts the number
to Ionian (alphabetic) form, as represented by the original babel
`greek` style, and with the same upper limit (999999). However, the
code has been rewritten from scratch, and now it’s fully expandable.
There are three macros to customize it, which are redefined with
`\renewcommand`:
* `\BabelGreekNumeralMarkerEnd`: 1 argument with the generated number >999; by default it is #1ʹ.
* `\BabelGreekNumeralMarker`: 1 argument with the whole number; by default is #1, ie, do nothing, but you may add an overline.
* `\BabelGreekNumeralMiriads`: 4 arguments, with the digits above 9999, ie, 1234 if the number is 12345678 (padded with zeroes if necessary); note by default `\greeknumeral` does not accept such large numbers, but you may redefine it to use, for example, the M representation.

In the `ini` file itself, which means they are available even if loaded
on the fly, the following ‘locale’ counters are defined (see the
explanation in the `babel` manual about `\localecounter` and
`localenumeral`): `lower.modern`, `upper.modern`, `lower.ancient`,
`upper.ancient` (in Ancient Greek, only the latter). They aren’t
directly configurable and the upper limit is 9999.

## Hyphenation

_Only luatex_. The transform `diaeresis.hyphen` removes the diaeresis
Expand Down

0 comments on commit 740fa9b

Please sign in to comment.