MenoData / Time4J

Advanced date, time and interval library for Java with sun/moon-astronomy and calendars like Chinese, Coptic, Ethiopian, French Republican, Hebrew, Hijri, Historic Christian, Indian National, Japanese, Julian, Korean, Minguo, Persian, Thai, Vietnamese
GNU Lesser General Public License v2.1
424 stars 62 forks source link

Alternative Chinese number systems #985

Closed MenoData closed 4 months ago

MenoData commented 5 months ago

Enhance the class NumberSystem with two new constants:

MenoData commented 5 months ago

Motivated by issue #982

MenoData commented 4 months ago

Finally, the class NumberSystem has got two new constants:

CHINESE_LUNAR_DAYS Chinese day counting (code: hanidays, supported range: 1-32, applicable especially for days in the old lunisolar calendar)

CHINESE_SIMPLIFIED Chinese simplified (code: hans, similar to Chinese Mandarin, main difference is using a simplified notion for zero in printing)

The old constant CHINESE_MANDARIN has changed its code to: mandarin.

The proposed constant for traditional Chinese is not necessary because it is not different from Mandarin when handling numbers below 10,000. Keep in mind that this library is mainly a calendrical library and not designed as all-purpose number formatting library.

In addition, a tiny inconsistency for printing the eleventh month of lunisolar calendar was purged in text resources.