Gets a list of radical residual entries. For multiple radical
occurrences (e.g. 伦) only returns the residual stroke count for the
"main" radical form.
To Do (Lang):
Implement, find a good algorithm to turn down unwanted forms, don't
just choose random one. See the following list:
>>> from cjklib import characterlookup
>>> cjk = characterlookup.CharacterLookup()
>>> for char in cjk.db.selectSoleValue('CharacterRadicalResidualStrokeCount',
... 'ChineseCharacter', distinctValues=True):
... try:
... entries = cjk.getCharacterKangxiRadicalResidualStrokeCount(char, 'C')
... lastEntry = entries[0]
... for entry in entries[1:]:
...
... if lastEntry[0] != entry[0] and lastEntry[2] != entry[2]:
... print char
... break
... lastEntry = entry
... except:
... pass
...
渌
犾
玺
珏
缧
>>> cjk.getCharacterKangxiRadicalResidualStrokeCount(u'缧')
[(u'糸', 0, u'⿻', 0, 8), (u'纟', 0, u'⿰', 0, 11)]