From 92e296e7f7e21a25d923abf93c79efff6710750d Mon Sep 17 00:00:00 2001 From: xinsheng Date: Mon, 14 Oct 2024 14:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=8F=B7=E4=B8=B4=E6=97=B6=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=EF=BC=8C=E5=8F=82?= =?UTF-8?q?=E8=80=83=20https://github.com/KyleBing/rime-wubi86-jidian/issu?= =?UTF-8?q?es/154?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- default.custom.yaml | 39 +++++----- key_bindings.custom.yaml | 3 + lua/append_original_filter.lua | 35 +++++++++ lua/my/append_original_filter.lua | 60 ++++++++++++++++ lua/my/log.lua | 90 ++++++++++++++++++++++++ lua/my/processor_enter_skip_prefix.lua | 43 +++++++++++ lua/my/readme.txt | 13 ++++ lua/my/wubi86_jidian_date_translator.lua | 68 ++++++++++++++++++ lua/processor_enter_skip_prefix.lua | 37 ++++++++++ numbers.custom.yaml | 3 + punctuation.custom.yaml | 3 + weasel.custom.yaml | 27 ++++++- wubi86_jidian.custom.yaml | 3 + wubi86_jidian.dict.yaml | 20 +++--- wubi86_jidian.schema.yaml | 35 ++++++--- wubi86_jidian_user.dict.yaml | 12 +++- 16 files changed, 447 insertions(+), 44 deletions(-) create mode 100644 key_bindings.custom.yaml create mode 100644 lua/append_original_filter.lua create mode 100644 lua/my/append_original_filter.lua create mode 100644 lua/my/log.lua create mode 100644 lua/my/processor_enter_skip_prefix.lua create mode 100644 lua/my/readme.txt create mode 100644 lua/my/wubi86_jidian_date_translator.lua create mode 100644 lua/processor_enter_skip_prefix.lua create mode 100644 numbers.custom.yaml create mode 100644 punctuation.custom.yaml create mode 100644 wubi86_jidian.custom.yaml diff --git a/default.custom.yaml b/default.custom.yaml index a6470ca..4a6c55e 100644 --- a/default.custom.yaml +++ b/default.custom.yaml @@ -11,10 +11,10 @@ patch: schema_list: - schema: wubi86_jidian # 五笔 - schema: numbers # 大写数字 - - schema: wubi86_jidian_pinyin # 五笔拼音混输 - - schema: wubi86_jidian_trad # 五笔 - 简入繁出 - - schema: wubi86_jidian_trad_pinyin # 五笔拼音混输 - 简入繁出 - - schema: pinyin_simp # 普通拼音 +# - schema: wubi86_jidian_pinyin # 五笔拼音混输 +# - schema: wubi86_jidian_trad # 五笔 - 简入繁出 +# - schema: wubi86_jidian_trad_pinyin # 五笔拼音混输 - 简入繁出 +# - schema: pinyin_simp # 普通拼音 # Menu menu: @@ -67,22 +67,18 @@ patch: # 回车清码 # - { when: composing, accept: Return, send: Escape } + # `清码, 在vim模式插入状态下,中文输入法按Esc清屏时会将输入法切换成英文Bug,先暂时使用`或Ctrl+d清码 + - { when: composing, accept: grave, send: Escape } - # emacs key bindings, copy from https://github.com/rime/rime-prelude/blob/master/key_bindings.yaml - - { when: composing, accept: Control+p, send: Up } - - { when: composing, accept: Control+n, send: Down } - - { when: composing, accept: Control+b, send: Left } - - { when: composing, accept: Control+f, send: Right } - - { when: composing, accept: Control+a, send: Home } - - { when: composing, accept: Control+e, send: End } - - { when: composing, accept: Control+d, send: Delete } - - { when: composing, accept: Control+k, send: Shift+Delete } - - { when: composing, accept: Control+h, send: BackSpace } - - { when: composing, accept: Control+g, send: Escape } - - { when: composing, accept: Control+bracketleft, send: Escape } - - { when: composing, accept: Alt+v, send: Page_Up } - - { when: composing, accept: Control+v, send: Page_Down } - + # vim key bindings + - { when: composing, accept: Control+k, send: Up } + - { when: composing, accept: Control+j, send: Down } + - { when: composing, accept: Control+h, send: Left } + - { when: composing, accept: Control+l, send: Right } + - { when: composing, accept: Control+5, send: Home } + - { when: composing, accept: Control+4, send: End } + - { when: composing, accept: Control+d, send: Escape } + punctuator: full_shape: # 全角符号 " ": {commit: " "} @@ -135,7 +131,7 @@ patch: .: {commit: "。"} "/": "/" ":": {commit: ":"} - ";": {commit: ";"} + ";": {commit: ";"} # 分号临时英文需要 "<": {commit: "《"} "=": {commit: "="} ">": {commit: "》"} @@ -154,5 +150,6 @@ patch: recognizer: patterns: # 一些常见的英文组合,当正则匹配到这些时,都不会生成候选词,而只输入英文 email: "^[-_.0-9A-Za-z]+@.*$" - uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" + # uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" url: "^(www[.]|https?:|ftp[.:]|mailto:|file:|localhost).*$|^[a-z]+[.].+$" + english: "^[;A-Z][-;_+'a-zA-Z]*$" # 分号临时英文需要 diff --git a/key_bindings.custom.yaml b/key_bindings.custom.yaml new file mode 100644 index 0000000..9d2fe66 --- /dev/null +++ b/key_bindings.custom.yaml @@ -0,0 +1,3 @@ +# encoding: utf-8 + +patch: diff --git a/lua/append_original_filter.lua b/lua/append_original_filter.lua new file mode 100644 index 0000000..2ec5c3b --- /dev/null +++ b/lua/append_original_filter.lua @@ -0,0 +1,35 @@ +-- 原始字符串输出,用来实现分号临时英文,再输入分号顶屏上字 + +function append_original_filter(input, env) + local envengine = env.engine + local envcontext = envengine.context + local composition = envcontext.composition + local segmentation = composition:toSegmentation() + local schema = envengine.schema + + if(not composition:empty()) then + local seg = composition:back() + if schema.schema_id == "easy_en" then + yield(Candidate("string", seg.start, seg._end, segmentation.input, "")) + elseif segmentation.input:sub(1, 1) == ";" and segmentation.input:len() > 1 then + if segmentation.input:sub(segmentation.input:len(), segmentation.input:len()) == ";" then + envengine:commit_text(string.sub(segmentation.input, 2)) + -- envengine:commit_text(";") + envcontext:clear() + return + -- else + -- yield(Candidate("space", seg.start, seg._end, string.sub(segmentation.input, 2), "")) + end + end + end + for cand in input:iter() do + yield(cand) + end +end + + +return append_original_filter + + + + diff --git a/lua/my/append_original_filter.lua b/lua/my/append_original_filter.lua new file mode 100644 index 0000000..eea1757 --- /dev/null +++ b/lua/my/append_original_filter.lua @@ -0,0 +1,60 @@ +-- 原始字符串输出,用来实现分号临时英文,再输入分号顶屏上字 + +-- local log = require 'log' +-- log.outfile = "D:\\aux_code.log" + +local function append_original_filter(input, env) + local envengine = env.engine + local envcontext = envengine.context + local composition = envcontext.composition + local segmentation = composition:toSegmentation() + local schema = envengine.schema + + if(not composition:empty()) then + local seg = composition:back() + local segInput = segmentation.input + local segInputLen = string.len(segInput) + if schema.schema_id == "easy_en" then + yield(Candidate("string", seg.start, seg._end, segInput, "")) + elseif segInput:sub(1, 1) == ";" then + -- 分号是引导的,输入字符大于一个才有效 + if segInputLen > 1 then + -- 这里和正则字符集和 default.custom.yaml recognizer/patterns/english 配置有关联 + local word = string.match(segInput, ".*[-_+'a-zA-Z]$") + -- log.info('s', segInput, word==nil, segInputLen, string.sub(segInput,segInputLen, segInputLen), string.sub(segInput,segInputLen, segInputLen)==";") + -- 如果是英语单词,则在候选栏里显示 + if word ~= nil then + -- log.info('t', segInput) + yield(Candidate("word", seg.start, seg._end, string.sub(segInput, 2), "")) + elseif string.sub(segInput,segInputLen, segInputLen) == ";" then + -- 如果是以分号结尾的则上屏 + -- log.info('u', segInput) + envengine:commit_text(string.sub(segInput, 2)) + envcontext:clear() + return + end + end + else + local word = string.match(segInput, "^[A-Z][-_+'a-zA-Z]*$") + -- 如果是以大写字母开关的,则在候选栏里显示 + if word ~= nil then + yield(Candidate("word", seg.start, seg._end, segInput, "")) + elseif string.sub(segInput,segInputLen, segInputLen) == ";" then + -- + envengine:commit_text(segInput, 2) + envcontext:clear() + return + end + end + end + for cand in input:iter() do + yield(cand) + end +end + + +return append_original_filter + + + + diff --git a/lua/my/log.lua b/lua/my/log.lua new file mode 100644 index 0000000..730597b --- /dev/null +++ b/lua/my/log.lua @@ -0,0 +1,90 @@ +-- +-- log.lua +-- +-- Copyright (c) 2016 rxi +-- +-- This library is free software; you can redistribute it and/or modify it +-- under the terms of the MIT license. See LICENSE for details. +-- + +local log = { _version = "0.1.0" } + +log.usecolor = true +log.outfile = nil +log.level = "trace" + + +local modes = { + { name = "trace", color = "\27[34m", }, + { name = "debug", color = "\27[36m", }, + { name = "info", color = "\27[32m", }, + { name = "warn", color = "\27[33m", }, + { name = "error", color = "\27[31m", }, + { name = "fatal", color = "\27[35m", }, +} + + +local levels = {} +for i, v in ipairs(modes) do + levels[v.name] = i +end + + +local round = function(x, increment) + increment = increment or 1 + x = x / increment + return (x > 0 and math.floor(x + .5) or math.ceil(x - .5)) * increment +end + + +local _tostring = tostring + +local tostring = function(...) + local t = {} + for i = 1, select('#', ...) do + local x = select(i, ...) + if type(x) == "number" then + x = round(x, .01) + end + t[#t + 1] = _tostring(x) + end + return table.concat(t, " ") +end + + +for i, x in ipairs(modes) do + local nameupper = x.name:upper() + log[x.name] = function(...) + + -- Return early if we're below the log level + if i < levels[log.level] then + return + end + + local msg = tostring(...) + local info = debug.getinfo(2, "Sl") + local lineinfo = info.short_src .. ":" .. info.currentline + + -- Output to console + print(string.format("%s[%-6s%s]%s %s: %s", + log.usecolor and x.color or "", + nameupper, + os.date("%H:%M:%S"), + log.usecolor and "\27[0m" or "", + lineinfo, + msg)) + + -- Output to log file + if log.outfile then + local fp = io.open(log.outfile, "a") + local str = string.format("[%-6s%s] %s: %s\n", + nameupper, os.date(), lineinfo, msg) + fp:write(str) + fp:close() + end + + end +end + + +return log \ No newline at end of file diff --git a/lua/my/processor_enter_skip_prefix.lua b/lua/my/processor_enter_skip_prefix.lua new file mode 100644 index 0000000..9215695 --- /dev/null +++ b/lua/my/processor_enter_skip_prefix.lua @@ -0,0 +1,43 @@ +-- local log = require 'log' +-- log.outfile = "D:\\aux_code.log" + +_G.kRejected, _G.kAccepted, _G.kNoop = 0, 1, 2 + +local tags = { 'english', 'pinyin' } + +local function check_tag(context) + local composition = context.composition + if (not composition:empty()) then + local segment = composition:back() + for _, x in ipairs(tags) do + if segment:has_tag(x) then + return true + end + end + end + return false +end + +local function processor(key, env) + local engine = env.engine + local context = engine.context + local repr = key:repr() + local input = context.input + -- log.info(repr, input, env.trigger_key) + + if check_tag(context) and repr == "Return" then + -- 如果是以分号开头的,则剔除开头的分号上屏 + if string.sub(input, 1, 1) == ";" then + engine:commit_text(string.sub(input, 2)) + else + -- 否则是按大写字母开头的,全部上屏 + engine:commit_text(input) + end + context.input = '' + return kAccepted + end + + return kNoop +end + +return processor \ No newline at end of file diff --git a/lua/my/readme.txt b/lua/my/readme.txt new file mode 100644 index 0000000..8420e72 --- /dev/null +++ b/lua/my/readme.txt @@ -0,0 +1,13 @@ +* 在实现分号临时英文功能的时候, https://github.com/KyleBing/rime-wubi86-jidian/issues/154 这个功能此功能。 +* 但是临时英文输出的时候按回车键上屏时,前边带了分号,参考 https://github.com/KyleBing/rime-wubi86-jidian/issues/138 加了两个lua文件 log.lua (此文件是为了调试输出内容,需要在processor_enter_skip_prefix.lua文件中引用,此文件是从https://github.com/HowcanoeWang/rime-lua-aux-code/blob/main/lua/log.lua复制而来的,aux_code.lua相关代码也值得参考), processor_enter_skip_prefix.lua +* 然后在 wubi86_jidian.schema.yaml 加上这个属性配置 +``` +engine: + - ascii_composer + - recognizer + - key_binder ++ - lua_processor@*processor_enter_skip_prefix + - speller + - punctuator + - selector +``` diff --git a/lua/my/wubi86_jidian_date_translator.lua b/lua/my/wubi86_jidian_date_translator.lua new file mode 100644 index 0000000..fc9d87e --- /dev/null +++ b/lua/my/wubi86_jidian_date_translator.lua @@ -0,0 +1,68 @@ + +function wubi86_jidian_date_translator(input, seg) + + -- 日期格式说明: + + -- %a abbreviated weekday name (e.g., Wed) + -- %A full weekday name (e.g., Wednesday) + -- %b abbreviated month name (e.g., Sep) + -- %B full month name (e.g., September) + -- %c date and time (e.g., 09/16/98 23:48:10) + -- %d day of the month (16) [01-31] + -- %H hour, using a 24-hour clock (23) [00-23] + -- %I hour, using a 12-hour clock (11) [01-12] + -- %M minute (48) [00-59] + -- %m month (09) [01-12] + -- %p either "am" or "pm" (pm) + -- %S second (10) [00-61] + -- %w weekday (3) [0-6 = Sunday-Saturday] + -- %W week number in year (48) [01-52] + -- %x date (e.g., 09/16/98) + -- %X time (e.g., 23:48:10) + -- %Y full year (1998) + -- %y two-digit year (98) [00-99] + -- %% the character `%´ + + -- 输入完整日期 + if (input == "datetime") then + yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d %H:%M:%S"), "")) + end + + -- 输入日期 + if (input == "date") then + --- Candidate(type, start, end, text, comment) + yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), "")) + yield(Candidate("date", seg.start, seg._end, os.date("%Y/%m/%d"), "")) + yield(Candidate("date", seg.start, seg._end, os.date("%Y.%m.%d"), "")) + yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), "")) + yield(Candidate("date", seg.start, seg._end, os.date("%m-%d-%Y"), "")) + end + + -- 输入时间 + if (input == "time") then + --- Candidate(type, start, end, text, comment) + yield(Candidate("time", seg.start, seg._end, os.date("%H:%M"), "")) + yield(Candidate("time", seg.start, seg._end, os.date("%Y%m%d%H%M%S"), "")) + yield(Candidate("time", seg.start, seg._end, os.date("%H:%M:%S"), "")) + end + + -- 输入星期 + -- -- @JiandanDream + -- -- https://github.com/KyleBing/rime-wubi86-jidian/issues/54 + if (input == "week") then + local weekTab = {'日', '一', '二', '三', '四', '五', '六'} + yield(Candidate("week", seg.start, seg._end, "周"..weekTab[tonumber(os.date("%w")+1)], "")) + yield(Candidate("week", seg.start, seg._end, "星期"..weekTab[tonumber(os.date("%w")+1)], "")) + yield(Candidate("week", seg.start, seg._end, os.date("%A"), "")) + yield(Candidate("week", seg.start, seg._end, os.date("%a"), "缩写")) + yield(Candidate("week", seg.start, seg._end, os.date("%W"), "周数")) + end + + -- 输入月份英文 + if (input == "month") then + yield(Candidate("month", seg.start, seg._end, os.date("%B"), "")) + yield(Candidate("month", seg.start, seg._end, os.date("%b"), "缩写")) + end +end + +return wubi86_jidian_date_translator diff --git a/lua/processor_enter_skip_prefix.lua b/lua/processor_enter_skip_prefix.lua new file mode 100644 index 0000000..ff0ab30 --- /dev/null +++ b/lua/processor_enter_skip_prefix.lua @@ -0,0 +1,37 @@ +-- local log = require 'log' +-- log.outfile = "D:\\aux_code.log" + +_G.kRejected, _G.kAccepted, _G.kNoop = 0, 1, 2 + +local tags = { 'english', 'pinyin' } + +local function check_tag(context) + local composition = context.composition + if (not composition:empty()) then + local segment = composition:back() + for _, x in ipairs(tags) do + if segment:has_tag(x) then + return true + end + end + end + return false +end + +local function processor(key, env) + local engine = env.engine + local context = engine.context + local repr = key:repr() + local input = context.input + -- log.info(repr, input, env.trigger_key) + + if check_tag(context) and repr == 'Return' then + engine:commit_text(string.sub(input, 2)) + context.input = '' + return kAccepted + end + + return kNoop +end + +return processor \ No newline at end of file diff --git a/numbers.custom.yaml b/numbers.custom.yaml new file mode 100644 index 0000000..9d2fe66 --- /dev/null +++ b/numbers.custom.yaml @@ -0,0 +1,3 @@ +# encoding: utf-8 + +patch: diff --git a/punctuation.custom.yaml b/punctuation.custom.yaml new file mode 100644 index 0000000..9d2fe66 --- /dev/null +++ b/punctuation.custom.yaml @@ -0,0 +1,3 @@ +# encoding: utf-8 + +patch: diff --git a/weasel.custom.yaml b/weasel.custom.yaml index 1fc749f..842a90c 100644 --- a/weasel.custom.yaml +++ b/weasel.custom.yaml @@ -1,4 +1,4 @@ -# encoding: utf-8 +# encoding: utf-8 customization: distribution_code_name: Weasel @@ -9,7 +9,28 @@ customization: config_version: "0.22" patch: - show_notifications_time: 200 # 部署通知、中英切换标识 显示时长 ms + show_notifications: true + show_notifications_time: 1000 # 部署通知、中英切换标识 显示时长 ms + app_options: + code.exe: + ascii_mode: true + vim_mode: true + idea64.exe: + ascii_mode: true + vim_mode: true + gvim.exe: + ascii_mode: true + vim_mode: true + WindowsTerminal.exe: + ascii_mode: true + XYplorer.exe: + ascii_mode: true + utools.exe: + ascii_mode: true + SecureCRT.exe: + ascii_mode: true + Taskmgr.exe : + ascii_mode: true style: inline_preedit: true color_scheme: MacRoseo # 匹配正文的颜色方案,对应正文的颜色方案名 @@ -99,4 +120,4 @@ patch: candidate_text_color: 0x000000 comment_text_color: 0xBBCC27 - style/layout/border_width: 1 + style/layout/border_width: 1 \ No newline at end of file diff --git a/wubi86_jidian.custom.yaml b/wubi86_jidian.custom.yaml new file mode 100644 index 0000000..9d2fe66 --- /dev/null +++ b/wubi86_jidian.custom.yaml @@ -0,0 +1,3 @@ +# encoding: utf-8 + +patch: diff --git a/wubi86_jidian.dict.yaml b/wubi86_jidian.dict.yaml index 5a6fb42..cef9c4d 100644 --- a/wubi86_jidian.dict.yaml +++ b/wubi86_jidian.dict.yaml @@ -19459,8 +19459,8 @@ u copu 10 零乱 fwtd 20 霍乱 fwtd 10 动作片 fwth 10 -规程 fwtk 20 -堆积 fwtk 10 +堆积 fwtk 20 +规程 fwtk 10 替身 fwtm 10 老僧入定 fwtp 10 堆笑 fwtt 10 @@ -20565,8 +20565,8 @@ u copu 10 五脏六腑 geue 10 青壮 geuf 10 不孕症 geug 10 -静音 geuj 30 -表单 geuj 20 +表单 geuj 30 +静音 geuj 20 表彰 geuj 10 表决 geun 10 表奖 geuq 10 @@ -62792,13 +62792,13 @@ SD卡 sdhh 20 可图 sklt 10 歌曲 skma 10 可见 skmq 10 -可惜 skna 10 -歌剧 sknd 10 +可以 skny 110 +可惜 skna 90 可怕 sknr 10 +歌剧 sknd 10 可憎 sknu 10 可恨 sknv 10 可怜 sknw 10 -可以 skny 10 歌迷 skop 10 可燃 skoq 10 可数 skov 10 @@ -86760,8 +86760,8 @@ XBox xbox 10 高强 ymxk 10 设疑 ymxt 10 高弹 ymxu 10 -高度 ymya 30 -调试 ymya 20 +高度 ymya 20 +调试 ymya 30 调度 ymya 10 调离 ymyb 10 调序 ymyc 10 @@ -89292,4 +89292,4 @@ YouTube ytb 10 议论 yyyw 10 言 yyyy 30 方言 yyyy 20 -文言 yyyy 10 +文言 yyyy 10 \ No newline at end of file diff --git a/wubi86_jidian.schema.yaml b/wubi86_jidian.schema.yaml index 47ffeaf..8d218a8 100644 --- a/wubi86_jidian.schema.yaml +++ b/wubi86_jidian.schema.yaml @@ -12,19 +12,20 @@ schema: description: | 五笔字形 86 极点极爽版,方案由 KyleBing 修改 - 2019年11月08日 10:26 dependencies: +# - melt_eng #如果要启用英文词典,把英文方案文件(以melt_eng为例,就是melt_eng.dict.yaml和melt_eng.schema.yaml)复制到此项目之下, 然后再在下边添加 english/dictionary: melt_eng 属性 # - pinyin_simp switches: - name: ascii_mode reset: 0 states: [ 中, En ] - - name: zh_trad - reset: 0 # 初始状态为 0: 简 -> 简 1: 简 -> 繁 - states: [ 简体, 繁体 ] - - name: full_shape - states: [ 半角, 全角 ] - - name: extended_charset - states: [ 常用, 扩展 ] +# - name: zh_trad +# reset: 0 # 初始状态为 0: 简 -> 简 1: 简 -> 繁 +# states: [ 简体, 繁体 ] +# - name: full_shape +# states: [ 半角, 全角 ] +# - name: extended_charset +# states: [ 常用, 扩展 ] - name: ascii_punct states: [ 。,, ., ] @@ -34,6 +35,7 @@ engine: - ascii_composer - recognizer - key_binder + - lua_processor@*processor_enter_skip_prefix - speller - punctuator - selector @@ -42,6 +44,7 @@ engine: segmentors: - ascii_segmentor - matcher + - affix_segmentor@english - abc_segmentor - punct_segmentor - fallback_segmentor @@ -49,13 +52,24 @@ engine: - punct_translator - reverse_lookup_translator - table_translator + - table_translator@english - lua_translator@*wubi86_jidian_date_translator # 日期、时间、星期 - history_translator@repeat_last_input # 重复上一次输入,对应下面的 repeat_last_input filters: - simplifier@tradition + - lua_filter@*append_original_filter # 分号临时英文,再输入分号顶屏上字 # - lua_filter@*wubi86_jidian_single_char_first_filter # 单字优先 # - lua_filter@*wubi86_jidian_single_char_only # 纯单字 +english: + tag: english + dictionary: '' # 如果需要英文词典的话 + prefix: ";" # 反查前缀,以它为起点 + tips: 〔En〕 # 反查时的提示信息 + enable_completion: true + enable_sentence: false + initial_quality: 1.1 + # 自动造词功能:参阅: https://github.com/KyleBing/rime-wubi86-jidian#6-%E5%BC%80%E5%90%AF%E8%87%AA%E5%8A%A8%E9%80%A0%E8%AF%8D @@ -63,7 +77,7 @@ engine: speller: max_code_length: 4 # 四码上屏 auto_select: true # 四码唯一时,自动上屏 -# auto_clear: max_length # 空码时自动清空 + auto_clear: max_length # 空码时自动清空 translator: dictionary: wubi86_jidian # 翻译器将调取此字典文件 @@ -128,3 +142,8 @@ repeat_last_input: input: z size: 1 initial_quality: 1 + +# editor: +# bindings: +# Return: commit_composition # 回车上屏候选码 + diff --git a/wubi86_jidian_user.dict.yaml b/wubi86_jidian_user.dict.yaml index cf99f6a..711bf41 100755 --- a/wubi86_jidian_user.dict.yaml +++ b/wubi86_jidian_user.dict.yaml @@ -17,6 +17,14 @@ sort: original # `##` 两个 # 开头的会被识别为分组名,其后跟的词条就是该组的内容 ... -## 这是分组名 -分组词条 wxyt +## 我的词库 +王新生 gutg 100 +过滤器 fikk +清屏 ignu 20 +可以 skn 10 +汇雅 iaah 20 +不是 gijg 20 +子表单 bguj 20 +## 这是分组名 +分组词条 wxyt \ No newline at end of file