Skip to content
Merged

Ahom #169

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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Ahom numeral system
## [1.3] - 2026-01-28
### Added
- English full stop mode
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ It can automatically detect mixed numeral formats in a piece of text and convert
- Malayalam
- Brahmi
- Myanmar Tai Laing
- Ahom

## Issues & bug reports

Expand Down
1 change: 1 addition & 0 deletions tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
NumeralSystem.MALAYALAM: "൦൧൨൩൪൫൬൭൮൯",
NumeralSystem.BRAHMI: "𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯",
NumeralSystem.MYANMAR_TAI_LAING: "꧰꧱꧲꧳꧴꧵꧶꧷꧸꧹",
NumeralSystem.AHOM: "𑜰𑜱𑜲𑜳𑜴𑜵𑜶𑜷𑜸𑜹",
}


Expand Down
3 changes: 3 additions & 0 deletions xnum/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
MALAYALAM_DIGITS = ['൦', '൧', '൨', '൩', '൪', '൫', '൬', '൭', '൮', '൯']
BRAHMI_DIGITS = ['𑁦', '𑁧', '𑁨', '𑁩', '𑁪', '𑁫', '𑁬', '𑁭', '𑁮', '𑁯']
MYANMAR_TAI_LAING_DIGITS = ['꧰','꧱','꧲','꧳','꧴','꧵','꧶','꧷','꧸','꧹']
AHOM_DIGITS = ['𑜰', '𑜱', '𑜲', '𑜳', '𑜴', '𑜵', '𑜶', '𑜷', '𑜸', '𑜹']

NUMERAL_MAPS = {
"english": ENGLISH_DIGITS,
Expand Down Expand Up @@ -144,6 +145,7 @@
"malayalam": MALAYALAM_DIGITS,
"brahmi": BRAHMI_DIGITS,
"myanmar_tai_laing": MYANMAR_TAI_LAING_DIGITS,
"ahom": AHOM_DIGITS
}

ALL_DIGIT_MAPS = {}
Expand Down Expand Up @@ -224,6 +226,7 @@ class NumeralSystem(Enum):
MALAYALAM = "malayalam"
BRAHMI = "brahmi"
MYANMAR_TAI_LAING = "myanmar_tai_laing"
AHOM = "ahom"
AUTO = "auto"


Expand Down