zcold / pycnnum

MIT License
19 stars 7 forks source link

Feature suggestion: add `use_ones` option for 1x numbers #2

Closed wdscxsj closed 4 months ago

wdscxsj commented 5 years ago

Could you add a use_ones option for 1x numbers, or adjust the current behavior a little bit? That is:

num2cn(16)  # '一十六' (current behavior)
num2cn(16, use_ones=False)   # '十六' (proposed change: feels more natural)
num2cn(116, use_ones=False)  # '一百一十六' (regardless of the value of use_ones)

Thanks!

zcold commented 5 years ago

I will try to remember what I have done and implement it after that.

zcold commented 4 months ago

fixed in the coming release