Dear Andrey,
could you please try and apply the attached patch at
src/src/Plugins/Qt, then compile and try again?
Thanks,
Miguel.
Andrey G. Grozin wrote:
Hello *,
I've just compiled 5232 in Linux. Starting
texmacs --debug-keyboard
setting Document -> Language -> Russian, and switching the keyboard to
the Russian mode, I get something like
Keyboard] Pressed #44B at 46632
] #44B -> #44B -> #44B
Keyboard] unrecognized key #44B is probably missing in the encoding
files.
each time I press a letter key, and nothing appears in the document.
This bug is new (at least, in 1.0.7.14 Russian input worked OK;
haven't tried it in 1.0.7.15).
Andrey
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev
--
______________
Miguel de Benito.
Index: QTMWidget.cpp
===================================================================
--- QTMWidget.cpp (revision 5232)
+++ QTMWidget.cpp (working copy)
@@ -502,20 +502,11 @@
case 0x308: r= "umlaut"; break;
case 0x33e: r= "tilde"; break;
default:
- QByteArray buf= nss.toUtf8();
- string rr (buf.constData(), buf.count());
- string tstr= utf8_to_cork (rr);
- // HACK! The encodings defined in langs/encoding and which
utf8_to_cork uses
- // (via the converters loaded in converter_rep::load()), enclose
the texmacs
- // symbols in "< >", but this seems to be an abandoned convention
(or not
- // used for keypresses), so we must remove them. (MBD)
- int len= N(tstr);
- if (len >= 1 && tstr(0,1) == "<" && tstr(len-1,len) == ">")
- r= tstr(1, len-1);
- else
- r= tstr;
- if (r == "less") r= "<";
- else if (r == "gtr")r= ">";
+ QByteArray buf= nss.toUtf8();
+ string rr (buf.constData(), buf.count());
+ r= utf8_to_cork (rr);
+ if (r == "<less>") r= "<";
+ if (r == "<gtr>") r= ">";
}
#ifdef Q_WS_MAC
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev