texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] a quick hack for bug #47338 [CJK] input disappears imm


From: Karl Hegbloom
Subject: Re: [Texmacs-dev] a quick hack for bug #47338 [CJK] input disappears immediately
Date: Sun, 10 Sep 2017 19:01:58 +0000

I have a different patch to fix that, but it works differently. It's in my syrinx-svn-trunk-guile-1.8 branch: https://github.com/KarlHegbloom/texmacs/commit/5d96fe69ea98e4c41d8


On Sat, Sep 2, 2017, 07:51 Zhaocong Jia <address@hidden> wrote:
See the bug report here:
https://savannah.gnu.org/bugs/?47338

This bug happens when using "fcitx" input method
(or other input method I think), the "preeditString"
get disappear.

This happens for 1.99.5 with Qt5 on Linux (there's
no bug for the Qt4 pre-compiled binary). After some
bisecting, I find this bug exists in 2016-05-17, I can't
compile earlier versions to give a precise commit.
I think around that time, Qt5 support is being added,
so I presume this bug is related with Qt5.

The following patch "fix" this bug.  It was supposed to
process and show the "preeditString", now I disabled that.

I hope this bug get resolved soon, because it affects almost
all CJK users.

diff --git a/src/Plugins/Qt/QTMWidget.cpp b/src/Plugins/Qt/QTMWidget.cpp
index d14b514ac..060651e89 100644
--- a/src/Plugins/Qt/QTMWidget.cpp
+++ b/src/Plugins/Qt/QTMWidget.cpp
@@ -559,8 +559,8 @@ QTMWidget::inputMethodEvent (QInputMethodEvent* event) {

     r = r * as_string (pos) * ":" * from_qstring (preedit_string);
   }
-  if (!is_nil (tmwid))
-    the_gui->process_keypress (tm_widget(), r, texmacs_time());
+  //if (!is_nil (tmwid))
+  //the_gui->process_keypress (tm_widget(), r, texmacs_time());
   event->accept();
 }

Best wishes,
Jia

_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev
--

address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]