Skip to content

为Meta Quest用户设计的在线中文输入法 Chinese IME for Meta Quest users, powered by RIME. 支持 拼音 双拼 五笔 仓颉 速成

License

Notifications You must be signed in to change notification settings

zhou9110/vrime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


VRIME - 在线中文输入法

VRIME

为VR设备(Meta Quest)设计的
在线中文输入法
Visit the site »
Link: https://vrime.org/

View Doc · Report Bug · Request Feature

Contributors Forks Stargazers Issues project_license Netlify Status

关于本项目 About The Project

VRIME Screen Shot

本项目重点改善一个问题:

Meta Quest一体机没有自带中文输入法,首次使用的中文用户没法方便地输入中文

项目介绍视频(点击图片跳转至B站):

Bilibili

链接:【Q2/3/3S】在线中文输入法网站 2.0正式发布!都更新了哪些内容?

(back to top)

技术栈 Built With

(back to top)

开始使用 Getting Started

如果需要在本地运行,可以在 Release 页面下载打包后的文件,后续可以自行部署至任意服务器

(待补充)

功能路线 Roadmap

  • 语音输入
  • 模糊音设置
  • 九键输入
  • 键盘按键增加额外键位提示(例如五笔键位)
  • 文档:介绍如何自行部署
  • 文档:功能介绍
  • Github Action 自动创建 Release

See the open issues for a full list of proposed features (and known issues).

(back to top)

贡献本项目 Contributing

开源社区之所以能成为一个绝佳的学习、启发和创造的平台,离不开社区里每一位贡献者的努力。我们会非常感激您对项目做的任何贡献。

如果您有改进建议,欢迎 fork 本仓库并提交 pull request。 您还可以创建一个带有 "enhancement" 标签的 issue。 另外如果您喜欢本项目,别忘了为项目点个星标!再次感谢!:D

  1. Fork 本项目
  2. 创建功能分支(git checkout -b feature/AmazingFeature
  3. 提交修改(git commit -m 'Add some AmazingFeature
  4. 推送到远程分支(git push origin feature/AmazingFeature
  5. 发起 Pull Request

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors

contrib.rocks image

项目开源许可 License

本项目基于 AGPLv3+ 许可发行,请参考 LICENSE 文件了解详情。

Distributed under the AGPLv3+. See LICENSE for more information.

(back to top)

联系作者 Contact

David Zhou - Bilibili: 贴纸菌

Project Link: https://github.com/zhou9110/vrime

(back to top)

支持作者 Support

ko-fi

致谢 Acknowledgments

(back to top)


以下是原项目的文档(待合并)

Online Chinese IME powered by My RIME and RIME.

This is a STATIC website so you DON'T need to own a server to host it.

All computation is performed in browser, thanks to Web Assembly.

It's also a PWA, so you can install it like a native App and use it OFFLINE.

Documentation

If you want to distribute your own IME, see customize.

If you want to deploy schemas dynamically (online, like how you deploy in Desktop/Mobile platforms), see deploy.

If you want to develop My RIME or know technical details, see develop.

Self host

Download latest artifact built by GitHub Actions.

Development workflow

My RIME can be built on Linux, macOS and Windows.

Install node

You may use nvm or winget to install node.

Install pnpm and dev dependencies

npm i -g pnpm
pnpm i

Install build and RIME dependencies

# Ubuntu
apt install -y \
  cmake \
  ninja-build \
  clang-format \
  libboost-dev \
  libboost-regex-dev \
  libyaml-cpp-dev \
  libleveldb-dev \
  libmarisa-dev \
  libopencc-dev

# macOS
brew install cmake ninja clang-format

# Windows
winget install cmake Ninja-build.Ninja LLVM

Install emsdk

https://emscripten.org/docs/getting_started/downloads.html

Get submodule

It's not recommended to clone recursively, as many boost libs are not needed.

pnpm run submodule

Get font

Uncommon characters are rendered using 遍黑体, 花园明朝 and 一点明朝.

pnpm run font

Build wasm

pnpm run native
pnpm run schema
export ENABLE_LOGGING=OFF # optional, default ON
export BUILD_TYPE=Debug # optional, default Release
pnpm run lib
pnpm run wasm

Run develop server

pnpm run dev

The app is accessible at http://localhost:5173

Optionally, go to http://localhost:5173/?debug=on or turn on Advanced switch so that you can send raw key sequences to librime, e.g. {Shift+Delete}, {Release+a}. This feature is better used with log enabled.

Lint

pnpm run lint:fix

Check type

pnpm run check

Build

pnpm run build

Test

pnpm run test

Preview

pnpm run preview

Deploy (maintainer only)

# publish IMEs
declare -a packages=(
  ... # targets output by pnpm run schema
)
for package in "${packages[@]}"; do
  pushd public/ime/$package
  npm publish
  popd
done

# set VERSION to avoid CDN and browser caching old version
export LIBRESERVICE_CDN=https://cdn.jsdelivr.net/npm/@libreservice/my-rime@VERSION/dist/
export RIME_CDN=https://cdn.jsdelivr.net/npm/@rime-contrib/

vercel build --prod
npm publish
vercel deploy --prebuilt --prod

Docker

docker build \
  --build-arg ENABLE_LOGGING=OFF \
  -t my-rime .
docker run --name my-rime -d my-rime

Let's say the IP address of the container is 172.17.0.2 (got by docker inspect my-rime | grep IPAddress), then My RIME is accessible at http://172.17.0.2/.

(back to top)

About

为Meta Quest用户设计的在线中文输入法 Chinese IME for Meta Quest users, powered by RIME. 支持 拼音 双拼 五笔 仓颉 速成

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 54.8%
  • Vue 40.1%
  • C++ 2.2%
  • HTML 1.7%
  • JavaScript 0.6%
  • Dockerfile 0.4%
  • Other 0.2%