Files
arch/noctalia-dotfiles/.local/share/fcitx5/rime/build/bopomofo.schema.yaml
2026-03-31 20:13:15 +08:00

274 lines
8.1 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

__build_info:
rime_version: 1.16.1
timestamps:
bopomofo.custom: 0
bopomofo.schema: 1774017862
default: 1774018450
default.custom: 1774339475
grammar: 0
key_bindings: 1774018450
key_bindings.custom: 0
punctuation: 1774018450
punctuation.custom: 0
zhuyin: 1774017862
zhuyin.custom: 0
custom_phrase:
db_class: stabledb
dictionary: ""
enable_completion: false
enable_sentence: false
initial_quality: 1
user_dict: custom_phrase
editor:
bindings:
space: toggle_selection
engine:
filters:
- "simplifier@zh_hans"
- "simplifier@zh_hant_tw"
- uniquifier
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- "table_translator@custom_phrase"
- reverse_lookup_translator
- script_translator
key_binder:
bindings:
- {accept: "Control+p", send: Up, when: composing}
- {accept: "Control+n", send: Down, when: composing}
- {accept: "Control+b", send: Left, when: composing}
- {accept: "Control+f", send: Right, when: composing}
- {accept: "Control+a", send: Home, when: composing}
- {accept: "Control+e", send: End, when: composing}
- {accept: "Control+d", send: Delete, when: composing}
- {accept: "Control+k", send: "Shift+Delete", when: composing}
- {accept: "Control+h", send: BackSpace, when: composing}
- {accept: "Control+g", send: Escape, when: composing}
- {accept: "Control+bracketleft", send: Escape, when: composing}
- {accept: "Control+y", send: Page_Up, when: composing}
- {accept: "Alt+v", send: Page_Up, when: composing}
- {accept: "Control+v", send: Page_Down, when: composing}
- {accept: minus, send: Page_Up, when: has_menu}
- {accept: equal, send: Page_Down, when: has_menu}
- {accept: comma, send: Page_Up, when: paging}
- {accept: period, send: Page_Down, when: has_menu}
- {accept: "Control+Shift+1", select: .next, when: always}
- {accept: "Control+Shift+2", toggle: ascii_mode, when: always}
- {accept: "Control+Shift+3", toggle: full_shape, when: always}
- {accept: "Control+Shift+4", toggle: simplification, when: always}
- {accept: "Control+Shift+5", toggle: extended_charset, when: always}
- {accept: "Control+Shift+exclam", select: .next, when: always}
- {accept: "Control+Shift+at", toggle: ascii_mode, when: always}
- {accept: "Control+Shift+numbersign", toggle: full_shape, when: always}
- {accept: "Control+Shift+dollar", toggle: simplification, when: always}
- {accept: "Control+Shift+percent", toggle: extended_charset, when: always}
- {accept: comma, send: comma, when: has_menu}
- {accept: period, send: period, when: has_menu}
- {accept: minus, send: minus, when: has_menu}
- {accept: minus, send: Page_Up, when: paging}
- {accept: equal, send: Page_Down, when: has_menu}
import_preset: default
menu:
alternative_select_keys: ABCDEFGHIJ
page_size: 6
punctuator:
full_shape:
" ": {commit: " "}
"!": {commit: ""}
"\"": {pair: ["“", "”"]}
"#": ["", "⌘"]
"$": ["¥", "$", "€", "£", "¥", "¢", "¤"]
"%": ["", "°", "℃"]
"&": ""
"'": {pair: ["", ""]}
"(": ""
")": ""
"*": ["", "·", "・", "×", "※", "❂"]
"+": ""
":": ["", ""]
"<": {commit: ""}
"=": ""
">": {commit: "。"}
"?": ["", "", "÷"]
"@": ["", "☯"]
"[": ["「", "【", "《", "", ""]
"\\": ["、", ""]
"]": ["」", "】", "》", "", ""]
"^": {commit: "……"}
_: ["——", ""]
"`": ""
"{": ["『", "〖", "〈", ""]
"|": ["·", "", "§", "¦"]
"}": ["』", "〗", "〉", ""]
"~": ""
half_shape:
"!": {commit: ""}
"\"": {pair: ["“", "”"]}
"#": "#"
"$": ["¥", "$", "€", "£", "¥", "¢", "¤"]
"%": ["%", "", "°", "℃"]
"&": "&"
"'": {pair: ["", ""]}
"(": ""
")": ""
"*": ["*", "", "·", "・", "×", "※", "❂"]
"+": "+"
":": ["", ""]
"<": {commit: ""}
"=": "="
">": {commit: "。"}
"?": ["", "", "/", "÷"]
"@": "@"
"[": ["「", "【", "《", "", ""]
"\\": ["、", "\\", ""]
"]": ["」", "】", "》", "", ""]
"^": {commit: "……"}
_: ["——", "", "-"]
"`": "`"
"{": ["『", "〖", "〈", ""]
"|": ["·", "|", "", "§", "¦"]
"}": ["』", "〗", "〉", ""]
"~": "~"
recognizer:
patterns:
email: "^[a-z][-_.0-9a-z]*@.*$"
reverse_lookup: "`[a-z]*'?$"
uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp:|mailto:).*$"
reverse_lookup:
comment_format:
- "xform/^m(\\d)$/mu$1/"
- "xform/^r5$/er5/"
- "xform/iu/iou/"
- "xform/ui/uei/"
- "xform/ong/ung/"
- "xform/^yi?/i/"
- "xform/^wu?/u/"
- "xform/iu/v/"
- "xform/^([jqx])u/$1v/"
- "xform/([iuv])n/$1en/"
- "xform/^zhi?/Z/"
- "xform/^chi?/C/"
- "xform/^shi?/S/"
- "xform/^([zcsr])i/$1/"
- "xform/ai/A/"
- "xform/ei/I/"
- "xform/ao/O/"
- "xform/ou/U/"
- "xform/ang/K/"
- "xform/eng/G/"
- "xform/an/M/"
- "xform/en/N/"
- "xform/er/R/"
- "xform/eh/E/"
- "xform/([iv])e/$1E/"
- "xform/1//"
- "xlit|bpmfdtnlgkhjqxZCSrzcsiuvaoeEAIOUMNKGR2345|ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄧㄨㄩㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦˊˇˋ˙|"
dictionary: stroke
enable_completion: true
preedit_format:
- "xlit/hspnz/一丨丿丶乙/"
prefix: "`"
suffix: "'"
tips: "〔筆畫〕"
schema:
author:
- "佛振 <chen.sst@gmail.com>"
dependencies:
- stroke
description: |
注音符號輸入,採用「大千式」鍵盤排列。
本方案採用「無模式」設計,以大寫字母鍵或上下方向鍵、回車鍵選詞;
空格鍵輸入第一聲,標記爲「ˉ」。
請配合 librime>=1.3 使用。
name: "注音"
schema_id: bopomofo
version: 2.4
selector:
bindings:
ISO_Left_Tab: previous_candidate
"Shift+Tab": previous_candidate
Tab: next_candidate
speller:
algebra:
- "xform/^m(\\d)$/mu$1/"
- "xform/^r5$/er5/"
- "xform/iu/iou/"
- "xform/ui/uei/"
- "xform/ong/ung/"
- "xform/^yi?/i/"
- "xform/^wu?/u/"
- "xform/iu/v/"
- "xform/^([jqx])u/$1v/"
- "xform/([iuv])n/$1en/"
- "xform/^zhi?/Z/"
- "xform/^chi?/C/"
- "xform/^shi?/S/"
- "xform/^([zcsr])i/$1/"
- "xform/ai/A/"
- "xform/ei/I/"
- "xform/ao/O/"
- "xform/ou/U/"
- "xform/ang/K/"
- "xform/eng/G/"
- "xform/an/M/"
- "xform/en/N/"
- "xform/er/R/"
- "xform/eh/E/"
- "xform/([iv])e/$1E/"
- "derive/([bpmfdtnlgkhjqxZCSrzcs])([iuv])/$2$1/"
- "derive/([iuv])([aoeEAIOUMNKGR])/$2$1/"
- "derive/([bpmfdtnlgkhjqxZCSrzcs])([aoeEAIOUMNKGR])/$2$1/"
- "derive/([bpmfdtnlgkhjqxZCSrzcs])([iuv])/$2$1/"
- "abbrev/^([bpmfdtnlgkhjqxZCSrzcs]).+$/$1/"
- "abbrev/^([A-Za-z]+)\\d$/$1/"
- "abbrev/^([bpmfdtnlgkhjqxZCSrzcs]).+(\\d)$/$1$2/"
- "xlit|bpmfdtnlgkhjqxZCSrzcsiuvaoeEAIOUMNKGR12345|1qaz2wsxedcrfv5tgbyhnujm8ik,9ol.0p;/- 6347|"
alphabet: "1qaz2wsxedcrfv5tgbyhnujm8ik,9ol.0p;/- 6347"
delimiter: "'"
finals: " 6347"
initials: "1qaz2wsxedcrfv5tgbyhnujm8ik,9ol.0p;/-"
use_space: true
switches:
- name: ascii_mode
reset: 0
states: ["中文", "西文"]
- name: full_shape
states: ["半角", "全角"]
- options: [zh_hant, zh_hans, zh_hant_tw]
states: ["傳統漢字", "简化字", "臺灣字形"]
translator:
dictionary: terra_pinyin
preedit_format:
- "xlit|1qaz2wsxedcrfv5tgbyhnujm8ik,9ol.0p;/- 6347'|ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄧㄨㄩㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦˉˊˇˋ˙ |"
prism: bopomofo
zh_hans:
excluded_types:
- reverse_lookup
opencc_config: t2s.json
option_name: zh_hans
tips: all
zh_hant_tw:
excluded_types:
- reverse_lookup
opencc_config: t2tw.json
option_name: zh_hant_tw
tips: none