-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
522 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 功能開關一鍵配置 | ||
|
||
patch: | ||
# schema/name: 宇浩·大陸繁體 # 方案名 | ||
speller/auto_select: false # 四碼唯一自動上屏 | ||
# menu/page_size: 5 # 每頁候選數量 | ||
style/horizontal: false # 橫排候選欄 | ||
style/inline_preedit: true # 候選欄内置於輸入界面 | ||
style/preedit_type: composition # 候選顯示字母(composition)还是候選(preview) | ||
# 以下開關,0爲第一個,1爲第二個,2爲第三個 | ||
switches/@0/reset: 1 # [只出常用字, 常用字前置, 全字集原排序] | ||
switches/@1/reset: 0 # [繁簡混頻, 繁體優先] | ||
switches/@2/reset: 0 # [字詞同出, 全碼出單] | ||
switches/@3/reset: 0 # [原始排序, 全碼後置] | ||
switches/@4/reset: 0 # [〇註解, 一重註解, 二重註解, 三重註解] | ||
switches/@5/reset: 0 # [輸入預測, 精確匹配] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
# Rime schema settings | ||
# encoding: utf-8 | ||
|
||
schema: | ||
schema_id: yuhao_tc | ||
name: 宇浩繁簡通·大陸繁體簡碼 | ||
version: 20230522 | ||
author: | ||
- 發明人 朱宇浩 | ||
- Rime方案 <https://zhuyuhao.com/yuhao/> | ||
- 官方QQ群 735728797 | ||
description: | | ||
宇浩輸入法,繁簡通打,以傳統漢字爲主設置簡碼,故名爲「繼往聖」。 | ||
第三候選位上的簡詞,可能使用的是兩個字的首碼。 | ||
單字和詞庫編碼同時兼容台灣、香港、大陸古籍三種標準的繁體字形。 | ||
簡碼設置基於大陸唯一繁體字字形標準《古籍印刷通用字規範字形表》。 | ||
<https://www.zhihu.com/question/494817799/answer/2647217480> | ||
dependencies: | ||
- yuhao_pinyin | ||
- yuhao_chaifen | ||
|
||
switches: | ||
- options: | ||
- yuhao_char_only | ||
- yuhao_char_first | ||
- cjk | ||
states: [只出常用字, 常用字前置, 全字集原排序] | ||
reset: 1 | ||
# Control+Shift+O: 只出常用字 | ||
- name: yuhao_tc_first | ||
reset: 0 | ||
states: [繁簡混頻, 繁體優先] | ||
# Control+Shift+I: 繁體優先 | ||
- name: yuhao_single_char_only_for_full_code | ||
states: ["字詞同出", "全碼出單"] | ||
reset: 0 | ||
# Control+Shift+D | ||
- name: yuhao_postpone_full_code | ||
reset: 0 | ||
states: [原始排序, 全碼後置] | ||
# Control+Shift+H | ||
- options: | ||
- yuhao_chaifen.off | ||
- yuhao_chaifen.lv1 | ||
- yuhao_chaifen.lv2 | ||
- yuhao_chaifen.lv3 | ||
states: [〇註解, 一重註解, 二重註解, 三重註解] | ||
reset: 0 | ||
- name: yuhao_autocompletion_filter | ||
reset: 0 | ||
states: [輸入預測, 精確匹配] | ||
# Control+Shift+Y | ||
- name: simplification | ||
states: [繁保持, 繁轉簡] | ||
reset: 0 | ||
# Control+Shift+J | ||
- name: ascii_punct | ||
states: [。,, .,] | ||
reset: 0 | ||
- name: ascii_mode | ||
states: [中文, 西文] | ||
reset: 0 | ||
- name: full_shape | ||
states: ["半角", "全角"] | ||
reset: 0 | ||
|
||
engine: | ||
processors: | ||
- ascii_composer | ||
- recognizer | ||
- lua_processor@yuhao_chaifen_processor | ||
- key_binder | ||
- speller | ||
- punctuator | ||
- selector | ||
- navigator | ||
- express_editor | ||
segmentors: | ||
- ascii_segmentor | ||
- matcher | ||
- affix_segmentor@zaoci # 用户造詞 | ||
- abc_segmentor | ||
- punct_segmentor | ||
- fallback_segmentor | ||
translators: | ||
- punct_translator | ||
- history_translator@history | ||
- reverse_lookup_translator | ||
- table_translator@fixed | ||
- table_translator | ||
- lua_translator@yuhao_helper # 幫助文檔 | ||
- "table_translator@zaoci" # 用户造詞 | ||
filters: | ||
- lua_filter@yuhao_autocompletion_filter | ||
- lua_filter@yuhao_single_char_only_for_full_code | ||
- lua_filter@yuhao_char_first | ||
- lua_filter@yuhao_char_only | ||
- lua_filter@yuhao_tc_first | ||
- lua_filter@yuhao_postpone_full_code | ||
- simplifier@simplify | ||
- lua_filter@yuhao_chaifen | ||
- uniquifier | ||
|
||
simplify: | ||
tags: [abc, reverse_lookup] | ||
option_name: simplification | ||
opencc_config: t2s.json | ||
tips: all | ||
comment_format: | ||
- xform/^/〔/ | ||
- xform/$/〕/ | ||
|
||
yuhao_postpone_full_code: | ||
tags: [abc] | ||
lua: | ||
max_index: 3 # 最大後置位置,默認爲 3 | ||
|
||
schema_name: | ||
code: yuhao_tc | ||
spelling: yuhao_chaifen | ||
|
||
yuhao_chaifen: | ||
lua: | ||
switch_key: "Control+c" | ||
cycle_key: "Shift+Control+C" | ||
|
||
speller: | ||
alphabet: zyxwvutsrqponmlkjihgfedcba | ||
initials: zyxwvutsrqponmlkjihgfedcba | ||
delimiter: "`" | ||
max_code_length: 4 | ||
auto_select: false | ||
algebra: | ||
- "derive/^([a-y])[a-y]([a-y]*)$/$1z$2/" # Az AzC AzCD | ||
- "derive/^([a-y]+)[a-y]([a-y]*)$/$1z$2/" # ABz ABzD ABCz AzC AzCD | ||
- "derive/^([a-y]+)[a-y]$/$1z/" # ABz ABCz | ||
# - "derive/^([a-y]+)[a-y]{2}$/$1zz/" # ABzz Azz | ||
# - "derive/^([a-y])[a-y]{2}([a-y])$/$1zz$2/" # AzzD | ||
# - "derive/^([a-y])[a-y]{3}$/$1zzz/" # Azzz | ||
# - "derive/^([a-y])[a-y]([a-y])[a-y]$/$1z$2z/" # AzCz | ||
|
||
translator: | ||
dictionary: yuhao_tc | ||
prism: yuhao_tc | ||
db_class: tabledb | ||
enable_completion: true | ||
enable_sentence: false | ||
enable_user_dict: true | ||
enable_encoder: true | ||
encode_commit_history: false # 对连续上屏的词自动成词 | ||
max_phrase_length: 4 # 自动成词的最大词长 | ||
preedit_format: [] | ||
comment_format: | ||
- "xform/^~/ /" | ||
disable_user_dict_for_patterns: | ||
- "^z.*$" | ||
|
||
zaoci: | ||
__include: translator | ||
initial_quality: 0 | ||
enable_sentence: true | ||
enable_user_dict: true | ||
prefix: "`" | ||
tips: "〔用户造詞〕" | ||
tag: zaoci | ||
|
||
# 固定词库词的权重,防止自动调频 | ||
fixed: | ||
__include: translator | ||
enable_user_dict: false | ||
enable_sentence: false | ||
initial_quality: 1000000 | ||
|
||
history: | ||
input: z | ||
size: 1 | ||
initial_quality: 1 | ||
|
||
reverse_lookup: | ||
dictionary: yuhao_pinyin | ||
prefix: "z" | ||
tips: 〔全拼反查〕 | ||
closing_tips: 〔反查关闭〕 | ||
preedit_format: | ||
- xform/([nl])v/$1ü/ | ||
- xform/([nl])ue/$1üe/ | ||
- xform/([jqxy])v/$1u/ | ||
|
||
punctuator: | ||
import_preset: symbols_yuhao | ||
half_shape: | ||
"%": "%" | ||
"*": "*" | ||
"\\": "、" | ||
"[": "「" | ||
"]": "」" | ||
"{": "『" | ||
"}": "』" | ||
"/": "/" | ||
"|": "|" | ||
|
||
key_binder: | ||
bindings: | ||
- { when: always, accept: "Control+period", toggle: ascii_punct } | ||
- { when: always, accept: "Control+Shift+J", toggle: simplification } | ||
- { when: always, accept: "Control+Shift+O", toggle: yuhao_char_only } # 常用詞過濾 | ||
- { when: always, accept: "Control+Shift+I", toggle: yuhao_tc_first } # 繁體優先 | ||
- { when: has_menu, accept: "0", toggle: yuhao_char_only } # 常用詞過濾 | ||
- { | ||
when: always, | ||
accept: "Control+Shift+D", | ||
toggle: yuhao_single_char_only_for_full_code, | ||
} # 全码出单 | ||
# - { when: always, accept: "Control+Shift+C", toggle: chaifen } # 拆分 | ||
- { when: has_menu, accept: "/", toggle: yuhao_chaifen.off } # 拆分 | ||
- { | ||
when: always, | ||
accept: "Control+Shift+H", | ||
toggle: yuhao_postpone_full_code, | ||
} # 全碼後置 | ||
- { | ||
when: always, | ||
accept: "Control+Shift+Y", | ||
toggle: yuhao_autocompletion_filter, | ||
} # 輸入預測 | ||
- { when: has_menu, accept: semicolon, send: 2 } # 分号次选 | ||
- { when: has_menu, accept: apostrophe, send: 3 } # 引号三选 | ||
- { when: has_menu, accept: Tab, send: 4 } # 製表符四选 | ||
- { when: has_menu, accept: minus, send: Page_Up } #減號上翻頁 | ||
- { when: has_menu, accept: equal, send: Page_Down } #等號下翻頁 | ||
|
||
recognizer: | ||
import_preset: default | ||
patterns: | ||
uppercase: "^(?![`;]).*[A-Z][-_+.'0-9A-Za-z]*$" | ||
reverse_lookup: "^z([a-z]+?)*$" | ||
zaoci: "^[a-y]*`[a-y`]*$" | ||
punct: '^/([0-9]0?|[A-Za-z]+)?$' | ||
|
||
style: | ||
horizontal: false | ||
inline_preedit: true | ||
preedit_type: preview | ||
|
||
# menu: | ||
# page_size: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 功能開關一鍵配置 | ||
|
||
patch: | ||
# schema/name: 宇浩·臺灣正體 # 方案名 | ||
speller/auto_select: false # 四碼唯一自動上屏 | ||
# menu/page_size: 5 # 每頁候選數量 | ||
style/horizontal: false # 橫排候選欄 | ||
style/inline_preedit: true # 候選欄内置於輸入界面 | ||
style/preedit_type: composition # 候選顯示字母(composition)还是候選(preview) | ||
# 以下開關,0爲第一個,1爲第二個,2爲第三個 | ||
switches/@0/reset: 1 # [只出常用字, 常用字前置, 全字集原排序] | ||
switches/@1/reset: 1 # [繁簡混頻, 正體優先] | ||
switches/@2/reset: 0 # [字詞同出, 全碼出單] | ||
switches/@3/reset: 0 # [原始排序, 全碼後置] | ||
switches/@4/reset: 0 # [〇註解, 一重註解, 二重註解, 三重註解] | ||
switches/@5/reset: 0 # [輸入預測, 精確匹配] |
Oops, something went wrong.