Closed MenoData closed 2 years ago
An additional fix and change to the Chinese decimal system is needed. There is also an alternative zero character so we have 11 instead of 10 valid digit characters. Second, the code points of decimal digits are not mapped to range 0-9 in step widths of 1. The consequence is: The Chinese decimal system cannot be handled as technical decimal system.
The Chinese decimal system is tricky. A new method hasDecimalCodepoints()
is necessary. It will yield false
for that system in order to properly format numbers but the method isDecimal()
will yield true
to enable padding with zero characters.
The enum
NumberSystem
should be enhanced with Chinese numerals, one for decimal representations (used mainly for year numbers) and one arithmetic variant similar to Japanese. However, when parsing, both variants should have the same capabilities to understand all possible representations (decimal and arithmetic).See also: https://en.wikipedia.org/wiki/Chinese_numerals