diff --git a/CHANGELOG.md b/CHANGELOG.md index 1376380..ad2b955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 24f5fdf..da39929 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/tests/test_conversion.py b/tests/test_conversion.py index f75f7c8..aadd8da 100644 --- a/tests/test_conversion.py +++ b/tests/test_conversion.py @@ -93,6 +93,7 @@ NumeralSystem.WARANG_CITI: "𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩", NumeralSystem.BHAIKSUKI: "𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙", NumeralSystem.TAMIL: "௦௧௨௩௪௫௬௭௮௯", + NumeralSystem.PAHAWH_HMONG: "𖭐𖭑𖭒𖭓𖭔𖭕𖭖𖭗𖭘𖭙", } diff --git a/xnum/params.py b/xnum/params.py index 0e7f07d..2005dd7 100644 --- a/xnum/params.py +++ b/xnum/params.py @@ -77,6 +77,7 @@ WARANG_CITI_DIGITS = ['𑣠', '𑣡', '𑣢', '𑣣', '𑣤', '𑣥', '𑣦', '𑣧', '𑣨', '𑣩'] BHAIKSUKI_DIGITS = ['𑱐', '𑱑', '𑱒', '𑱓', '𑱔', '𑱕', '𑱖', '𑱗', '𑱘', '𑱙'] TAMIL_DIGITS = ['௦', '௧', '௨', '௩', '௪', '௫', '௬', '௭', '௮', '௯'] +PAHAWH_HMONG_DIGITS = ['𖭐', '𖭑', '𖭒', '𖭓', '𖭔', '𖭕', '𖭖', '𖭗', '𖭘', '𖭙'] NUMERAL_MAPS = { "english": ENGLISH_DIGITS, @@ -152,6 +153,7 @@ "warang_citi": WARANG_CITI_DIGITS, "bhaiksuki": BHAIKSUKI_DIGITS, "tamil": TAMIL_DIGITS, + "pahawh_hmong": PAHAWH_HMONG_DIGITS, } ALL_DIGIT_MAPS = {} @@ -236,6 +238,7 @@ class NumeralSystem(Enum): WARANG_CITI = "warang_citi" BHAIKSUKI = "bhaiksuki" TAMIL = "tamil" + PAHAWH_HMONG = "pahawh_hmong" AUTO = "auto"