ueno/ibus-skk — Issue #42: CDB dict is not supported
Author: tamo
Created: 2011-12-28 03:35:15+00:00
State: open

I think ibus-skk-1.3.99.20111225 needs this kind of patch in order to handle CDB dict files:

--- src/engine.vala.orig	Sun Dec 25 10:08:46 2011
+++ src/engine.vala	Tue Dec 27 23:50:06 2011
@@ -210,7 +210,9 @@ class SkkEngine : IBus.Engine {
return null;
}
string mode = plist.get ("mode") ?? "readonly";
- if (mode == "readonly")
+ if (file.has_suffix (".cdb"))
+ return new Skk.CdbDict (file, encoding);
+ else if (mode == "readonly")
return new Skk.FileDict (file, encoding);
else if (mode == "readwrite")
return new Skk.UserDict (file, encoding);

Or FileDict will support CDBs in the future?