Giter Club home page Giter Club logo

Comments (5)

makesmallprogresseveryday avatar makesmallprogresseveryday commented on August 19, 2024

第三项配置可以默认把“半角符号”开启添加进去,这样就哪怕该应用不小心切换到“中文”也是输入“半角字符”

        ascii_mode: false           # 开启中文输入
        ascii_punct: true           # 半角符号即中文状态输入英文标点

from rime.

ssnhd avatar ssnhd commented on August 19, 2024

已阅,就不关闭了,留着给需要的人,这样较好

from rime.

derekxia1988 avatar derekxia1988 commented on August 19, 2024

一、 “default.custom.yaml”文件,添加以下内容可以用"," 和"."翻页(点号和句号翻页)
其它键位对应字母参考出处,进入这里然后搜索:下設bindings

key_binder/bindings: # 翻页-----在这里之后添加以下:

    - { when: paging, accept: comma, send: Page_Up }      # ","上一页
    - { when: has_menu, accept: period, send: Page_Down } # "."下一页

二、 添加模糊音和简拼

  1. 默认的macOS和Windows输入法是支持简拼的,例如想打“大家好”这个词,输入“djh”三个字母即有候选词,而不是只有输入“dajiahao”才行。启用简拼后全输入也会有候选词。
  2. 模糊音部分加上macOS和Windows默认输入法常见的模糊音。
    在非全局配置文件,例如在“luna_pinyin_simp.custom.yaml”文件的“模糊拼音”的“韻母部份”之后添加以下行:
   # - derive/([a])n$/$1ng/ # an => ang 
   # - derive/([a])ng$/$1n/ # ang => an 
   # - derive/([iu])an$/$1ang/ # ian => iang, uan=uang 
   # - derive/([iu])ang$/$1an/ #iang =>ian, uang=>uan 
  
  # 模糊音定义先於简拼定义,方可令简拼支持以上模糊音 
    - abbrev/^([a-z]).+$/$1/ # 简拼(首字母) 
    - abbrev/^([zcs]h).+$/$1/ # 简拼(zh, ch, sh)

三、配置跨平台
如果能预留对应Windows和Linux的配置文件,即可使本项目有更广泛的适用范围,因为词库都是通用的。
当前macOS的配置文件“squirrel.custom.yaml”,添加另外2个系统的文件。

主要是“app_options” 对应的设置、应用名称不同,Linux版好像暂时不支持“app_options”设置。

Windows下的对应应用的格式为:
打开“任务管理器”,在“详细信息”里面看到的名称即是“应用名称”,必须全写小写,要把对应的文件扩展名也写上去,例如 ".exe"。
例如,要在 gVim 和 VS Code 程序里关闭中文输入,把原macOS版“app_options”配置删除更换为以下行:

   # 程序名称必须全是小写字母
  "app_options/gvim.exe":
    ascii_mode: true
  "app_options/code.exe":
    ascii_mode: true

我把原“squirrel.custom.yaml”文件复制改名为“weasel.custom.yaml”后,按照上面修改“app_options”项,在Windows 10 上实测正常,主题能切换,相应应用可以关闭中文输入。(两个文件同时存在不影响对应系统的配置)

另外,不必注明来源是我,看到本issue后关闭即可,可以有空再改或不改。

我想问下跨平台同步的问题,我看同步的时候把installation.yml也导出了,那岂不是要保证每个平台上的sync_dir都要一致?但windows和mac的dir无法做到一致,这个问题有什么解法么😭

from rime.

makesmallprogresseveryday avatar makesmallprogresseveryday commented on August 19, 2024

我想问下跨平台同步的问题,我看同步的时候把installation.yml也导出了,那岂不是要保证每个平台上的sync_dir都要一致?但windows和mac的dir无法做到一致,这个问题有什么解法么😭

installation.yaml 文件里内容没有关于目录的啊。
“squirrel.custom.yaml”文件与“weasel.custom.yaml”可以同时存在,该文件里的目录结构对应相应的系统。我没有实测同步两个系统的输入法数据。

from rime.

ssnhd avatar ssnhd commented on August 19, 2024

macOS上正常,身边没有Windows无法测试。

from rime.

Related Issues (20)

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.