File tree 2 files changed +18
-0
lines changed 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ RUN mkdir sdk && \
25
25
# Fetch Trime submodule and build librime from it
26
26
RUN cd /app && \
27
27
git submodule update --init --recursive && \
28
+ # patch librime
29
+ ./patch-librime && \
28
30
cd trime && \
29
31
git apply /app/trime.patch && \
30
32
cd app/src/main/jni && \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # https://github.com/rime/librime/pull/672
4
+ patch trime/app/src/main/jni/librime/src/rime/gear/punctuator.cc - << EOF
5
+ @@ -72,7 +72,8 @@ ProcessResult Punctuator::ProcessKeyEvent(const KeyEvent& key_event) {
6
+ if (!use_space_ && ch == XK_space && ctx->IsComposing()) {
7
+ return kNoop;
8
+ }
9
+ - if (ch == '.' || ch == ':') { // 3.14, 12:30
10
+ + if ((ch == '.' || ch == ':' || ch == ',' || ch == '\'') &&
11
+ + !(ctx->IsComposing())) { // 3.14 12:30 4'999,95
12
+ const CommitHistory& history(ctx->commit_history());
13
+ if (!history.empty()) {
14
+ const CommitRecord& cr(history.back());
15
+
16
+ EOF
You can’t perform that action at this time.
0 commit comments