Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用lua實作行列的傳統功能 #11

Closed
wants to merge 3 commits into from

Conversation

jeang-bo-yuan
Copy link
Contributor

主要更改項目

實作方式

為了實作特別碼和簡碼的功能,我對array30_main.dict.yaml中的字碼做了一些特別處理:

類別 處理 array30 schema的拼寫運算
特別碼 一樣保有「!」後綴 不處理
簡碼 有「@數字」後綴,空碼位以「NULL數字」頂替 將「@數字」後綴去掉
其他字碼
(重碼)
有「&」後綴 將「&」轉「!」,輸入時以跟特別碼相同的邏輯處理

在輸入一個字的字碼時:

  • 如果輸入1~2個字碼,特別碼會因為比簡碼多一個「!」,所以不會出現在候選字的第一頁
  • 第一次按下空白鍵時,空白鍵會轉成「!」加入輸入碼中,如果該碼位只有一個字(包含字碼為特別碼的情形)則會由speller自動上屏

@LEOYoon-Tsaw
Copy link
Member

lua是個插件,librime並不一定帶lua,我覺得內置方案還是不要依賴的好

@jeang-bo-yuan
Copy link
Contributor Author

謝謝建議。
我新開了一個PR,是沒使用lua的版本,雖然少了一些功能,但還是有實作「簡碼」和「特別碼」。

@jeang-bo-yuan jeang-bo-yuan deleted the to-merge branch August 2, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants