Home

Awesome

<meta charset="UTF-8">

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

Install

Build dependencies

Runtime dependencies

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