You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add 亿级 support and strip commas for Chinese TN (#223, #284)
- Extend Cardinal number FST to support 亿级 (9-13 digit numbers)
using two 4-digit blocks to prevent ambiguity with shorter numbers
- Strip commas between digits in Measure rule for western-formatted
numbers like 299,792,458米
- Refactor Cardinal: extract four_nonzero/four_any helpers, remove
redundant add_weight and rmpunct from number patterns
Examples:
299,792,458米 => 两亿九千九百七十九万二千四百五十八米
100000001 => 一亿零一
1,000,000米 => 一百万米
0 commit comments