[latex3-commits] [git/LaTeX3-latex3-babel] docs: Chinese counters. (de5b865)

Javier email at dante.de
Sun Jul 4 13:04:13 CEST 2021


Repository : https://github.com/latex3/babel
On branch  : docs
Link       : https://github.com/latex3/babel/commit/de5b86507bc3f6d0f63db89bb6cf06861f97fdce

>---------------------------------------------------------------

commit de5b86507bc3f6d0f63db89bb6cf06861f97fdce
Author: Javier <email at localhost>
Date:   Sun Jul 4 13:04:13 2021 +0200

    Chinese counters.


>---------------------------------------------------------------

de5b86507bc3f6d0f63db89bb6cf06861f97fdce
 docs/guides/locale-chinese.md | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/docs/guides/locale-chinese.md b/docs/guides/locale-chinese.md
index 2fb66bf..6326208 100644
--- a/docs/guides/locale-chinese.md
+++ b/docs/guides/locale-chinese.md
@@ -53,4 +53,28 @@ For the meaning of these codes, see the [Unicode Standard Annex #14:
 Line Breaking
 Properties](https://www.unicode.org/reports/tr14/).
 
+## Counters
+
+With `luatex` there are two ways to map Arabic to
+Chinese numerals, passed as option to `\babelprovide`:
+* `maparabic` does it at the TeX level, by redefining `\arabic`. Note
+  form written to the auxiliary files is the converted one. It works
+  with `xetex`, too.
+* `mapdigits` does it at the engine level. This is
+  usually the preferred method.
+  
+To perform this conversión, use the following settings:
+```tex
+\usepackage[chinese, provide=*]{babel}
+\babelprovide[mapdigits]{chinese}  % or alternatively maparabic
+```
+
+In addition, the following counters are predefined:
+
+* `cjk-earthly-branch` ▸ 子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥
+* `cjk-heavenly-stem ` ▸ 甲 乙 丙 丁 戊 己 庚 辛 壬 癸
+* `fullwidth.lower.alpha` ▸ a b c d e f g h i j k l m n o p q r s t u v w x y z
+* `fullwidth.upper.alpha` ▸ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
+
+
 





More information about the latex3-commits mailing list.