Skip to content

rime/librime-legacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

librime-legacy

Legacy module for Rime, with GPL-licensed components.

This is not a standalone library but a librime plugin.

Project home

https://github.com/rime/librime-legacy

License

GPLv3

Features

  • treedb, an implementation of Rime’s user DB based on Kyoto Cabinet
  • legacy_userdb, an alias of treedb, used by user_dict_upgrade task to convert legacy user dictionary files to newer format

Install

Build dependencies

  • compiler with C++11 support
  • cmake>=2.8
  • libboost>=1.46
  • libglog
  • libkyotocabinet
  • librime>=1.5

Runtime dependencies

  • libboost
  • libglog
  • libkyotocabinet
  • librime>=1.5

Build and install

cd librime
git clone https://github.com/rime/librime-legacy plugins/legacy
make
sudo make install

Usage

For user dictionary upgrade

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_userdbs when converting *.userdb.kct format user dictionaries to newer standard.

Use treedb component

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;
}

Credits

We are grateful to the makers of the following open source libraries:

Contributors

About

Legacy module for Rime, with GPL-licensed components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published