forked from baopaau/rime-bepemefeve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
guoqlo.schema.yaml
103 lines (91 loc) · 2.07 KB
/
guoqlo.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Rime schema
# encoding: utf-8
schema:
schema_id: guoqlo
name: 國語羅馬字(老國音)
version: '2024.09.07'
author:
- 抱豹 <[email protected]>
description: |
老國音輸入方案(國語羅馬字形式)
X鍵 可輸入 è(非獨用、非入聲字可用 E鍵)
Z鍵 可輸入 tz
C鍵 可輸入 ch
Q鍵 可輸入 ·(輕音符號)
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
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
- table_translator@custom_phrase
- script_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba'
delimiter: " '"
algebra:
- derive/(?<=[a-z])è$/e/
- derive/(?<=[a-z])èr/er/
- derive/(?<=[a-z])èè/ee/
- derive/(?<=[a-z])èh/eh/
- xform/è/x/
- derive/^\.//
- abbrev/^([iuaoeè]).+$/$1/
- abbrev/^([bpmfvdtnlgkhjrsyw])[iuaoeèy].+$/$1/
- abbrev/^(ng|gn|ch|sh|tz|ts).+$/$1/
- derive/^tz/z/
- derive/^ch/c/
- xform/^\./q/
translator:
dictionary: guoqlo
spelling_hints: 5 # ~字以內候選標註完整帶調拼音
preedit_format:
- xform/\<q/·/
- xform/x/è/
- xform/(?<!t)z/ᵗz/
- xform/c(?!h)/cʰ/
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
punctuator:
import_preset: default
key_binder:
import_preset: default
bindings:
- { when: paging, accept: minus, send: Page_Up }
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"
__patch:
# 使用八股文語言模型
- grammar:/hant?