Skip to main content

py.schema.yaml.md

# Rime schema
# encoding: utf-8

schema:
schema_id: py
name: 拼音
version: "1.0"
author:
- 佚名
description: |
源自 Android 拼音
dependencies:
- wubi98_dz
- wubi98_ci

switches:
- name: ascii_mode
reset: 0
states: [,]

engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- simplifier
- reverse_lookup_filter@dz_reverse_lookup
- reverse_lookup_filter@ci_reverse_lookup
- uniquifier

speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- abbrev/^([a-z]).+$/$1/
- abbrev/^([zcs]h).+$/$1/
- derive/^([nl])ue$/$1ve/
- derive/^([jqxy])u/$1v/
- derive/un$/uen/
- derive/ui$/uei/
- derive/iu$/iou/
- derive/([aeiou])ng$/$1gn/
- derive/([dtngkhrzcs])o(u|ng)$/$1o/
- derive/ong$/on/
- derive/ao$/oa/
- derive/([iu])a(o|ng?)$/a$1$2/

translator:
dictionary: py
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/

punctuator:
import_preset: symbols

key_binder:
import_preset: default

recognizer:
import_preset: default
patterns:
punct: '^/([0-9]0?|[A-Za-z]+)$'
reverse_lookup: "^z[a-z]*'?$"


dz_reverse_lookup:
dictionary: wubi98_dz.extended
overwrite_comment: true
enable_completion: true
tips: 〔五笔1〕

ci_reverse_lookup:
dictionary: wubi98_ci.extended
enable_completion: true
tips: 〔五笔2〕

style:
font_face: 'YaoSans'
font_point: 16
color_scheme: wechat
color_scheme_dark: wechat_dark
text_orientation: horizontal
candidate_list_layout: linear
inline_preedit: true
border_height: 0
border_width: 0
corner_radius: 8
spacing: 8

preset_color_schemes:
wechat:
name: "微信键盘 / WeChat-keyboard" # 配色取自微信键盘
author: zsakvo
back_color: 0xC8F0F0F0
comment_text_color: 0x999999
hilited_candidate_back_color: 0x75B100
hilited_candidate_text_color: 0xFFFFFF
hilited_mark_color: 0xBF616A # 标签前的标记
horizontal: true
text_color: 0x424242
border_color: 0xFFFFFF
# 选中区域配色
hilited_candidate_shadow_color: 0xDDDDDD # 阴影
# 候选框配色
shadow_color: 0xDDDDDD
wechat_dark:
name: '微信键盘_深色 / WeChat-keyboard_dark' # 配色取自微信键盘
back_color: 0xC85D5D5D #设置输入条的背景色,色值是按照 BGR 的形式 16 进制填写
border_color: 0x151515 #输入条边框颜色,似乎在横向模式下不起作用
border_color_width: 0 #输入条边框宽度
candidate_text_color: 0xFFFFFF #候选字颜色
text_color: 0xFFFFFF #普通候选字的颜色,非第一候选字
hilited_candidate_label_color: 0x151515 #第一候选字标签颜色,也就是数字 1
hilited_text_color: 0x151515 #第一候选字颜色
hilited_candidate_back_color: 0x75B100 #第一候选字高亮颜色(背景色)
# label_color: 0x888888 #普通标签的颜色(非第一候选字),也就是候选字数字
hilited_candidate_shadow_color: 0xDDDDDD # 阴影