Legacy module for Rime, with GPL-licensed components.
This is not a standalone library but a librime plugin.
https://github.com/rime/librime-legacy
GPLv3
treedb
, an implementation of Rime’s user DB based on Kyoto Cabinetlegacy_userdb
, an alias oftreedb
, used byuser_dict_upgrade
task to convert legacy user dictionary files to newer format
- compiler with C++11 support
- cmake>=2.8
- libboost>=1.46
- libglog
- libkyotocabinet
- librime>=1.5
- libboost
- libglog
- libkyotocabinet
- librime>=1.5
cd librime
git clone https://github.com/rime/librime-legacy plugins/legacy
make
sudo make install
Load the shared library librime-legacy.so
into your input method application,
a module named legacy
will be automatically registered and made available to librime.
When the deployment task user_dict_upgrade
is run, Rime will try to load
legacy
module and instantiate legacy_userdb
s when converting
*.userdb.kct
format user dictionaries to newer standard.
If you wish to use treedb
in your own Rime module, you should load legacy
module before using the components.
#include <rime_api.h>
#include <rime/setup.h>
static RIME_MODULE_LIST(required_modules, "legacy");
rime::LoadModules(required_modules);
rime::UserDb::Component* component = rime::UserDb::Require("treedb");
if (component) {
rime::Db* db = component->Create("my_db");
// ...
delete db;
}
We are grateful to the makers of the following open source libraries:
- Boost C++ Libraries (Boost Software License)
- google-glog (New BSD License)
- Kyoto Cabinet (GNU General Public License)