Coder Social home page Coder Social logo

my-rime-lua's Introduction

Introduction

Thanks to librime-lua, users can extend RIME functions with Lua scripts.

This repository contains some (currently only one) Lua scripts that I wrote or modified for RIME and RIME_JD:

xnumber.lua

Features

A yong-style number typing experience in RIME. Triggered via = by default.

xnumber

Usage

  1. Download and put the xnumber.lua script into RIME_USER_DATA/lua/ folder.
  2. Modify (or create if not existing) RIME_USER_DATA/rime.lua by adding one line: number_translator = require("numberx").
  3. Modify your schema (like xkjd6.schema.yaml) by adding an item like - lua_translator@number_translator under the engine/translators section. Attention: Since this script use = as default trigger key, you should check if it conflicts with your schema.
  4. Re-deploy RIME and enjoy.

my-rime-lua's People

Contributors

tswwe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

acgmc z13246

my-rime-lua's Issues

老大,提示 attempt to perform arithmetic on a nil value (local 'int')

现在这个脚本还可以用吗?
部署时提示:

...
E20240220 10:18:13.588173 14220 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Rime\user\lua\numberx.lua:84: attempt to perform arithmetic on a nil value (local 'int')
E20240220 10:18:30.969331 14220 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Rime\user\lua\numberx.lua:84: attempt to perform arithmetic on a nil value (local 'int')
E20240220 10:18:31.525890 14220 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Rime\user\lua\numberx.lua:84: attempt to perform arithmetic on a nil value (local 'int')
E20240220 10:18:31.733717 14220 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Rime\user\lua\numberx.lua:84: attempt to perform arithmetic on a nil value (local 'int')
...

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.