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

同时支持拆字+笔画输入;全拼词典转写扩充; #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chaizi_flypy.dict.yaml
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ sort: by_weight
use_preset_vocabulary: true # 導入八股文字頻
max_phrase_length: 1 # 不生成詞彙
import_tables:
- stroke ## 注释掉后:停用笔画输入
- chaizi_flypy.tr ## 注释掉后:停用繁体部分词典
#- stroke ## 取消注释后:部件组字模式下启用五笔画
...
24 changes: 24 additions & 0 deletions flypy_flypy.extended.dict.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Rime dictionary
# encoding: utf-8
# 扩展词库 来源https://github.com/Bambooin/rimerc
# 雾凇拼音 https://github.com/iDvel/rime-ice

---
name: flypy_flypy.extended
version: "2016.06.26"
sort: by_weight #字典初始排序,可選original或by_weight
use_preset_vocabulary: true
#此處爲明月拼音擴充詞庫(基本)默認鏈接載入的詞庫,有朙月拼音官方詞庫、明月拼音擴充詞庫(漢語大詞典)、明月拼音擴充詞庫(詩詞)、明月拼音擴充詞庫(含西文的詞彙)。如果不需要加載某个詞庫請將其用「#」註釋掉。
#下面的是本词库包含的所有词库,请根据需要开启/禁用,词条前添删#号即可开启/关闭词库。

import_tables:
- flypy_flypy

- luna_pinyin.net
- luna_pinyin.website
- luna_pinyin.game
- luna_pinyin.place
- luna_pinyin.poetry
- luna_pinyin.computer
- luna_pinyin.history
...
2 changes: 1 addition & 1 deletion flypy_zrmfast.custom.yaml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ patch:
## 如果希望无论有无 [ 均可引导,取消注释的同时将 xform 改成 derive
#speller/algebra/@next: xform/[[]//

#translator/dictionary: flypy_flypy ## 使用小鹤原版辅助码
#translator/dictionary: flypy_flypy.extended ## 使用小鹤原版辅助码
## 默认为不超过 2 个字的候选项显示输入码;将 2 改为 0 可关闭编码提示,
## 改为 1 则是只显示单字的输入码,依此类推。
translator/spelling_hints: 2
24 changes: 24 additions & 0 deletions flypy_zrmfast.extended.dict.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Rime dictionary
# encoding: utf-8
# 扩展词库 来源https://github.com/Bambooin/rimerc
# 雾凇拼音 https://github.com/iDvel/rime-ice

---
name: flypy_zrmfast.extended
version: "2016.06.26"
sort: by_weight #字典初始排序,可選original或by_weight
use_preset_vocabulary: true
#此處爲明月拼音擴充詞庫(基本)默認鏈接載入的詞庫,有朙月拼音官方詞庫、明月拼音擴充詞庫(漢語大詞典)、明月拼音擴充詞庫(詩詞)、明月拼音擴充詞庫(含西文的詞彙)。如果不需要加載某个詞庫請將其用「#」註釋掉。
#下面的是本词库包含的所有词库,请根据需要开启/禁用,词条前添删#号即可开启/关闭词库。

import_tables:
- flypy_zrmfast

- luna_pinyin.net
- luna_pinyin.website
- luna_pinyin.game
- luna_pinyin.place
- luna_pinyin.poetry
- luna_pinyin.computer
- luna_pinyin.history
...
36 changes: 33 additions & 3 deletions flypy_zrmfast.schema.yaml
Original file line number Diff line number Diff line change
@@ -71,13 +71,43 @@ speller:
delimiter: " '"
## speller 未允许 aj 表示 an
algebra:
## 增加转写以支持更多的全拼词库 不修改带[辅助码的词库
- xform/^([aoe])$/$1$1/ #对零声母的转写
- xform/^(ang)$/ah/ #对零声母的转写
- xform/^([^\[]*)iu$/$1Q/
- xform/^([^\[]*)ei$/$1W/
- xform/uan$/R/
- xform/^([^\[]*)[uv]e$/$1T/
- xform/^([^\[]*)un$/$1Y/
- xform/^sh([^\[]+)/U$1/
- xform/^ch([^\[]+)/I$1/
- xform/^zh([^\[]+)/V$1
- xform/^([^\[]*)uo$/$1O/
- xform/^([^\[]*)ie$/$1P/
- xform/i?ong$/S/
- xform/ing$|uai$/K/
- xform/^([^\[]+)ai$/$1D/
- xform/^([^\[]+)en$/$1F/
- xform/^([^\[]+)eng$/$1G/
- xform/[iu]ang$/L/
- xform/(.)ang$/$1H/
- xform/^([^\[]*)ian$/$1M/
- xform/^([^\[]+)an$/$1J/
- xform/^([^\[]+)ou$/$1Z/
- xform/^([^\[]*)[iu]a$/$1X/
- xform/^([^\[]*)iao$/$1N/
- xform/^([^\[]+)ao$/$1C/
- xform/^([^\[]*)ui$/$1V/
- xform/^([^\[]*)in$/$1B/
- xlit/QWRTYUIOPSDFGHJKLZXCVBNM/qwrtyuiopsdfghjklzxcvbnm/

- derive/^(..).+$/$1/
- derive/^(..[[].).+$/$1/
- derive/^([jqxy])u/$1v/
#- xform/[[]// ## 取消注释后:直接引导辅助码

translator:
dictionary: flypy_zrmfast
dictionary: flypy_zrmfast.extended
spelling_hints: 2
# enable_user_dict: true
# preedit_format:
@@ -123,11 +153,11 @@ custom_phrase:
initial_quality: 1

reverse_lookup:
dictionary: chaizi_flypy # stroke
dictionary: chaizi_flypy # 包含了stroke词库
enable_completion: true
prefix: "ab"
suffix: "'"
tips: 〔部件组字〕 # 〔筆畫〕
tips: 〔部件组字〕 # 同时支持〔筆畫〕输入
preedit_format:
# - xlit/hspnz/一丨丿丶乙/

Loading