-
I want to know how full codes for phrases get converted to shorter codes and couldn't figure it out after trying to read https://github.com/rime/home/wiki/RimeWithSchemata. Is this explained somewhere? for example in cangjie5: What are the rules? Thank you for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
雖然用英文回答會讓我多容易明白,用中文回答也很幫助。非常感謝 |
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
-
It's using a non-official phrase encoding sheme from 快趣倉頡輸入法. Like treating the internal structure of a Chinese character, a phrase is spit apart into 2 or 3 groups of characters, namely head, (body,) tail. Understood the encoding rules, we can implement them in the Rime dictionary as follows. encoder:
rules:
- length_equal: 2
formula: "AaAzBaBbBz"
- length_equal: 3
formula: "AaAzBaBzCz"
- length_in_range: [4, 10]
formula: "AaBzCaYzZz" |
Beta Was this translation helpful? Give feedback.
It's using a non-official phrase encoding sheme from 快趣倉頡輸入法.
There were discussions about it on the 倉頡之友 forum, and many Cangjie enthusiasts prefer this method because it applies similar encoding rules between characters and phrases.
Like treating the internal structure of a Chinese character, a phrase is spit apart into 2 or 3 groups of characters, namely head, (body,) tail.
Attached image shows a few examples.
Understood the encoding rules, we can implement them in the Rime dictionary as follows.
A for the first character, B for the second, etc. Z for the last character. Lowercase a, b, z refer to the first, second and last Cangjie letter of the character.