Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Warang Citi numeral system
- Bhaiksuki numeral system
- Tamil numeral system
- Pahawh Hmong numeral system
### Changed
- `README.md` updated
## [1.3] - 2026-01-28
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ It can automatically detect mixed numeral formats in a piece of text and convert
- Warang Citi
- Bhaiksuki
- Tamil
- Pahawh Hmong

> [!NOTE]
> XNum performs digit-by-digit conversion using positional notation.
Expand Down
1 change: 1 addition & 0 deletions tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
NumeralSystem.WARANG_CITI: "𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩",
NumeralSystem.BHAIKSUKI: "𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙",
NumeralSystem.TAMIL: "௦௧௨௩௪௫௬௭௮௯",
NumeralSystem.PAHAWH_HMONG: "𖭐𖭑𖭒𖭓𖭔𖭕𖭖𖭗𖭘𖭙",
}


Expand Down
3 changes: 3 additions & 0 deletions xnum/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
WARANG_CITI_DIGITS = ['𑣠', '𑣡', '𑣢', '𑣣', '𑣤', '𑣥', '𑣦', '𑣧', '𑣨', '𑣩']
BHAIKSUKI_DIGITS = ['𑱐', '𑱑', '𑱒', '𑱓', '𑱔', '𑱕', '𑱖', '𑱗', '𑱘', '𑱙']
TAMIL_DIGITS = ['௦', '௧', '௨', '௩', '௪', '௫', '௬', '௭', '௮', '௯']
PAHAWH_HMONG_DIGITS = ['𖭐', '𖭑', '𖭒', '𖭓', '𖭔', '𖭕', '𖭖', '𖭗', '𖭘', '𖭙']

NUMERAL_MAPS = {
"english": ENGLISH_DIGITS,
Expand Down Expand Up @@ -152,6 +153,7 @@
"warang_citi": WARANG_CITI_DIGITS,
"bhaiksuki": BHAIKSUKI_DIGITS,
"tamil": TAMIL_DIGITS,
"pahawh_hmong": PAHAWH_HMONG_DIGITS,
}

ALL_DIGIT_MAPS = {}
Expand Down Expand Up @@ -236,6 +238,7 @@ class NumeralSystem(Enum):
WARANG_CITI = "warang_citi"
BHAIKSUKI = "bhaiksuki"
TAMIL = "tamil"
PAHAWH_HMONG = "pahawh_hmong"
AUTO = "auto"


Expand Down