BetterZUIKey v1.6.1
BetterZUIKey v1.6.1
Please scroll down for English / 英语请向下滚动
摘要
此版本推出了全新的输入法适配功能。把「输入法增强」里对输入法适配文件相关功能合并入全新的「输入法适配管理」页;同时修复了一个会损坏配置文件的严重问题。
完整变更: 17-v1.5.2...19-v1.6.1
新功能
-
输入法适配管理页:按两种模式分两段管理,同一输入法可同时存在于两段,两段都启用时以「系统输入法框架」优先。
分段 作用 使用系统框架 由系统输入法框架接管语言切换,需要输入法本身支持 subtype 功能 ¹ 重映射快捷键 指定该输入法原本的语言切换快捷键,BZK 将输入重新映射为这个快捷键
¹ 如果安装了 搜狗输入法联想版增强 这类扩展插件,会暴露出 subtype
支持添加应用、恢复内置配置、非内置条目重命名;已安装的应用会显示真实应用名。
- 增加检查更新后查看更新日志的功能
Bug 修复
- 修复会损坏配置文件的队列无界增长:
ime_changes队列每次追加都整串重写,而loadFromSP()每次调用都无条件追加一条reload,呈平方级增长(实测积到 5583 条 / 162 KB),最终把shared_prefs写成半截 XML —— 导致文件解析失败,本地配置随之丢失。现已移除冗余追加,并给队列加上限合并保护。 - 持久化适配管理页改动:勾选框 / 快捷键下拉 / 添加应用原先只改内存,重启即丢。
其他
- 存储迁移:profile 存储迁移到
ime_profiles_v2,自动一次性迁移;旧内置项更新后将被丢弃 - 再次强调,个人网站的镜像哈希和大小与 Github 大小不一致为正常现象,前者为我本地编译的产物。检查签名一致即可。
⚠ 升级注意
- 此前“个人网站”源发布的 v1.6.0 版本界面有一功能缺陷,如您已下载安装,建议更新到此版本
- 具体而言,配置文件无法被删除
- 本次会丢弃内置的旧配置,自定义的配置文件会保留。
- 若你先前在「管理输入法配置」页手动改过内置项的名字,那些改动不会保留。
- 若你之前用「输入法适配管理」页设置过某些项,建议升级前备份,升级后检查。
BetterZUIKey v1.6.1
Highlights
This release introduces the brand-new Input Method Adaptation feature. The input method adaptation file-related functionality from "Input Method Enhancements" has been merged into the new "Input Method Adaptation Management" page; meanwhile, a critical issue that would corrupt configuration files has been fixed.
Full changelog: 17-v1.5.2...19-v1.6.1
New Features
-
Input Method Adaptation Management page: Managed in two sections by two modes; the same input method can exist in both sections simultaneously, and when both are enabled, "System Input Method Framework" takes priority.
Section Function Use System Framework Language switching is handled by the system input method framework; requires the input method itself to support the subtype feature ¹ Remap Shortcut Specify the input method's original language switching shortcut; BZK will remap the input to this shortcut
¹ If an extension plugin such as Sogou Input Method Lenovo Edition Enhancement is installed, the subtype will be exposed.
Supports adding apps, restoring built-in configurations, and renaming non-built-in entries; installed apps will display their real app names.
- Implement the ability to view release notes after checking for updates.
Bug Fixes
- Fixed unbounded queue growth that corrupts configuration files: The
ime_changesqueue rewrote the entire string on every append, whileloadFromSP()unconditionally appended areloadentry on every call, growing quadratically (measured at 5583 entries / 162 KB), eventually writingshared_prefsas truncated XML — causing file parsing failure and the loss of local configurations. The redundant append has now been removed, and an upper-limit merge protection has been added to the queue. - Persisted changes on the Adaptation Management page: Checkboxes / shortcut dropdowns / added apps previously only modified memory and were lost on restart.
Other
- Storage migration: Profile storage has been migrated to
ime_profiles_v2, with automatic one-time migration; old built-in entries will be discarded after the update. - Once again, for the personal website, the mirror hash and size differing from those on GitHub is normal — the former is the artifact compiled locally by me. Just verify that the signature matches.
⚠ Upgrade Notes
- The previously released v1.6.0 from the "personal website" source had a UI defect. If you have already downloaded and installed it, it is recommended to update to this version.
- To be specific, configuration files could not be deleted.
- This update will discard the old built-in configurations; custom configuration files will be preserved.
- If you previously manually changed the names of built-in entries on the "Manage Input Method Configurations" page, those changes will not be preserved.
- If you previously configured certain items using the "Input Method Adaptation Management" page, it is recommended to back up before upgrading and check after upgrading.