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

Add quick5_fluency? #2

Open
eight04 opened this issue Feb 1, 2025 · 2 comments
Open

Add quick5_fluency? #2

eight04 opened this issue Feb 1, 2025 · 2 comments

Comments

@eight04
Copy link

eight04 commented Feb 1, 2025

最近Windows 10又把新倉頡弄壞,尋找替代品時發現了RIME,體驗了它的拼音後感覺很有潛力。

遇到最大的困難是找不到文件,wiki的教學非常長但沒有參考。

目前成果如下︰

# Rime schema settings
# encoding: utf-8

__include: quick5.schema.yaml:/

schema:
  schema_id: quick5_fluency
  name: 速成.語句流
  version: "0.20"
  author:
    - 佛振 <[email protected]>
  description: |
    速成、倉頡詞句連打
    碼表源自倉頡之友發佈的《五倉世紀版》
    www.chinesecj.com
  dependencies:
    - luna_quanpin

engine:
  processors:
    - ascii_composer
    - recognizer
    - key_binder
    - speller
    - punctuator
    - selector
    - navigator
    - fluency_editor
  translators:
    # - punct_translator
    - script_translator
    - reverse_lookup_translator

key_binder:
  import_preset: default
  bindings:
    - { when: "has_menu", accept: " ", send: "'"}
  1. 必需使用script_translator否則詞庫無法作用。一開始試用倉頡時我非常困惑,這個輸入法選不出「頻道」這個詞。
  2. 空白鍵會完成選字,在這個情況下RIME不會根據新加入的字重新選詞。
  3. 把空白鍵在有中文組句時指向隔音符,但相對地就無法打出空白,必須先上屏。
  4. 中英混合輸入時,切換Shift會代換掉整句。一樣需要等中文上屏再打英文。
  5. 想打英文卻切到中文模式時,按Shift可以修正。但是上屏後,會自動切換回中文。
  6. 打出大寫字母會自動進入英數模式,此時的空白鍵按一下沒效果,第二下會上屏。

理想中的成果是讓空白回歸符號鍵,用Enter上屏、確認。editor.cc好像有選項可以改?
https://github.com/rime/librime/blob/e8184dceaf9a89a21d6dc25c1850779cd652c472/src/rime/gear/editor.cc#L201

我猜中英混合輸入比較麻煩,需要一個flag傳到其它processors。但只要養成打英文前先先上屏的習慣就沒問題。

@eight04
Copy link
Author

eight04 commented Feb 4, 2025

左Shift的設定看起來在這裡︰
https://github.com/rime/rime-prelude/blob/3803f09458072e03b9ed396692ce7e1d35c88c95/default.yaml#L61

改成commit_text,按Shift就只會切換中英模式,不會轉換一整句成英文。

剩下的問題︰

  1. 大寫字母會停止組字。實際上大寫字母似乎會使輸入法進入英數模式,所以就打不出中文
  2. 中文模式下打不出空白。是否可以設定N個連續隔音符轉換成N-1個空白?

@lotem
Copy link
Member

lotem commented Feb 4, 2025

要改這麼多,不能全靠設定解決了。不支持的。
請你開發一個 librime 插件吧。

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

No branches or pull requests

2 participants