61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
# encoding: utf-8
|
|
patch:
|
|
switches: # 注意縮進
|
|
- name: ascii_mode
|
|
reset: 0 # reset 0 的作用是當從其他輸入方案切換到本方案時,
|
|
states: [ 中, 英 ] # 重設爲指定的狀態,而不保留在前一個方案中設定的狀態。
|
|
- name: simplification
|
|
reset: 1 # 增加這一行:默認啓用「繁→簡」轉換。
|
|
states: [ 漢, 汉 ]
|
|
- name: symbol_support
|
|
reset: 1
|
|
states: [ "❀", "🌺" ]
|
|
# states: [ "无", "符" ]
|
|
- name: emoji_suggestion
|
|
reset: 1
|
|
states: [ 😴, 😁️ ]
|
|
- options: [ _key_IME_switch ]
|
|
states: [ "🌐" ]
|
|
- options: [ _key_Hide ]
|
|
states: [ "🔻" ]
|
|
- name: _hide_candidate
|
|
reset: 1
|
|
|
|
# NOTE: 注意将方案的 filters 和 translators 组件拷贝过来,再追加 lua_translator
|
|
'engine/filters':
|
|
- simplifier@emoji_suggestion
|
|
- simplifier@symbol_support
|
|
- simplifier
|
|
- uniquifier
|
|
'engine/translators':
|
|
- punct_translator
|
|
- reverse_lookup_translator
|
|
- script_translator
|
|
- lua_translator@date_translator
|
|
- lua_translator@week_translator
|
|
- table_translator@custom_phrase
|
|
# 配置 engine
|
|
# 'engine/filters/@before 0':
|
|
# simplifier@emoji_suggestion
|
|
# 'engine/filters/@next 0':
|
|
# simplifier@symbol_support
|
|
# 'engine/translators/@after last':
|
|
# lua_translator@date_translator
|
|
|
|
# 词库配置
|
|
'translator/dictionary': luna_pinyin.extended
|
|
'translator/preedit_format': {}
|
|
# emoji
|
|
emoji_suggestion:
|
|
opencc_config: emoji.json
|
|
option_name: emoji_suggestion
|
|
tips: all
|
|
# 支持符号
|
|
symbol_support:
|
|
opencc_config: symbol.json
|
|
option_name: symbol_support
|
|
tips: all
|
|
# 标点及特殊表情
|
|
'punctuator/import_preset': symbols
|
|
'recognizer/patterns/punct': "^/([a-z]+|[0-9])$"
|