bugGNU TeXmacs - Bugs: bug #47338, [CJK] input disappears immediately

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47338: [CJK] input disappears immediately

Submitter:  Stefan Haan <haansn08>
Submitted:  Fri 04 Mar 2016 09:06:13 PM UTC
   
 
Category:  Editor Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  1.99.12 Fixed Release: 
Keywords: 

Jump to the original submission

Sat 19 Oct 2019 02:14:36 AM UTC, comment #6: 

I understand that Darcy applied Philippe's patch, so I close the bug.  Please re-open if I am wrong.

Joris van der Hoeven <vdhoeven>
Group administrator
Tue 26 Dec 2017 05:02:46 PM UTC, comment #5: 
Darcy Shen <sadhen>
Group Member
Fri 08 Sep 2017 08:06:23 PM UTC, comment #4: 

According to http://lists.gnu.org/archive/html/texmacs-dev/2017-09/msg00000.html, in Qt5 this can be cured by disabling a call to process_queypress:

diff --git a/src/Plugins/Qt/QTMWidget.cpp b/src/Plugins/Qt/QTMWidget.cpp
index d14b514..ce3cce0 100644
--- a/src/Plugins/Qt/QTMWidget.cpp
+++ b/src/Plugins/Qt/QTMWidget.cpp
@@ -559,8 +559,12 @@ QTMWidget::inputMethodEvent (QInputMethodEvent* event) {
    
     r = r as_string (pos) ":" * from_qstring (preedit_string);
   }
-  if (!is_nil (tmwid))
+#if (QT_VERSION < 0x050000)
+// hack for fixing #47338 [CJK] input disappears immediately
+// see http://lists.gnu.org/archive/html/texmacs-dev/2017-09/msg00000.html
+if (!is_nil (tmwid))
     the_gui->process_keypress (tm_widget(), r, texmacs_time());
+#endif
   event->accept();
 } 

This rather seems a workaround than a proper fix retaining all the desired functionality, but I have'nt investigated the problem at all.

Philippe Joyez <pjoyez>
Group Member
Sat 18 Mar 2017 11:57:09 AM UTC, comment #3: 

Thank you for the report and sorry for comming to it after so long...

I've seen a similar problem reported on the user mailing list (see the thread originated by http://lists.texmacs.org/wws/arc/texmacs-users/2017-02/msg00014.html). The bug was related to using the static build downloaded from texmacs.org website. Is it also the case for the issue reported here?

OTOH the same thread indicates that standard dynamic builds work properly with ibus... Right now we are working to bring new dynamic builds for most linux distros in the near future, including Fedora. I guess this will solve the problem, so stay tuned.


Philippe Joyez <pjoyez>
Group Member
Tue 21 Jun 2016 06:29:12 PM UTC, comment #2: 

I'm using Qt 4.8.7 and Texmacs 1.99.2 on a Fedora 23 machine

Stefan Haan <haansn08>
Tue 21 Jun 2016 06:32:54 AM UTC, comment #1: 

What is your Qt version? Recently, my TeXmacs built using Qt5 has this problem too. I use Fcitx to input Chinese.

Darcy Shen <sadhen>
Group Member
Fri 04 Mar 2016 09:06:13 PM UTC, original submission:  

I'm using ibus to input Japanese on my system. However in Texmacs the unfinished input disappears immediately before hitting enter/space to convert hiragana to kanji. However Texmacs seems to create a yellowish 'pre-edit' tag.

If I keep pressing e.g. "a" and hit enter while doing so I can enter a string of "あ" characters.

Please contact me if you should need any further information.

Stefan Haan <haansn08>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by sadhen (Posted a comment)
  • -email is unavailable- added by haansn08 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-19 vdhoeven StatusIn Progress Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.99.12
    2017-09-08 pjoyez StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code