-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprocessor_plugin.yaml
121 lines (112 loc) · 3.93 KB
/
processor_plugin.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#--------------------------------
# custom.yaml
# patch:
# __include: processor_plugin:/patch
#
# init_processor module
# append before_modules to segmentors translators filters
# append modules to segmentors translators filters
# append after_modules to segmentors translators filters
#--------------------------------
patch:
engine/processors/@after 0: lua_processor@init_processor@module
#engine/processors/@after 0: lua_processor@init_proc
schema/dependencies/+:
- essay
- essay_cn
- stroke
module:
modules:
- { prescription: "[email protected]@command" } # lua/command/proc.lua namespace: command
- { prescription: "[email protected]@cal_cmd" } # lua/command/proc.lua namespace: command
- { prescription: "lua_processor@select_character.proc" } # lua/select_character/proc.lua namespace: translator(default)
- { prescription: "[email protected]@english" } # lua/english/proc.lua namespace: english
- { prescription: "[email protected]@conjunctive"} # conjunctive/prac.lua namespace: conjunctive
- { prescription: "lua_processor@multi_reverse.proc@multi_reverse" } # lua/multi_reverse/proc.lua namespace: multi_reverse
keybinds:
prtscr: "Control+F12" # commit_text of menu list
prtkey: "Shift+F12"
reload: "F9"
# init_processor append comopents
before_modules:
filters:
- lua_filter@stroke_count
#- lua_filter@debug_filter
segments:
translators:
- lua_translator@unicode_tran
#- lua_translator@ecdict
after_modules:
filters:
- lua_filter@stroke_count
#- uniquifier
#- lua_filter@multi_reverse.filter@S_luna_pinyin
- lua_filter@debug_filter
segments:
translators:
- lua_translator@memory_tran@luna_pinyin
- lua_translator@select_character.tran@select_character # select_character 配件 模擬矩陣符號表 []1-0 選字 /emj /nu /sma /smb /smc
# select_character name_space translator 須要調用反查字典和 comment_format 設定 name_space :translator
# name_space of select_character hot-key
#
#translator/dictionary:
#translator/comment_format:
#translator/preedit_format:
translator/keybinds: # nama_space of keybinds of select_character
next: [ #--->
prev: ] #<--
#-------------- modules initialize of name_space
multi_reverse:
keybinds:
toggle: "Control+6"
qcode: "Control+7"
completion: "Control+8"
next: "Control+9"
prev: "Control+0"
hold: "Shift_L"
extensions: #用於 方案只有主字典,用以反查其他方案主字典
- luna_pinyin # add lua_filter@multi_reverse.filter@S_luna_pinyin 讀取 luna_pinyin.schema:/translator data
- cangjie5
#------------ english module
english: #
#tag: abc # 中文模式調用 英文字典 default : none
#
# 字典使用 english_conv.py file.[txt|csv] [chunk|leveldb] 轉換
dictionary: english #ecdict #english # defaul english_tw 字典橎位置 <user_data_dir>/english[.txtl] (leveldb | chunk)
keybinds:
toggle: F10 # enable/disable key
mode: "Shift+F10" #切換comment 模式
# 聯想namespace 設定
conjunctive:
files: essay.txt # essay_cn.txt <---- 字典
tran_name_space: luna_pinyin
escape_char: ".-"
keybinds:
toggle: "F11"
trigger: "~"
command: "C"
restory: "B"
histroy: "H"
left: "<"
right: ">"
debug_filter:
output_format: [dtype,type,start,_end,preedit,quality,input,ainput,error]
#tags:
# switches default
#__patch: append_sw
#append_sw:
switches/+:
- name: conjunctive
states: [ 🈲,聯]
reset: 1
- name: english
states: [ 🈲,英]
- name: multi_reverse
states: [ 🈲,查]
- name: qcode
states: [ 🈲,短]
- name: completion
states: [ 🈲,未]
- name: _debug
states: [ 🈲 , 🐞]
reset: 0