Tridactyl Meet PinYin - mozbugbox/tridactyl GitHub Wiki

使用拼音输入法过滤连接提示

三指加上拼音输入过滤。当 hinting 的时候,输入中文文字的拼音首键,可以过滤相应的中文连接和英文连接。

特点

  • 自定义输入法

  • 数字可使用输入法键首

    1234567890: y e s s w l q b j l (拼音输入法)
    可在输入法数据中自定义其他键位:
    三: (t)hree
    四: (f)our
    零: (d)ong (z)ero
    

使用自定义输入法

  1. 使用以下程序从输入法数据生成 immatcher_table.json 文件:

    https://gitlab.com/mozbugbox/im-matcher/-/wikis/pages

  2. 把上述 json 文件复制到 $XDG_DATA_HOME/im-matcher(Linux: ~/.local/share/im-matcher/) 目录下。注意文件名称需要去掉输入法标签

  3. 重新启动 firefox

例如使用郑码输入法:

$ ./im-matcher-table-gen.py zhengma.txt 
Parsing zhengma.txt...
hani_bmp Missing: 90/20992.
hani_comp Missing: 472/512.
hani_comp_sup Missing: 544/544.
hani_exta Missing: 10/6592.
hani_extb Missing: 9/42720.
hani_extc Missing: 1/4160.
hani_extd Missing: 165/224.
hani_exte Missing: 5776/5776.
Write result into "immatcher_table_zhengma.json"
Write result into "immatcher_table_zhengma.js"

$ mv immatcher_table_zhengma.json immatcher_table.json
$ cp immatcher_table.json ~/.local/share/im-matcher/

源码

git branch: mozbugbox/tridactyl#chinese-input-method-hintchars

安装

🍎

- 请在扩展设定中 🍎关闭自动更新🍎 Tridactyl扩展,否则官方升级
- 会自动覆盖修改后的扩展

编译好的未签名扩展包

Tridactyl with Chinese input method hintchars

自行编译 Tridactyl

使用 git 的 chinese-input-method-hintchars 分支进行编译。

编译步骤参看 readme.md文件。

$ git clone https://github.com/mozbugbox/tridactyl.git
$ cd tridactyl
$ git checkout chinese-input-method-hintchars

$ yarn install
$ yarn run build
$ scripts/sign nosignbeta

安装本地扩展文件

本地安装无签名扩展

设定

set hintchars 123456789
set hintfiltermode vimperator-reflow

推荐扩展

  • 保护眼睛: 把网页的白色背景换成绿色,灰色等柔和色。会减慢页面加载速度。