大家好,初尝RIME输入法,希望能自己定制仅仅通过数字就能输入简体中文的输入法,目前字典正在倒腾,只是输入法定制方面遇到了障碍,希望能得到大家的帮助。非常感谢:
dict.yaml片段:
# Rime dictionary
# encoding: utf-8
#
# 具体略过
#
---
name: rtty_code_simp
version: "0.1"
columns:
- text
- code
...
一0001
丁0002
七0003
丈0004
三0005
上0006
下0007
不0008
丐0009
丑0010
rtty_code_simp.schema.yaml内容如下,实际上尝试通过对其他输入方式改动来达到目的,可惜失败了,小狼毫切换到该输入方式后,目前输入字母能有所反应并作为拼音输入法使用,但是直接输入数字的话却毫无反应直接输出数字:
# Rime schema
# encoding: utf-8
schema:
schema_id: rtty_code_simp
name: rtty_code_simp
version: "0.1"
author:
- 回头再改
description: |
回头再写
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: ascii_punct
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
speller:
alphabet: 1234567890
delimiter: " '"
algebra:
- erase/^xxxx$/
- abbrev/^([0-9]).+$/$1/
translator:
dictionary: rtty_code_simp
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
menu:
alternative_select_keys: abcdefghij
//以上
衷心求教!先行感谢!
dict.yaml片段:
# Rime dictionary
# encoding: utf-8
#
# 具体略过
#
---
name: rtty_code_simp
version: "0.1"
columns:
- text
- code
...
一0001
丁0002
七0003
丈0004
三0005
上0006
下0007
不0008
丐0009
丑0010
rtty_code_simp.schema.yaml内容如下,实际上尝试通过对其他输入方式改动来达到目的,可惜失败了,小狼毫切换到该输入方式后,目前输入字母能有所反应并作为拼音输入法使用,但是直接输入数字的话却毫无反应直接输出数字:
# Rime schema
# encoding: utf-8
schema:
schema_id: rtty_code_simp
name: rtty_code_simp
version: "0.1"
author:
- 回头再改
description: |
回头再写
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: ascii_punct
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
speller:
alphabet: 1234567890
delimiter: " '"
algebra:
- erase/^xxxx$/
- abbrev/^([0-9]).+$/$1/
translator:
dictionary: rtty_code_simp
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
menu:
alternative_select_keys: abcdefghij
//以上
衷心求教!先行感谢!

