Skip to content

Phrase construction or enable_encoder/table_translator documentation? #1082

Answered by lotem
erikli asked this question in Q&A
Discussion options

You must be logged in to vote

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.

encoder:
  rules:
    - leng…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@erikli
Comment options

Comment options

You must be logged in to vote
1 reply
@erikli
Comment options

Answer selected by erikli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants