It would be great to add a function to get the orthodox characters (正字) of a character.
>>> f('畱') # TODO: Get a better name
['留']
>>> f('留')
['留']
>>> f('為')
['爲'] # OpenCC standard
>>> f('苧')
['苧', '薴'] # The order should not matter
>>> f('a')
[] # No data
As the OpenCC standard “separate as much as possible” (能分則不合), there would be little difficulty in determine the orthodox characters.
It would be great to add a function to get the orthodox characters (正字) of a character.
As the OpenCC standard “separate as much as possible” (能分則不合), there would be little difficulty in determine the orthodox characters.