Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support predict plugin #748

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
uses: ./.github/workflows/macos-build.yml
with:
build_variant: '-universal'
rime_plugins: hchunhui/librime-lua lotem/librime-octagram
rime_plugins: hchunhui/librime-lua lotem/librime-octagram rime/librime-predict

windows:
uses: ./.github/workflows/windows-build.yml
with:
rime_plugins: hchunhui/librime-lua lotem/librime-octagram
rime_plugins: hchunhui/librime-lua lotem/librime-octagram rime/librime-predict

release:
needs: [macos, windows]
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ COPY / /librime
WORKDIR /librime/plugins
RUN git clone https://github.com/rime/librime-charcode charcode && \
git clone https://github.com/hchunhui/librime-lua lua && \
git clone https://github.com/rime/librime-predict predict && \
git clone https://github.com/lotem/librime-octagram octagram

WORKDIR /librime
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@ Community:

Plugins
===
- [librime-charcode](https://github.com/rime/librime-charcode) Module that
- [librime-charcode](https://github.com/rime/librime-charcode) (Deprecated) Module that
deals with character encoding; depends on boost::locale and ICU libraries
- [librime-legacy](https://github.com/rime/librime-legacy) Legacy module with
- [librime-legacy](https://github.com/rime/librime-legacy) (Deprecated) Legacy module with
GPL-licensed code
- [librime-lua](https://github.com/hchunhui/librime-lua) Lua scripting
- [librime-octagram](https://github.com/lotem/librime-octagram) Language model
- [librime-predict](https://github.com/rime/librime-predict) Predict next word
- [librime-proto](https://github.com/lotem/librime-proto) IPC using CapnProto

Related works
Expand Down
2 changes: 1 addition & 1 deletion tools/rime_api_console.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ void print_menu(RimeMenu* menu) {
void print_context(RimeContext* context) {
if (context->composition.length > 0) {
print_composition(&context->composition);
print_menu(&context->menu);
} else {
printf("(not composing)\n");
}
print_menu(&context->menu);
}

void print(RimeSessionId session_id) {
Expand Down