GithubHelp home page GithubHelp logo

rime-lua's Introduction

RIME 輸入法 lua 插件

簡介

本倉庫包含了部分爲宇浩輸入法編寫的 RIME 輸入平臺 lua 插件.

這部分插件具有跨輸入法通用性,且能有效實現目前 RIME 輸入平臺所缺失的常用功能.使用户可以通過菜單或快捷鍵開啟或關閉:

使用

老版本 rime-lib

第一步,将 lua/yuhao/ 中的相關lua文件拷貝到你電腦中的 Rime/lua/yuhao 文件夾下.

第二步,在 rime.lua 中添加代碼激活本腳本,例如:

yuhao_char_filter = require("yuhao_char_filter")
yuhao_char_first = yuhao_char_filter.yuhao_char_first
yuhao_char_only = yuhao_char_filter.yuhao_char_only

第三步,在 engine/filters 區塊中添加:

- lua_filter@yuhao_char_first
- lua_filter@yuhao_char_only

第四步,在 schema 文件的 switches 區塊中添加狀態:

-- - options: [yuhao_char_only, yuhao_char_first, utf8]
-- states: [常用字過濾, 常用字前置, 全字集]
-- reset: 1

新版本 rime-lib

新 Rime 引擎使用模塊化導入,故第二步可以省略,只需將第三步改爲:

- lua_filter@*yuhao.yuhao_char_first
- lua_filter@*yuhao.yuhao_char_only

rime-lua's People

Contributors

forfudan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.