Comments (6)
- 需要在
rime.lua
中添加
-- 适用于中文输入方案的中英文之间加空格
word_append_space = require("word_append_space")
word_append_space_filter = word_append_space.filter
word_append_space_processor = word_append_space.processor
- 在主配置文件里引用这两个Lua功能
- lua_processor@word_append_space_processor
- lua_filter@word_append_space_filter
另外你说的不生效,是指没有一点效果,还是在一些特定情况, 这个脚本还不是那么完美, 在一些情况下,用起来感觉像是没有效果的
from rime-fast-xhup.
通过进一步研究这个配置中的写法。我通过以下补丁使它生效了
patch:
engine/processors/@before 0: lua_processor@word_append_space_processor
engine/filters/+:
- lua_filter@word_append_space_filter
- uniquifier
但我在测试中发现输入英文时无论前面有没有输入中文它都会在单词前添加空格,这会是什么原因呢?
from rime-fast-xhup.
但我在测试中发现输入英文时无论前面有没有输入中文它都会在单词前添加空格,这会是什么原因呢?
这个脚本在处理换行时, 或者当前行全部删除重新编辑时,会有这样的情况。
这个问题有点难以解决, Rime程序没法捕获你编辑时所有按键和编辑的状态。
from rime-fast-xhup.
但我在测试中发现输入英文时无论前面有没有输入中文它都会在单词前添加空格,这会是什么原因呢?
这个脚本在处理换行时, 或者当前行全部删除重新编辑时,会有这样的情况。 这个问题有点难以解决, Rime程序没法捕获你编辑时所有按键和编辑的状态。
但我遇到的问题是只要输入英文它就会自动在前面添加空格,英文后输入中文它会正常地在中间添加空格。现在困扰我的是如何让它只在中文之后输入英文的时候才在前面加空格
from rime-fast-xhup.
你的意思是,前一个输入英文单词后, 后面再输入一个英文单词不用在前面添加空格是吗?
当你在一个 app 输入了中文, 换到另一个 app 后输入英文, 可能还是会在英文前面添加空格,
貌似 Librime-lua 还没探测 app 切换的接口,所以没法在 app 切换后准确的得知是否添加空格。
from rime-fast-xhup.
你的意思是,前一个输入英文单词后, 后面再输入一个英文单词不用在前面添加空格是吗? 当你在一个 app 输入了中文, 换到另一个 app 后输入英文, 可能还是会在英文前面添加空格, 貌似 Librime-lua 还没探测 app 切换的接口,所以没法在 app 切换后准确的得知是否添加空格。
我遇到的问题是每一次输入英文都会添加空格,即使是第一次输入也是如此
不过看上去确实存在很多由于 rime 限制无法处理的场景,还是老老实实手动加空格吧
from rime-fast-xhup.
Related Issues (20)
- 词库太大了,部署了1个小时还没有成功 HOT 2
- FR: 符号智能输入
- 缺少汉字 “叒” HOT 1
- 在其他 rime 配方案中加入 “成对符号,光标居中”功能 HOT 3
- 仅注释了大词库,输入引号或括号时,按单引号'或(后闪屏 HOT 2
- `flypy_super_ext01.dict.yaml`和`flypy_super_ext02.dict.yaml`是空的 HOT 4
- 候选词个数不生效 HOT 1
- 自动补全光标居中lua拓展 HOT 1
- 无法恢复默认的引号输入方式 HOT 3
- 默认状态下(不注销大词库)需要部署多久 HOT 4
- 如何关闭一些符号模式 HOT 14
- 使用小鹤拆分词库 HOT 1
- 同文输入法能使用吗 HOT 7
- 快捷指令移动端支持 HOT 93
- 我现在打字时不时出现繁体字,不知道为什么 HOT 6
- pair_symbols 光标居中性能问题 HOT 8
- 音形码引导问题 HOT 4
- 双拼词库转全拼的方法 HOT 2
- 快捷键问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rime-fast-xhup.