From 85d10c7a6b3c739ec2dd32188469ba0d7bb47da5 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Thu, 26 Oct 2023 16:38:42 -0700 Subject: [PATCH] support predict plugin (#748) --- Dockerfile | 1 + README.md | 5 +++-- tools/rime_api_console.cc | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index be7de39ff1..e2cac26328 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 508cc1b09a..4731b9fb8d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tools/rime_api_console.cc b/tools/rime_api_console.cc index d126f53b58..8d7302ae61 100644 --- a/tools/rime_api_console.cc +++ b/tools/rime_api_console.cc @@ -94,10 +94,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) {