Files
DataBackup/Rime/lufs_flypy.schema.yaml
CrazyJasonwell 97fbdf0277 first commit
2025-04-19 20:17:58 +08:00

181 lines
4.7 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.
# Rime schema
# encoding: utf-8
schema:
schema_id: lufs_flypy
name: 小鹤双拼
version: "2023-12-18"
author:
- double pinyin layout by 鶴
- Rime schema by 佛振 <chen.sst@gmail.com>
- Modified by Lufs_X <i@isteed.cc>
description: |
小鹤双拼方案。
稍微的改了一下(小声
switches:
- name: ascii_mode # 未启用 ascii_composer 时,该项无意义
# reset: 0 # 默认状态: 0 中文输入 1 英文输入
states: [中文, 西文]
- name: full_shape
states: [半角, 全角]
- name: ascii_punct
states: [。,, .,]
- name: traditionalization
# reset: 0 # 默认状态: 0 简体 1 繁体
states: [简, 繁]
- name: emoji_suggestion
# reset: 1 # 默认状态: 0 关闭 1 开启
states: [🈚️️, 🈶️]
engine:
processors:
# - ascii_composer # Windows 用户请解除此行注释,否则将会无法切换到英文输入
- recognizer
- lua_processor@select_character # lua 选词扩展,如需关闭请注释
- key_binder
- speller
- selector
- punctuator
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- lua_translator@date_translator # 动态日期时间输入
- lua_translator@unicode_input # Unicode 输入支持
- table_translator@custom_phrase # 用户自定义词典
- script_translator
filters:
- simplifier@emoji_suggestion
- simplifier@traditionalize # 简繁转化
- uniquifier # 去重
# - lua_filter@long_phrase_first # 最长词组和单字在先
# - lua_filter@single_char_first # 单字优先
# - lua_filter@single_char_only # 只显示单字
traditionalize:
option_name: traditionalization
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
tips: none # 转换提示: all 显示 | char 仅单字显示 | none 不显示。
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: false
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba/
delimiter: " '"
algebra:
- erase/^xx$/
- erase/^hm$/
- erase/^m$/
- erase/^n$/
- erase/^ng$/
# 模糊音区域
# 依据个人情况修改注释~
# 注释格式:键盘的输入码 -> 转化后的输入码
# 声母部分
# - derive/^([z])h/$1/ # z -> zh
# - derive/^([z])([^h])/$1h$2/ # zh -> z
# - derive/^([c])h/$1/ # c -> ch
# - derive/^([c])([^h])/$1h$2/ # ch -> c
# - derive/^([s])h/$1/ # s -> sh
# - derive/^([s])([^h])/$1h$2/ # sh -> s
# - derive/^l/n/ # n -> l
# - derive/^n/l/ # l -> n
# - derive/^r/l/ # l -> r
# - derive/^r/y/ # y -> r
# - derive/^hu$/fu/ # fu -> hu
# - derive/^fu$/hu/ # hu -> fu
# 韵母部分
- derive/([^iu])([a])n$/$1$2ng/ # ang -> an
- derive/([^iu])([a])ng$/$1$2n/ # an -> ang
- derive/([e])n$/$1ng/ # eng -> en
- derive/([e])ng$/$1n/ # en -> eng
# - derive/([i])n$/$1ng/ # ing -> in
# - derive/([i])ng$/$1n/ # in -> ing
# - derive/([i])an$/$1ang/ # iang -> ian
# - derive/([i])ang$/$1an/ # ian -> iang
# 由于小鹤双拼特性,无需 uang <-> iang
# 其它模糊音
# - derive/^hui$/fei/ # fei -> hui
# - derive/^fei$/hui/ # hui -> fei
# - derive/^huang$/wang/ # wang -> huang
# - derive/^wang$/huang/ # huang -> wang
# - derive/^([bpmfw])eng$/$1ong/ # bpmfw 后接 ong -> bpmfw 后接 eng
# 小鹤双拼码表
- derive/^([jqxy])u$/$1v/
- derive/^([aoe])([ioun])$/$1$1$2/
- xform/^([aoe])(ng)?$/$1$1$2/
- xform/iu$/Q/
- xform/(.)ei$/$1W/
- xform/uan$/R/
- xform/[uv]e$/T/
- xform/un$/Y/
- xform/^sh/U/
- xform/^ch/I/
- xform/^zh/V/
- xform/uo$/O/
- xform/ie$/P/
- xform/i?ong$/S/
- xform/ing$|uai$/K/
- xform/(.)ai$/$1D/
- xform/(.)en$/$1F/
- xform/(.)eng$/$1G/
- xform/[iu]ang$/L/
- xform/(.)ang$/$1H/
- xform/ian$/M/
- xform/(.)an$/$1J/
- xform/(.)ou$/$1Z/
- xform/[iu]a$/X/
- xform/iao$/N/
- xform/(.)ao$/$1C/
- xform/ui$/V/
- xform/in$/B/
- xlit/QWRTYUIOPSDFGHJKLZXCVBNM/qwrtyuiopsdfghjklzxcvbnm/
# 简拼支持
- abbrev/^(.).+$/$1/
translator:
dictionary: extended
contextual_suggestions: true
enable_completion: false
max_homophones: 7
preedit_format:
# - xform/ // # 去掉上屏字符间空格
prism: lufs_flypy
grammar:
language: zh-hans-t-essay-bgw
punctuator:
import_preset: lufs_symbols
key_binder:
import_preset: default
recognizer:
import_preset: default
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: true
initial_quality: 1