Giter Club home page Giter Club logo

rime-auto-deploy's Introduction

Rime auto deploy

-- Rime输入法安装脚本,让一切更轻松

一个自用的脚本,帮助无痛快速安装、部署 Rime 输入法(中州韵、小狼毫,鼠须管)以及部署配置

一、不同系统下使用说明

系统

⚠️ 支持:

rime result working

依赖

安装 Ruby 3

  • Mac OS brew install ruby
  • Debian Linux distro sudo apt install ruby
  • 其他 Linux 根据自己情况判断。有些 Linux 可能自带 Ruby

⚠️ MacOS脚本会自动帮助安装 Rime,Linux下由于发行版、Rime 衍生方式太多,需要自行提前安装 Rime

For Fcitx5, install fcitx5-rime.
For Fcitx, install fcitx-rime.
For IBus, install ibus-rime.

more: https://wiki.archlinux.org/title/Rime

MacOS/Linux 使用方法

Linux发行版和包管理太多,需要执行安装 Rime。MacOS 使用 brew 自动安装,需要拥有 brew

  • step1: 克隆/下载 latest 最新的稳定版到本地
    • git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch latest
  • step2: 进入项目目录
    • cd rime-auto-deploy
  • step3: 执行部署脚本
    • ./installer.rb

Windows 使用方法

查看 Windows 下的说明文档

二、工作模式说明

1. 自动模式 (Auto Mode)

适用于第一次安装输入法

- step01: 确认安装 Rime 输入法,自动安装
    - 需要用户自行登出,重进系统,设置Rime输入法为系统输入法
- step02: 备份 Rime 默认配置
- step03: 自动安装 Rime-ice 配置
- step04: 自动追加自定义配置模板

2. 手动模式 (Manual Mode)

手动模式可以自定义选择自动部署中 step 01~04 分别单独执行 适用于想要单独对步骤进行运行,比如获取最新的 雾凇拼音配置、调试更新修改自定义配置

⚠️ 提示

1. 如果您已经安装了Rime,想手动执行:使用最新版本的 雾凇拼音

为了避免直接执行 03 会造成目录冲突,这里建议先执行 02 进行配置备份,再手动执行 03 进行配置下载

备份文件并不会消失。而是会换个名字。放在同一个目录下。方便找回数据。如果觉得太冗余,可以手动删除历史备份的 Rime.xxx.old 的目录

2. 如果想进行自定义配置

  • 配置文件放在 custom/ 目录中。在 04 步执行之后,会复制进入 Rime 的配置目录

  • 你可以把自己的配置放在 custom/ 目录下一起被复制

  • 你可以修改 custom/ 目录下的配置。 参见 三、自定义配置 部分

  • ⚠️ RIME 配置使用了 YAML 格式,对空格、缩进保持敏感,尽可能地对齐。 # 前缀表示这行配置不生效,去除则生效

  • 配置文件可以对模糊拼音、皮肤、字体进行进一步的设置

  • 编辑完成保存文件,再手动执行 04 单独更新配置

3. 升级模式(Upgrade Mode)

=== Rime Deploy ====
welcome to use Rime installer.

Choose mode:
[1] Auto mode: Suitable for first-time operation.
[2] Handle mode: Decide to execute on your own.
[3] Upgrade mode: Suitable for upgrade exist Rime  <---- 更新模式 v3.2.0 新增
Tips: input the index. e.g: 1; Ctrl-C exit.

升级模式用来解决,适用于第一次安装脚本之后,后续想单独的更新上游配置

[Upgrade Mode]

Choose mode:
[1] Upgrade rime auto deploy  <---- 更新这个脚本自己,仅限于 git 下载方式
[2] Upgrade rime config  <----  更新配置仓库,目前是 雾凇拼音,会升级到最新
Tips: input the index. e.g: 1; Ctrl-C exit.

三、自定义配置

1. 自定义模糊拼音

编辑 custom/rime_ice.custom.yaml 中模糊拼音定义部分

然后保存文件,重新执行脚本,进入手动模式,单独执行 step04,重新部署 Rime

2. 修改皮肤

  • MacOS 修改 squirrel.custom.yaml
  • Windows 修改 weasel.custom.yaml
style:
    color_scheme: <白天模式主题>
    color_scheme_dark: <黑夜模式主题>

# 皮肤列表
preset_color_schemes:
  macos_light: # <---  上面的主题,可以替换为下面的主题名字
    .....

然后保存文件,重新执行脚本,进入手动模式,单独执行 step04,重新部署 Rime

2.1 修改皮肤字体大小

找到上面正在使用的皮肤名称

font_point: 16 # <----  修改对应皮肤的 字体大小, 推荐范围 16~22

然后保存文件,重新执行脚本,进入手动模式,单独执行 step04,重新部署 Rime

四、参考 & 鸣谢

最后

到这里看来已经解决了您的问题。可以愉快的使用 Rime!让我们 🍻

后续,如果您遇到了使用问题,可以:


如果您觉得帮到您了,节省了大量时间。可以请作者喝杯可乐~ 🥳

微信

weixin

支付宝

zhifubao

Star History Chart

rime-auto-deploy's People

Contributors

comf0rts1997 avatar mark24code avatar upupnoah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rime-auto-deploy's Issues

安装不上rime

=== Rime Deploy ====
[01] Install rime done
[02] Backup rime config done
[03] Clone config done
[04] Copy custom config done

Tips: When finished all jobs. You need to do follow:

  1. Restart system.
  2. open Rime input method setting pane and click DEPLOY button.
    Enjoy~ 🍻
    more info:
    Config path: ~/Library/Rime/

安装步骤提示这个以后,重启系统,输入法哪里还是没有rime

ruby闪退和右键没有终端显示这个添加项

你好,鼠标右键没有显示“在终端显示”这个选项, 请问如何添加的?
或者有其他解决方案?我曾试图用ruby打开这个文件夹,但只要复制代码到ruby,ruby就会闪退结束。

谢谢解答,
jiuyi

如何完整卸载

您好,卸载 Rime 后每天都会提示下图内容。麻烦问下如何可以完整卸载,谢谢!
CleanShot 2023-06-01 at 09 35 07@2x

内存占用过高

之前使用了一阵子最后,mac下系统的内存占用超过了8G, 迫不得已停用了,
有人发推文也说过内存占用高的问题, 说是要替换更新rime.lua 不知道是否解决了?

请问如何单独更新rime-ice

另外手动更新模式下,
执行一个步骤后,就得从头再次执行命令,不能命令执行完,回到菜单选项吗?

麻烦问下快捷键如何设置?

请教一下:

  1. 想把中英文切换 快捷键设置成:Shift ⇧键,即:通过 Shift 来快速切换中英文;「和搜狗输入法保持一致」
  2. 想把英文大小写切换 快捷键设置成:中/英键, 即:通过 中/英 来快速切换英文大小写;「和搜狗输入法保持一致」

目前使用的机型是M1,以上两点,基于rime-auto-deploy,应该在哪个文件中进行配置才能生效。

麻烦大佬能指点一下,谢谢!

自动部署后Rime输入法不显示

⚠️⚠️⚠️⚠️小白一枚

这是部署过程:

git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch latest
Cloning into 'rime-auto-deploy'...
remote: Enumerating objects: 43, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 43 (delta 3), reused 29 (delta 0), pack-reused 0
Receiving objects: 100% (43/43), 2.48 MiB | 2.59 MiB/s, done.
Resolving deltas: 100% (3/3), done.
Note: switching to '6acbe9adcce802a68b8ed58645a9e55dfc5b5f1e'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

cd rime-auto-deploy


./installer.rb
=== Rime Deploy ====
[01] Install rime        	  done
[02] Backup rime config  	  done
[03] Clone config        	  done
[04] Copy custom config  	  done

Tips: When finished all jobs. You need to do follow:
1) Restart system.
2) open Rime input method setting pane and click DEPLOY button.
Enjoy~ 🍻
more info:
Config path: ~/Library/Rime/

之后我重新启动了系统,但是在键盘设置界面根本找不到 Rime 输入法,我不知道该怎么做了……

image image image

修改主题不生效

在修改了 squirrel.custom.yaml 后,执行脚本的手动模式的Copy custom config 后重新部署修改并生效,squirrel.custom.yaml文件倒是恢复到原来的样子

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.