40 lines
1.7 KiB
Text
40 lines
1.7 KiB
Text
# Universal CJK section-numeral data (pair-14 §4 + addendum-A): the ONE source of truth for the chapter/
|
||
# section numeral inventory shared by the ingest chapter-splitter (章节節回 headers) and the chunker heading
|
||
# rule. A linguistic CONSTANT (the CJK numeral system does not vary by book/pair), so it is embedded in the
|
||
# language-data package and available even to a book with NO langpack (the ja→ru golden splits 第X章 here).
|
||
# `category<TAB>rune[<TAB>value]`. digit/unit carry a value; zero/chapter_unit are membership only.
|
||
digit 一 1
|
||
digit 二 2
|
||
digit 两 2
|
||
digit 兩 2
|
||
digit 三 3
|
||
digit 四 4
|
||
digit 五 5
|
||
digit 六 6
|
||
digit 七 7
|
||
digit 八 8
|
||
digit 九 9
|
||
unit 十 10
|
||
unit 百 100
|
||
unit 千 1000
|
||
zero 〇
|
||
zero 零
|
||
# chapter_marker: the rune that OPENS a section header (第N章). Membership only; the ingest chapter regex
|
||
# and the chunker heading path build their character class from this, so the marker is data like the
|
||
# numerals beside it rather than a literal in two Go files.
|
||
chapter_marker 第
|
||
# chapter_unit: the section-level markers auto-detected in a source txt (第N章/节/節/回/話). 卷 (volume) is
|
||
# deliberately excluded (coarser than a chapter). 話 is the DOMINANT unit of Japanese webnovels (第1話) —
|
||
# without it a ja .txt with 話 chapters silently became ONE chapter (D39.60 §3.1).
|
||
chapter_unit 章
|
||
chapter_unit 节
|
||
chapter_unit 節
|
||
chapter_unit 回
|
||
chapter_unit 話
|
||
# magnitude: the myriad-scale BIG units (万/億/兆) → value, for the number-magnitude gate (cheapgates). ONE
|
||
# source with digit/unit above — the gate's CJK numeral parser reads this section instead of its own switch.
|
||
magnitude 万 10000
|
||
magnitude 萬 10000
|
||
magnitude 億 100000000
|
||
magnitude 亿 100000000
|
||
magnitude 兆 1000000000000
|