Skip to content

Commit b3f1457

Browse files
committed
rime
1 parent ec14872 commit b3f1457

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

docs/im/rime.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# 中州韵(Rime)
2+
3+
## 目录
4+
5+
Rime 的用户目录位于 `~/.local/share/fcitx5/rime`,与 Linux 上的 [fcitx5-rime](https://github.com/fcitx/fcitx5-rime) 保持一致。
6+
7+
Rime 的共享目录位于 `~/Library/fcitx5/share/rime-data`。您不应该更改此目录(或任何 `~/Library/fcitx5` 下)的内容。
8+
9+
::: warning
10+
请勿将用户目录设置为指向鼠须管用户目录 `~/Library/Rime` 的符号链接,或让鼠须管反向链接至此。
11+
因为LevelDB不支持并发访问,强行共享会破坏您的用户词库。
12+
:::
13+
14+
15+
您可以使用共享目录中的[朙月拼音](https://github.com/rime/rime-luna-pinyin)[五笔画](https://github.com/rime/rime-stroke)方案,但 Rime 用户通常会导入自定义方案到用户目录。
16+
17+
一个方案至少会包括 `方案名.schema.yaml``字典名.dict.yaml`,schema 中需要引用 dict。
18+
19+
为了启用该方案,您至少需要在 `default.custom.yaml` 中写入
20+
```yaml
21+
patch:
22+
schema_list:
23+
- schema: 方案名
24+
```
25+
或者用一个完整的 `default.yaml` 覆盖共享目录的同名文件。
26+
27+
## 设置
28+
29+
### 预编辑模式
30+
控制应用程序内的预编辑显示什么。
31+
32+
示例:当您输入 `y` `u`时,
33+
* 不显示:`yu`位于候选窗内,占据一行;
34+
* 编辑中文本:`yu`位于应用程序中;
35+
* 提交预览:假设首选为`与`,则`与`也出现在客户程序中。
36+
37+
### 共享输入状态
38+
是否将当前程序的输入状态带到下一个程序。
39+
40+
示例:假设您在 Firefox 中正在使用简体,然后启动了 Telegram,并切换到繁体。再回到 Firefox 时,
41+
* `全部`:Firefox 中会使用和 Telegram 相同的繁体;
42+
* `程序` 或 `否`:Firefox 中会记住上次使用的简体。
43+
44+
### 将嵌入式预编辑文本的光标固定在开头
45+
当您在 `主题编辑器` 中启用 `跟随光标` 时,您可能需要启用此选项避免候选窗频繁移动。
46+
47+
### 取消激活输入法时提交当前文本
48+
当您通过 `Ctrl+Shift_L` 从 Rime 切换到英文键盘时,是否将当前的高亮候选词上屏。
49+
50+
### 用户数据目录
51+
点击将使用 Finder 打开 Rime 用户目录。
52+
53+
### 重新部署
54+
可设置部署快捷键。默认为和鼠须管一致的 `Ctrl+Option+grave`。
55+
56+
### 同步
57+
可设置同步快捷键。
58+
59+
小企鹅默认每 30 分钟自动同步,可在 `全局配置` -> `行为` -> `保存用户数据的时间间隔` 更改时长或设置为 0 以禁用。
60+
61+
## 云拼音
62+
63+
您需要按照 [librime-cloud](https://github.com/hchunhui/librime-cloud) 的文档自行启用。
64+
65+
::: warning
66+
对于下载的 `simplehttp.so` 您需要执行 `xattr -dr com.apple.quarantine simplehttp.so` 以解锁,否则可能会导致死机。本地编译则无须解锁。
67+
:::
68+
69+
::: info
70+
由于该插件工作在 librime 中,受限于单线程同步架构,在网络请求返回前候选窗不会更新。
71+
为了缓解卡顿,该插件默认需要 `Ctrl+T` 主动查询,且设置了0.5秒的超时时间。
72+
73+
您可以使用小企鹅拼音的多线程异步云输入解决上述问题。
74+
:::
75+
76+
## 命令行接口
77+
78+
::: warning
79+
若在lua脚本中执行命令,需要在末尾加上`&`放至后台执行,否则会导致主线程死锁。
80+
:::
81+
82+
### 部署
83+
```sh
84+
/Library/Input\ Methods/Fcitx5.app/Contents/bin/fcitx5-curl /config/addon/rime/deploy -X POST -d '{}'
85+
```
86+
87+
### 同步
88+
```sh
89+
/Library/Input\ Methods/Fcitx5.app/Contents/bin/fcitx5-curl /config/addon/rime/sync -X POST -d '{}'
90+
```
91+
92+
## 友情链接
93+
感谢以下方案对小企鹅 macOS 版的认可。
94+
我们将继续加强与 Rime 社区的合作,为定制用户提供更好的输入体验。
95+
* [声笔系列码](https://github.com/sbsrf/sbsrf)(首个声明支持小企鹅 macOS 版的方案)
96+
* [魔然](https://github.com/ksqsf/rime-moran)(由小企鹅 macOS 版作者之一开发)
97+
* [雾凇拼音](https://github.com/iDvel/rime-ice)(Rime 简体拼音的事实标准)
98+
* [星猫键道](https://github.com/hugh7007/xmjd6-rere)
99+
* [飞鹤快拼](https://github.com/boomker/rime-fast-xhup)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy