feat(keyboard): rank pinyin by habit and persist user dictionaries

Erase dialect syllables before abbrev so wom prefers 我们, flush librime
on leave, and add a settings action to forget learned Chinese and English order.
This commit is contained in:
Rocky
2026-08-14 21:49:03 +08:00
parent 2c3a3f80f3
commit b13a1e904b
15 changed files with 588 additions and 5 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ public final class LibrimeEngine: RimeEngineBridging {
public func teardown() {
bridge?.clearComposition()
bridge?.stopSession()
// Session destroy alone does not flush LevelDB user dictionaries.
bridge?.finalizeRuntime()
bridge = nil
composition = .empty
isReady = false