rime-ice/radical_pinyin.schema.yaml
2024-09-12 11:10:11 +08:00

276 lines
7.5 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 settings
# encoding: utf-8
schema:
schema_id: radical_pinyin
name: "部件拆字 | 全拼双拼"
version: "2.0.0"
author: Mirtle
description: |
用拼音按顺序打出偏旁部件,组合出汉字
码表:开放词典 / henrysting / Mirtle
注音、校对、方案Mirtle
仓库https://github.com/mirtlecn/rime_radical_pinyin
engine:
processors:
- key_binder
- speller
- selector
- navigator
- express_editor
segmentors:
- abc_segmentor
translators:
- echo_translator
- table_translator
filters:
- uniquifier
key_binder:
__include: default:/key_binder?
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz;"
delimiter: " '"
algebra:
# 根据当前所用拼音方案选择 __include 的值
__include: algebra_pinyin # 全拼
# __include: algebra_double_pinyin # 自然码双拼
# __include: algebra_flypy # 小鹤双拼
# __include: algebra_mspy # 微软双拼
# __include: algebra_sogou # 搜狗双拼
# __include: algebra_abc # 智能ABC双拼
# __include: algebra_ziguang # 紫光双拼
translator:
dictionary: radical_pinyin
enable_user_dict: false
algebra_pinyin:
- xform/'//
- derive/^([nl])ue$/$1ve/
- derive/'([nl])ue$/'$1ve/
- derive/^([jqxy])u/$1v/
- derive/'([jqxy])u/'$1v/
algebra_double_pinyin:
- derive/^([jqxy])u(?=^|$|')/$1v/
- derive/'([jqxy])u(?=^|$|')/'$1v/
- derive/^([aoe])([ioun])(?=^|$|')/$1$1$2/
- derive/'([aoe])([ioun])(?=^|$|')/'$1$1$2/
- xform/^([aoe])(ng)?(?=^|$|')/$1$1$2/
- xform/'([aoe])(ng)?(?=^|$|')/'$1$1$2/
- xform/iu(?=^|$|')/<q>/
- xform/[iu]a(?=^|$|')/<w>/
- xform/[uv]an(?=^|$|')/<r>/
- xform/[uv]e(?=^|$|')/<t>/
- xform/ing(?=^|$|')|uai(?=^|$|')/<y>/
- xform/^sh/<u>/
- xform/^ch/<i>/
- xform/^zh/<v>/
- xform/'sh/'<u>/
- xform/'ch/'<i>/
- xform/'zh/'<v>/
- xform/uo(?=^|$|')/<o>/
- xform/[uv]n(?=^|$|')/<p>/
- xform/([a-z>])i?ong(?=^|$|')/$1<s>/
- xform/[iu]ang(?=^|$|')/<d>/
- xform/([a-z>])en(?=^|$|')/$1<f>/
- xform/([a-z>])eng(?=^|$|')/$1<g>/
- xform/([a-z>])ang(?=^|$|')/$1<h>/
- xform/ian(?=^|$|')/<m>/
- xform/([a-z>])an(?=^|$|')/$1<j>/
- xform/iao(?=^|$|')/<c>/
- xform/([a-z>])ao(?=^|$|')/$1<k>/
- xform/([a-z>])ai(?=^|$|')/$1<l>/
- xform/([a-z>])ei(?=^|$|')/$1<z>/
- xform/ie(?=^|$|')/<x>/
- xform/ui(?=^|$|')/<v>/
- xform/([a-z>])ou(?=^|$|')/$1<b>/
- xform/in(?=^|$|')/<n>/
- xform/'|<|>//
algebra_flypy:
- derive/^([jqxy])u(?=^|$|')/$1v/
- derive/'([jqxy])u(?=^|$|')/'$1v/
- derive/^([aoe])([ioun])(?=^|$|')/$1$1$2/
- derive/'([aoe])([ioun])(?=^|$|')/'$1$1$2/
- xform/^([aoe])(ng)?(?=^|$|')/$1$1$2/
- xform/'([aoe])(ng)?(?=^|$|')/'$1$1$2/
- xform/iu(?=^|$|')/<q>/
- xform/(.)ei(?=^|$|')/$1<w>/
- xform/uan(?=^|$|')/<r>/
- xform/[uv]e(?=^|$|')/<t>/
- xform/un(?=^|$|')/<y>/
- xform/^sh/<u>/
- xform/^ch/<i>/
- xform/^zh/<v>/
- xform/'sh/'<u>/
- xform/'ch/'<i>/
- xform/'zh/'<v>/
- xform/uo(?=^|$|')/<o>/
- xform/ie(?=^|$|')/<p>/
- xform/([a-z>])i?ong(?=^|$|')/$1<s>/
- xform/ing(?=^|$|')|uai(?=^|$|')/<k>/
- xform/([a-z>])ai(?=^|$|')/$1<d>/
- xform/([a-z>])en(?=^|$|')/$1<f>/
- xform/([a-z>])eng(?=^|$|')/$1<g>/
- xform/[iu]ang(?=^|$|')/<l>/
- xform/([a-z>])ang(?=^|$|')/$1<h>/
- xform/ian(?=^|$|')/<m>/
- xform/([a-z>])an(?=^|$|')/$1<j>/
- xform/([a-z>])ou(?=^|$|')/$1<z>/
- xform/[iu]a(?=^|$|')/<x>/
- xform/iao(?=^|$|')/<n>/
- xform/([a-z>])ao(?=^|$|')/$1<c>/
- xform/ui(?=^|$|')/<v>/
- xform/in(?=^|$|')/<b>/
- xform/'|<|>//
algebra_mspy:
- derive/^([jqxy])u(?=^|$|')/$1v/
- derive/'([jqxy])u(?=^|$|')/'$1v/
- derive/^([aoe].*)(?=^|$|')/o$1/
- derive/'([aoe].*)(?=^|$|')/'o$1/
- xform/^([ae])(.*)(?=^|$|')/$1$1$2/
- xform/'([ae])(.*)(?=^|$|')/'$1$1$2/
- xform/iu(?=^|$|')/<q>/
- xform/[iu]a(?=^|$|')/<w>/
- xform/er(?=^|$|')|[uv]an(?=^|$|')/<r>/
- xform/[uv]e(?=^|$|')/<t>/
- xform/v(?=^|$|')|uai(?=^|$|')/<y>/
- xform/^sh/<u>/
- xform/^ch/<i>/
- xform/^zh/<v>/
- xform/'sh/'<u>/
- xform/'ch/'<i>/
- xform/'zh/'<v>/
- xform/uo(?=^|$|')/<o>/
- xform/[uv]n(?=^|$|')/<p>/
- xform/([a-z>])i?ong(?=^|$|')/$1<s>/
- xform/[iu]ang(?=^|$|')/<d>/
- xform/([a-z>])en(?=^|$|')/$1<f>/
- xform/([a-z>])eng(?=^|$|')/$1<g>/
- xform/([a-z>])ang(?=^|$|')/$1<h>/
- xform/ian(?=^|$|')/<m>/
- xform/([a-z>])an(?=^|$|')/$1<j>/
- xform/iao(?=^|$|')/<c>/
- xform/([a-z>])ao(?=^|$|')/$1<k>/
- xform/([a-z>])ai(?=^|$|')/$1<l>/
- xform/([a-z>])ei(?=^|$|')/$1<z>/
- xform/ie(?=^|$|')/<x>/
- xform/ui(?=^|$|')/<v>/
- derive/<t>(?=^|$|')/<v>/
- xform/([a-z>])ou(?=^|$|')/$1<b>/
- xform/in(?=^|$|')/<n>/
- xform/ing(?=^|$|')/;/
- xform/'|<|>//
algebra_sogou:
- derive/^([jqxy])u(?=^|$|')/$1v/
- derive/'([jqxy])u(?=^|$|')/'$1v/
- derive/^([aoe].*)(?=^|$|')/o$1/
- derive/'([aoe].*)(?=^|$|')/'o$1/
- xform/^([ae])(.*)(?=^|$|')/$1$1$2/
- xform/'([ae])(.*)(?=^|$|')/'$1$1$2/
- xform/iu(?=^|$|')/<q>/
- xform/[iu]a(?=^|$|')/<w>/
- xform/er(?=^|$|')|[uv]an(?=^|$|')/<r>/
- xform/[uv]e(?=^|$|')/<t>/
- xform/v(?=^|$|')|uai(?=^|$|')/<y>/
- xform/^sh/<u>/
- xform/^ch/<i>/
- xform/^zh/<v>/
- xform/'sh/'<u>/
- xform/'ch/'<i>/
- xform/'zh/'<v>/
- xform/uo(?=^|$|')/<o>/
- xform/[uv]n(?=^|$|')/<p>/
- xform/([a-z>])i?ong(?=^|$|')/$1<s>/
- xform/[iu]ang(?=^|$|')/<d>/
- xform/([a-z>])en(?=^|$|')/$1<f>/
- xform/([a-z>])eng(?=^|$|')/$1<g>/
- xform/([a-z>])ang(?=^|$|')/$1<h>/
- xform/ian(?=^|$|')/<m>/
- xform/([a-z>])an(?=^|$|')/$1<j>/
- xform/iao(?=^|$|')/<c>/
- xform/([a-z>])ao(?=^|$|')/$1<k>/
- xform/([a-z>])ai(?=^|$|')/$1<l>/
- xform/([a-z>])ei(?=^|$|')/$1<z>/
- xform/ie(?=^|$|')/<x>/
- xform/ui(?=^|$|')/<v>/
- xform/([a-z>])ou(?=^|$|')/$1<b>/
- xform/in(?=^|$|')/<n>/
- xform/ing(?=^|$|')/;/
- xform/'|<|>//
algebra_abc:
- xform/^zh/<a>/
- xform/^ch/<e>/
- xform/^sh/<v>/
- xform/'zh/'<a>/
- xform/'ch/'<e>/
- xform/'sh/'<v>/
- xform/^([aoe].*)(?=^|$|')/<o>$1/
- xform/'([aoe].*)(?=^|$|')/'<o>$1/
- xform/ei(?=^|$|')/<q>/
- xform/ian(?=^|$|')/<w>/
- xform/er(?=^|$|')|iu(?=^|$|')/<r>/
- xform/[iu]ang(?=^|$|')/<t>/
- xform/ing(?=^|$|')/<y>/
- xform/uo(?=^|$|')/<o>/
- xform/uan(?=^|$|')/<p>/
- xform/([a-z>])i?ong(?=^|$|')/$1<s>/
- xform/[iu]a(?=^|$|')/<d>/
- xform/en(?=^|$|')/<f>/
- xform/eng(?=^|$|')/<g>/
- xform/ang(?=^|$|')/<h>/
- xform/an(?=^|$|')/<j>/
- xform/iao(?=^|$|')/<z>/
- xform/ao(?=^|$|')/<k>/
- xform/in(?=^|$|')|uai(?=^|$|')/<c>/
- xform/ai(?=^|$|')/<l>/
- xform/ie(?=^|$|')/<x>/
- xform/ou(?=^|$|')/<b>/
- xform/un(?=^|$|')/<n>/
- xform/[uv]e(?=^|$|')|ui(?=^|$|')/<m>/
- xform/'|<|>//
algebra_ziguang:
- derive/^([jqxy])u(?=^|$|')/$1v/
- derive/'([jqxy])u(?=^|$|')/'$1v/
- xform/'([aoe].*)(?=^|$|')/'<o>$1/
- xform/^([aoe].*)(?=^|$|')/<o>$1/
- xform/en(?=^|$|')/<w>/
- xform/eng(?=^|$|')/<t>/
- xform/in(?=^|$|')|uai(?=^|$|')/<y>/
- xform/^zh/<u>/
- xform/^sh/<i>/
- xform/'zh/'<u>/
- xform/'sh/'<i>/
- xform/uo(?=^|$|')/<o>/
- xform/ai(?=^|$|')/<p>/
- xform/^ch/<a>/
- xform/'ch/'<a>/
- xform/[iu]ang(?=^|$|')/<g>/
- xform/ang(?=^|$|')/<s>/
- xform/ie(?=^|$|')/<d>/
- xform/ian(?=^|$|')/<f>/
- xform/([a-z>])i?ong(?=^|$|')/$1<h>/
- xform/er(?=^|$|')|iu(?=^|$|')/<j>/
- xform/ei(?=^|$|')/<k>/
- xform/uan(?=^|$|')/<l>/
- xform/ing(?=^|$|')/;/
- xform/ou(?=^|$|')/<z>/
- xform/[iu]a(?=^|$|')/<x>/
- xform/iao(?=^|$|')/<b>/
- xform/ue(?=^|$|')|ui(?=^|$|')|ve(?=^|$|')/<n>/
- xform/un(?=^|$|')/<m>/
- xform/ao(?=^|$|')/<q>/
- xform/an(?=^|$|')/<r>/
- xform/'|<|>//