Git Product home page Git Product logo

libreservice / my_rime Goto Github PK

View Code? Open in Web Editor NEW
266.0 3.0 29.0 264 KB

Free and Open Source online Chinese IME powered by RIME. 自由开源在线中文输入法 拼音 双拼 粤语 注音 五笔 仓颉 速成

Home Page: https://my-rime.vercel.app/

License: GNU Affero General Public License v3.0

JavaScript 0.62% HTML 0.49% Vue 30.33% TypeScript 64.34% CSS 0.16% C++ 3.36% Dockerfile 0.58% Lua 0.11%
naive-ui rime saas vue wasm pwa lua

my_rime's People

Contributors

bczhc avatar eagleoflqj avatar whiredplanck 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

my_rime's Issues

Missing text for librime BSD license

Upstream librime is distributed under a BSD license, which requires reproducing the copyright notice verbatim in both source code and binary form. Both the repo and the website should mention the upstream license.

改進建議 - 記錄用戶設定、提升被搜尋引擎搵到嘅效率

你好 Qijia,

多謝作者辛勤勞動推出 rime 線上版本。貴功能對我廣大不諳電腦嘅人民群眾嚟講實屬福音。以前我哋喺新機(尤其是喺 Windows 上)要設定粵語輸入法可謂難關重重。如今有咗作者嘅關懷,快速調用 rime 輸入法唔再係難事。惟使用過程中,遇到兩個不便之處,有望作者將之改善。

螢幕截圖 2023-02-25 下午11 20 55

一、輸入法未能記錄用戶設定。如今 My Rime 未能記住訪問者嘅輸入法設定,每次重新進入皆需再次設定。期望作者令輸入法記住用戶最後一次使用嘅設定;

二、輸入法仍難以被各搜尋器所搜尋。如今貴功能難以為用戶所搜尋,記住「 https://my-rime.vercel.app 」亦頗為困難,喺離開網頁或使用新裝置時,用戶可能會難以將其搵返出嚟。故期望作者考慮提升頁面可被搜尋器搵到嘅機會,令用家以例如「rime」「rime online」「粵語打字」「粵語輸入法」「Cantonese Input Online」等字眼均可搵到 My Rime。

望作者考慮上述建議。無論如何,仍再次感謝作者嘅付出及貢獻。

即頌春祺,
CHUNG

Error while running `pnpm run schema` with node v21

Error:

pnpm run schema

> @libreservice/[email protected] schema /mnt/4T/coll-last/open-source/my_rime
> node --loader ts-node/esm scripts/install_schemas.ts

(node:206029) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)

node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
[Object: null prototype] {
  [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
}

Node.js v21.2.0
 ELIFECYCLE  Command failed with exit code 1.

I did some quick searching and found:

A fix for me is:

commit 1c376ce5e300f144b049857feed111037a69bc63
Author: Zhai Can <[email protected]>
Date:   Thu Nov 23 21:57:13 2023 +0800

    fix `pnpm run schemas` error with node 20+

diff --git a/tsconfig.json b/tsconfig.json
index a640dc7..5644228 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -14,5 +14,10 @@
     "noEmit": true
   },
   "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
-  "references": [{ "path": "./tsconfig.node.json" }]
+  "references": [{ "path": "./tsconfig.node.json" }],
+  "ts-node": {
+      "experimentalSpecifierResolution": "node",
+      "transpileOnly": true,
+      "esm": true
+  }
 }

I'm not sure if this can be considered as a proper fix, so just filed an issue instead of a PR :).

Font

Ubuntu的默認中文字體應該是文泉驛微米黑,而不是Noto Sans。
windows繁中的字體應當爲「微軟正黑Microsoft JhengHei」。繁中系統沒有「微軟雅黑」字體。
mac的默認中文字體「蘋方」分簡SC、繁TC、港HK三個版本,最好能遵從用戶系統的語言優先順序。

unihan擴展區B-F的字體推薦用一點明體取代萬年不更新的花園明朝

能否让Vercel保持为最新的master

Vercel app现在还停留在很早的 bb2159f ,还只有朙月拼音一个方案。是否能让GitHub Action自动更新Vercel app?

以及,我注意到最近的一些commits都是在添加各方案,未来会支持在线部署吗?或者,如果用WASM在线部署有难度的话,是否可以提供更详细的本地部署指南,比如浏览器中使用本地编译出来的build文件,或者干脆就是在编译此项目的时候加入自定义方案的build文件,最终分发出一个dist这种的。

新的问题

  1. 我的方案配置中有一句:

     - { accept: space, send: Escape, when: composing } #无候选时(空码)空格清屏

    期待是空码时按空格清除空码,无任何其他操作。但是实际它会清码后再上一个空格。按空格时控制台写的是simulate key sequence: 。我开了debug=on,发送apo apo为空码),就会出现多上一个空格的问题;但发送apo{space},就正常。看来应该得向librime传{space}

  2. Tab键不映射

        - { accept: Tab, send: apostrophe, when: always }
        - { accept: Release+Tab, send: Release+apostrophe, when: always }
  3. 左右Alt不映射

        - { when: has_menu, accept: Alt_R, send: 3 } # 三选
        - { when: has_menu, accept: Alt_L, send: 4 } # 四选
  4. dependencies都得在schemas.json中定义出来,这就导致它们都会在方案列表中显现出来,即使它们并不是实际使用的方案。就像这样,那些没中文名的就是辅助方案:

    image

处理组合键

比如在schema文件中会定义:

- { accept: "Control+p", toggle: pinyin, when: composing }
- { accept: "Control+e", toggle: emoji_cn, when: composing }

在使用的时候看控制台里好像并不能向librime发送这样的组合键。而且像Ctrl+p这样的组合键会唤出浏览器的打印窗口,要处理的话就得拦截掉了。

改進建議-候選框方向、候選項數量

Qijia 你好,
  
【候選框方向及候選項數量】
候選框
補充一下對候選字詞顯示方式嘅反饋。目前 My Rime 嘅候選框為橫向、只能顯示五個候選項,限制咗選字嘅流暢度。呢層,希望作者提供以橫/豎向顯示候選框可選高達十個候選項(用 1 至 0 鍵選取),以允許用户按需調節。
  
之前反饋中嘅【記錄用户設定】亦希望可應用於此選項上。
  
  
秋安,
  
CHUNG

似乎资源不是相对引用?

我想把dist部署在GitLab page上,就说位置在https://bczhc.gitlab.io/my_rime-dist,可当我访问这个地址时,控制台中有以下错误:
image

看起来是从服务器根处开始引用的,导致了404错误。比如最后那个请求,期待的是https://bczhc.gitlab.io/my_rime-dist/LibreService.svg而不是https://bczhc.gitlab.io/LibreService.svg

构建问题:卡在`pnpm run schema`

在这里卡了好几分种了。image不知道为什么。网络是通过http_proxyhttps_proxy设置的代理,应该不成问题。

在随后的构建中就会出现:

~/open-source/my_rime master ❯ pnpm run wasm                                                          3m 2s 15:33:06

> @libreservice/[email protected] wasm /home/bczhc/open-source/my_rime
> bash scripts/build_wasm.sh

error: build/sysroot/usr/local/share/opencc/t2hkf.json@/usr/local/share/opencc/t2hkf.json does not exist

系统:Archlinux 6.1.12

顺便再提供个Dockerfile就好了。

改進建議-默認設定、記住選項、方案選單、載入速度、群組指南

Qijia 你好,
  
感謝作者持續維護並不斷提升線上版 Rime。自上次反饋以來,My Rime 喺 Google 嘅搜尋中已有明顯嘅前置,十分便利。今再用時,有若干發現同諗法,望作者關注。
  
  
【初次訪問時嘅默認設定】
初始狀態
留意到喺用户初始訪問現有嘅兩個粵語輸入法時,會默認以簡體字輸出(請見上圖選項欄位)。建議考慮為現已知之語言/輸入法嘅常用習慣固定初始訪問所提供嘅默認選項。鑑於粵文常以傳統漢字呈現,請作者為各粵語輸入法默認以傳統漢字輸出。
  
  
【記錄用戶設定】
右側選項未能記住
記得之前向作者提過希望 My Rime 可以記住用户選項,作者好快脆就完成咗記住用户最後選取嘅輸入法正/簡漢字呢兩項,感謝作者大大嘅效率。惟尚有全/半形表情等幾個位於工具欄右側嘅選項未能被記住,呢方面亦希望作者完善。
  
  
【方案選單分類】
選單分類
發現方案選單現已為不同輸入法劃分咗類別,便於用户檢索。惟見選單以音碼、方言、雙拼、形碼、音標、並擊、古音分類嘅方式略為怪異,分類標籤層級不劃一,使方案/輸入法未能得到正確擠放。例如,將可被「音碼」包含嘅「方言」「雙拼」同「古音」並列,導致分類混亂,亦會惹嚟爭議。
  
故此,就住呢個情況提供兩個完善方案供作者參考:
  
一、建議作者設計以兩個選單供用户篩選——第一選單提供「音碼」「形碼」及「其它」,而第二選單則因應第一選單嘅選取,提供直達目的方案嘅分類。如,音碼分類:全拼、雙拼、三拼、古音等;形碼分類:倉頡、速成、五筆等。
  
舉例,「粵語雙拼」方案將位於:音碼 ➝ 雙拼 ➝ 粵語雙拼
  
二、若作者鍾意只有一個選單,則建議將分類改善得更為具體,如「音碼-全拼」「音碼-雙拼」「音碼-三拼」「音碼-注音」等等,使分類歸於同一層級上。
  
舉例,「粵語雙拼」方案將位於:音碼-雙拼 ➝ 粵語雙拼
  
作出以上改善,亦有益於未來更多輸入方案加入後嘅整理。
  
  
【方案載入速度】
載入速度
不知為何,近期方案載入嘅速度似乎較 My Rime 建立初期慢咗唔少。喺選單選取輸入法後,有時會轉圈較長時間。雖不太影響使用,但未知呢個情況是否正常,故僅此提出,望作者得知。
  
  
題外【輸入法/技術交流群組引流】
就現時所知,Telegram 上有以下官方群組:
RIME:https://t.me/loverime
Rime-Cantonese:https://t.me/rime_cantonese
Rime 鼠须管 输入法:https://t.me/rimeim
Rime-Cantonese FAQ:https://t.me/rime_cantonese_faq
  
作者不妨於 My Rime 頁面下方列出 Rime、My Rime 及/或各常用輸入法嘅交流群組(需大家繼續補充),以助用户揾到所需嘅技術支援。
  
  
知道作者事忙,本應長話短説,但性格不容許,還請作者見諒,亦多謝作者睇晒全篇反饋。感恩。
  
  
秋安,
  
CHUNG

artifact 中未生成 reverse.bin 和 table.bin

由于没有完整的 linux 环境,我的所有 build 都是用 github actions 完成的

commit action
8c190fd #15
$ tree dist/ime/amorphobia/rime-jiandao@release/
dist/ime/amorphobia/rime-jiandao@release/
├── jiandao.prism.bin
├── jiandao.schema.yaml
└── package.json

在 WSL ubuntu 里运行 dist 下的 rime_console 会 segmentation fault,而 rime_deployer --build 或者 rime_api_console 则正常生成。

但我尝试把 install_schemas.mjs 里的命令换成 ./rime_deployer --build 后(commit 8be0bd2),依然无法生成 reverse.bintable.bin(action #16)。

另外,在线使用 micro plum 部署是正常的,或者手动补全缺失的 reverse.bintable.bin 也是可以正常打字的。

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.