You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploy rime, activate luna pinyin, and type for 「三」 and 「三人」
Expected behavior
All character 「三」 should be converted to 「一」 finally. However, the single character 「三」 converted to 「二」, which is an intermediate result. 「三人」 can be correctly converted to 「一人」.
Also tested with OpenCC command line tool and got correct results.
When the original candidate as a whole can be converted by Opencc::ConvertWord, it will not be further converted. Otherwise the candidate will be converted with Opencc::ConvertText.
Opencc::ConvertWord looks up the value from Opencc::dict_ which only uses the first conversion of the chain. By contrast, Opencc::ConvertText calls the OpenCC converter's Convert method, which will use the whole chain.
The text was updated successfully, but these errors were encountered:
Describe the bug
Sometimes OpenCC conversion only applies the first dict in json file, but skips following ones.
To Reproduce
Steps to reproduce the bug:
Rime/opencc
directory:Expected behavior
All character 「三」 should be converted to 「一」 finally. However, the single character 「三」 converted to 「二」, which is an intermediate result. 「三人」 can be correctly converted to 「一人」.
Also tested with OpenCC command line tool and got correct results.
Screenshots


Flavor(please complete the following information):
Select your flavor:
Package:
Additional context
I found the logic in simplifier.cc:
When the original candidate as a whole can be converted by
Opencc::ConvertWord
, it will not be further converted. Otherwise the candidate will be converted withOpencc::ConvertText
.Opencc::ConvertWord
looks up the value fromOpencc::dict_
which only uses the first conversion of the chain. By contrast,Opencc::ConvertText
calls the OpenCC converter'sConvert
method, which will use the whole chain.The text was updated successfully, but these errors were encountered: