rime-ice/melt_eng.schema.yaml
Mirtle b6d39175b0
feat: 英文词汇自动大写转换 (#305)
示例:
输入小写,得到词库中的原样:latex → LaTeX
输入首字母大写,得到首字母大写:Hello → Hello
输入前2~n个字母大写,得到全大写:HEllo → HELLO
同上,输入全大写,得到全大写:HELLO → HELLO
2023-05-30 22:06:38 +08:00

78 lines
1.7 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:
# 为编码派生新的拼写:
# 删除特殊字符
- derive/['\-_+,.]+//
# 全小写
- 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