mirror of
https://github.com/d0zingcat/rime_wanxiang.git
synced 2026-05-13 23:16:54 +00:00
feat(lua): 万能滤镜在原来简繁转换表情派生的情况下,另新增了简码模块,该模块同样可以基于配置进行模块化配置来取消和新增这样的模块,这个简码有三种模式,关闭、为空时填充、总是填充,这样的设计可以适用于任何拼音编码方案,默认的为空时填充巧妙的利用了候选为空或者英文时,我们更有意愿被简码填充,不会干扰已有的输入能力,对于体验是极大的提升,未来用户可以灵活的定义自己的数据库,实现自己想要的置顶数据简码,且数据是活的可受开关控制的,这是第一个版本,我们将在后续的数据维护中逐步完善体验。需要说明的是这个属于公共简码部分即他不包含辅助码,如果你定义了复杂的编码形态还是要基于根目录的txt来实现,但本次是对pro没简码,t9简码卡顿的一个战略性优化,使其拥有更好的体验
This commit is contained in:
@@ -533,7 +533,7 @@ function ZH.func(input, env)
|
||||
final_comment = fz_comment
|
||||
end
|
||||
else
|
||||
if initial_comment and string.find(initial_comment, "~") then --保留尾部临时英文标记
|
||||
if initial_comment and (string.find(initial_comment, "~") or string.find(initial_comment, "\226\152\175")) then --保留尾部临时英文标记
|
||||
final_comment = initial_comment
|
||||
else
|
||||
final_comment = ""
|
||||
|
||||
Reference in New Issue
Block a user