Coder Social home page Coder Social logo

lantaio / rime-schema-joyschema Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 14.23 MB

惊喜输入方案,懂程序员和科研工作者心意的Rime输入法方案!|JoySchema, Rime schemas that understand the intentions of coders and researchers!

License: Other

YAML 76.45% Lua 23.55%
rime weasel rime-config rime-settings rime-schema

rime-schema-joyschema's Introduction

🌏 简体中文 | English

🧐 我正对 Obsidian等知识管理类软件及其相关插件、主题美化等感兴趣。

📚 我正在学习CSS。接下来打算学习Java和Python。

🙋‍♂️ 暂时没有加入其它组织的打算。如果你非常希望我加入,欢迎联系我。

📫 你可以通过 [email protected] 邮箱地址给我发邮件。

☮ 我是一个反战人士和一个无国界主义者。我反对以任何理由发动战争,提倡打破国与国之间的藩篱和隔阂。也反对以反战之名发起另一种形式的战争。

👎 我认为一个国际性的互联网企业不应该谈及丑恶的政治,谈政治是对科学最大的侮辱。GitHub,你令我感到失望。

更换语言 | 返回标题


🧐 I am interesting in knowledge management software such as Obsidian and it's related plug-ins, theme beautification and so on.

📚 I'm studying CSS. After that, I'm going to study Java and Python.

🙋‍♂️ I have no intention of joining other organizations for the time being. If you really want me to join, welcome to contact me.

📫 You can send me an email to this email address [email protected].

☮ I am an anti war figure and a borderless person. I oppose waging war for any reason and advocate breaking the barriers between countries. Also opposed to launching another form of war in the name of anti-war.

👎 I don't think an international internet company should talk about ugly politics. Talking about politics is the biggest insult to science. You disappointed me, GitHub.

change language | back to title

rime-schema-joyschema's People

Contributors

lantaio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ipseamor

rime-schema-joyschema's Issues

[缺陷] 识别Win目录路径的规则有问题

此缺陷涉及2个文件,joy.default.yamllua\joy_prompt_s.lua
问题涉及到2个方面。1是识别目录路径的正则表达式不正确,2是用Lua写segmentor插件来添加提示信息(prompt),原来这样也会对输入造成影响,不正确的判断条件会导致不正确的输入码识别,也就是说Lua插件的判断条件也要和识别正则表达式一样才行。

原来的识别规则是

win_path: '^([A-Za-z]:|([A-Za-z][^,.;/\[\]:*?"<>|]*)*)(\\[^,;/\:*?"<>|]*)*$'

存在几个问题:

  • .,;”几个标点并不是Win系统不允许在目录路径中使用,而是因为此输入法用这几个标点作为翻页和选择候选上屏按键,所以在输入码未被识别为Win目录路径前须要排除,否则会影响到正常的翻页和候选上屏。
  • X:\x\y\z”,“x\y\z”和“\x\y\z”是Win目录路径的3种常见形式,应该并列出来,但在这个正则表达式中没有直观表现出来。其中有取巧的成分。
  • 当输入码已经被识别为Win目录路径时后续不应再屏蔽“.,;”几个标点,但这个识别规则好像一直屏蔽这些标点。

昨天改了一天,改成

win_path: '^([A-Za-z]:|[A-Za-z][^.,;/[\]:*?"<>|]*|\\[^,;/:*?"<>|]*)(\\([^/:*?"<>|]*))*$'

貌似解决了上面提及的几个问题。但这个识别规则比较复杂,还没在Lua折腾出来,也就是说输入的时候还没有提示信息。

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.