diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e26151..9d45cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Ahom numeral system - Warang Citi numeral system +- Bhaiksuki numeral system ## [1.3] - 2026-01-28 ### Added - English full stop mode diff --git a/README.md b/README.md index 6cd2b2d..133198e 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ It can automatically detect mixed numeral formats in a piece of text and convert - Myanmar Tai Laing - Ahom - Warang Citi +- Bhaiksuki ## Issues & bug reports diff --git a/tests/test_conversion.py b/tests/test_conversion.py index 96b5756..42cf42c 100644 --- a/tests/test_conversion.py +++ b/tests/test_conversion.py @@ -91,6 +91,7 @@ NumeralSystem.MYANMAR_TAI_LAING: "꧰꧱꧲꧳꧴꧵꧶꧷꧸꧹", NumeralSystem.AHOM: "𑜰𑜱𑜲𑜳𑜴𑜵𑜶𑜷𑜸𑜹", NumeralSystem.WARANG_CITI: "𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩", + NumeralSystem.BHAIKSUKI: "𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙", } diff --git a/xnum/params.py b/xnum/params.py index 72879dc..d06aa27 100644 --- a/xnum/params.py +++ b/xnum/params.py @@ -75,6 +75,7 @@ MYANMAR_TAI_LAING_DIGITS = ['꧰', '꧱', '꧲', '꧳', '꧴', '꧵', '꧶', '꧷', '꧸', '꧹'] AHOM_DIGITS = ['𑜰', '𑜱', '𑜲', '𑜳', '𑜴', '𑜵', '𑜶', '𑜷', '𑜸', '𑜹'] WARANG_CITI_DIGITS = ['𑣠', '𑣡', '𑣢', '𑣣', '𑣤', '𑣥', '𑣦', '𑣧', '𑣨', '𑣩'] +BHAIKSUKI_DIGITS = ['𑱐', '𑱑', '𑱒', '𑱓', '𑱔', '𑱕', '𑱖', '𑱗', '𑱘', '𑱙'] NUMERAL_MAPS = { "english": ENGLISH_DIGITS, @@ -148,6 +149,7 @@ "myanmar_tai_laing": MYANMAR_TAI_LAING_DIGITS, "ahom": AHOM_DIGITS, "warang_citi": WARANG_CITI_DIGITS, + "bhaiksuki": BHAIKSUKI_DIGITS, } ALL_DIGIT_MAPS = {} @@ -230,6 +232,7 @@ class NumeralSystem(Enum): MYANMAR_TAI_LAING = "myanmar_tai_laing" AHOM = "ahom" WARANG_CITI = "warang_citi" + BHAIKSUKI = "bhaiksuki" AUTO = "auto"