rime-ice/melt_eng.schema.yaml

223 lines
5.0 KiB
YAML
Raw 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
# vim: set sw=2 sts=2 et:
# encoding: utf-8
#
# 复制自 https://github.com/tumuyan/rime-melt修改了一点拼写派生
schema:
schema_id: melt_eng
name: Easy English Nano
version: "0.2.2"
author:
- Patrick <ipatrickmac@gmail.com>
- tumuyan <tumuyan@21cn.com>
description: Easy English Nano只包含少量常用词汇方便中英文混合输入度方案调用。
switches:
- name: ascii_mode
reset: 0
states: [ASCII-OFF, ASCII-ON]
engine:
processors:
- ascii_composer
- key_binder
- speller
- recognizer
#關閉標點符號轉換對應symbols.yaml - punctuator
- selector
- navigator
- express_editor
segmentors:
- matcher
- ascii_segmentor
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- table_translator
- punct_translator
filters:
- uniquifier
speller:
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
delimiter: " '"
algebra:
# 根据当前所用中文方案修改 __include 的值
# algebra_rime_ice ; algebra_flypy ; algebra_mspy ; algebra_ziguang ; algebra_double_pinyin
__include: algebra_rime_ice
__append:
# 数字派生
- derive/1([4-7|9])/$1teen/
- derive/11/eleven/
- derive/12/twelve/
- derive/13/thirteen/
- derive/15/fifteen/
- derive/18/eighteen/
- derive/0/o/ # 如 1000 -> oneOOO
- derive/0/O/
- derive/0/zero/
- derive/1/one/
- derive/10/ten/
- derive/2/to/ #
- derive/2/two/
- derive/3/three/
- derive/4/for/
- derive/4/four/
- derive/5/five/
- derive/6/six/
- derive/7/seven/
- derive/8/eight/
- derive/9/nine/
# 符号派生
- derive/\+/plus/
- derive/\./dot/
- derive/@/at/
- derive/-/hyphen/
- derive / slash
# 派生无单个特殊字符的拼写
- derive/[.]//
- derive/[+]//
- derive/[@]//
- derive/[-]//
- derive/[_]//
# 派生无任何非字母数字字符的拼写
- derive/[^a-zA-Z0-9]//
# 禁用非英文、数字开头的编码
- erase/^[\W|_].+$/
# 全小写
- derive/^.+$/\L$0/
# 全大写
- derive/^.+$/\U$0/
# 首字母大写
- derive/^./\U$0/
# 前 2~10 个字母大写
- derive/^([a-z]{2})/\U$1/
- derive/^([a-z]{3})/\U$1/
- derive/^([a-z]{4})/\U$1/
- derive/^([a-z]{5})/\U$1/
- derive/^([a-z]{6})/\U$1/
- derive/^([a-z]{7})/\U$1/
- derive/^([a-z]{8})/\U$1/
- derive/^([a-z]{9})/\U$1/
- derive/^([a-z]{10})/\U$1/
translator:
dictionary: melt_eng
spelling_hints: 9
key_binder:
import_preset: default
punctuator:
import_preset: default
recognizer:
import_preset: default
algebra_rime_ice:
- derive/(?<!\d)1([1-9])(?!\d)/shi$1/
- derive/([1-9])0000(?!0)/$1wan/
- derive/([1-9])000(?!0)/$1qian/
- derive/([1-9])00(?!0)/$1bai/
- derive/([2-9])0(?!0)/$1shi/
- derive/(?<!\d)([2-9])([1-9])(?!\d)/$1shi$2/
- derive/\./dian/
- derive/10/shi/
- derive/0/ling/
- derive/1/yi/
- derive/2/er/
- derive/2/liang/
- derive/3/san/
- derive/4/si/
- derive/5/wu/
- derive/6/liu/
- derive/7/qi/
- derive/8/ba/
- derive/9/jiu/
algebra_flypy:
- derive/(?<!\d)1([1-9])(?!\d)/ui$1/
- derive/([1-9])0000(?!0)/$1wj/
- derive/([1-9])000(?!0)/$1qm/
- derive/([1-9])00(?!0)/$1bd/
- derive/([2-9])0(?!0)/$1ui/
- derive/(?<!\d)([2-9])([1-9])(?!\d)/$1ui$2/
- derive/\./dm/
- derive/10/ui/
- derive/0/lk/
- derive/1/yi/
- derive/2/er/
- derive/2/ll/
- derive/3/sj/
- derive/4/si/
- derive/5/wu/
- derive/6/lq/
- derive/7/qi/
- derive/8/ba/
- derive/9/jq/
algebra_mspy:
- derive/(?<!\d)1([1-9])(?!\d)/ui$1/
- derive/([1-9])0000(?!0)/$1wj/
- derive/([1-9])000(?!0)/$1qm/
- derive/([1-9])00(?!0)/$1bl/
- derive/([2-9])0(?!0)/$1ui/
- derive/(?<!\d)([2-9])([1-9])(?!\d)/$1ui$2/
- derive/\./dm/
- derive/10/ui/
- derive/0/l;/
- derive/1/yi/
- derive/2/er/
- derive/2/ld/
- derive/3/sj/
- derive/4/si/
- derive/5/wu/
- derive/6/lq/
- derive/7/qi/
- derive/8/ba/
- derive/9/jq/
algebra_ziguang:
- derive/(?<!\d)1([1-9])(?!\d)/ii$1/
- derive/([1-9])0000(?!0)/$1wr/
- derive/([1-9])000(?!0)/$1qf/
- derive/([1-9])00(?!0)/$1bp/
- derive/([2-9])0(?!0)/$1ii/
- derive/(?<!\d)([2-9])([1-9])(?!\d)/$1ii$2/
- derive/\./df/
- derive/10/ii/
- derive/0/l;/
- derive/1/yi/
- derive/2/er/
- derive/2/lg/
- derive/3/sr/
- derive/4/si/
- derive/5/wu/
- derive/6/lj/
- derive/7/qi/
- derive/8/ba/
- derive/9/jj/
algebra_double_pinyin:
- derive/(?<!\d)1([1-9])(?!\d)/ui$1/
- derive/([1-9])0000(?!0)/$1wj/
- derive/([1-9])000(?!0)/$1qm/
- derive/([1-9])00(?!0)/$1bl/
- derive/([2-9])0(?!0)/$1ui/
- derive/(?<!\d)([2-9])([1-9])(?!\d)/$1ui$2/
- derive/\./dm/
- derive/10/ui/
- derive/0/ly/
- derive/1/yi/
- derive/2/er/
- derive/2/ld/
- derive/3/sj/
- derive/4/si/
- derive/5/wu/
- derive/6/lq/
- derive/7/qi/
- derive/8/ba/
- derive/9/jq/