rime-all/squirrel/double_pinyin_flypy.custom....

102 lines
3.0 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

patch:
schema/name: 小鹤双拼
switches:
- name: ascii_mode
reset: 0
states: [ 中, 英 ]
- name: emoji_suggestion
reset: 1
states: [ 😴, 😁️ ]
- name: full_shape
states: [ 半, 全 ]
- name: simplification
reset: 1
states: [ 漢, 汉 ]
- name: ascii_punct
states: [ 。,, ]
# 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/filters/@before 0':
# simplifier@emoji_suggestion
# 'engine/filters/@next 0':
# simplifier@symbol_support
# 加载词库
'translator/dictionary': luna_pinyin.extended
'translator/preedit_format': {}
#- charset_filter@gbk
# - single_char_filter
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: all
# 支持符号
symbol_support:
opencc_config: symbol.json
option_name: symbol_support
tips: all
reverse_lookup: {}
# 自定义符号上屏
punctuator:
import_preset: symbols
symbols:
"/dq": [🌍,🌎,🌏,🌐,🌑,🌒,🌓,🌔,🌕,🌖,🌗,🌘]
"/fruit": [🍇,🍉,🍌,🍍,🍎,🍏,🍑,🍒,🍓,🍗,🍦,🎂,🍺,🍻]
"/animal": [🙈,🐵,🐈,🐷,🐨,🐼,🐾,🐔,🐬,🐠,🦋]
"/face": [😀,😁,😂,😃,😄,😅,😆,😉,😊,😋,😎,😍,😘,😗]
"/hand": [💪,👈,👉,👆,👇,✋,👌,👍,👎,✊,👊,👋,👏,👐]
half_shape:
"#": "#"
"*": "*"
"`": "`"
"~": "~"
"@": "@"
"=": "="
'\': "、"
"%": "%"
"$": ["¥", "$", "€", "£", "¢", "¤"]
"|": ["|", "", "·", "・", "§", "¦", "‖", "︴"]
"/": ["/", "÷"]
"'": { pair: ["「", "」"] }
"[": ["【", "", ""]
"]": ["】", "", ""]
"<": "《"
">": "》"
recognizer/patterns/punct: "^/([0-9]0?|[A-Za-z]+)$"
### 双拼使用自定义词典 custom_phrase.txt
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
# "engine/translators/@5": table_translator@custom_phrase
# Rx: BlindingDark/rime-easy-en:customize:schema=double_pinyin_flypy
# __include: easy_en:/patch
# easy_en/enable_sentence: false
# Rx: lotem/rime-octagram-data:customize:schema=luna_pinyin,model=hans
__include: grammar:/hant
# Rx: BlindingDark/rime-lua-select-character:customize:schema=luna_pinyin
# __include: lua_select_character:/patch # 需要lua_selector打开本行注释
# librime-lua 输入动态时间和日期
# "engine/translators/@6": lua_translator@date_translator