Numerals Python open

kanji2number cannot parse 萬, the daiji form of 万 (Kanjize)

kanji2number cannot parse 萬 (daiji form of 万)

Kanjize · nagataaaas/Kanjize

Symptom

kanji2number cannot parse 萬, the daiji (大字) traditional form of 万 (10,000), so legal and financial documents that use 大字 numerals fail to convert.

Minimal repro
from kanjize import kanji2number
kanji2number('萬')  # not recognized as 10000
Fix

Map 萬 to 万 (10,000) in kanji2number.

Fix PR → #kanjize-daiji-man

Also in: Python

← all 93 entries