Dear Massimiliano,
There are still some problems with respect to input method support.


1. With revision 3151, preedit strings are shown near current cursor position. 
But this revision broke input method under Linux (I tested it under Ubuntu 
Linux 10.04). It's OK before this revision.

2. When using CJK truetype font, some special charecters, such as < and >, 
cound not be displayed corectly.
We need to modify read_unicode_char function in unicode_font.cpp as this:
  if (s[i] == '<') {
    i++;
    int start;
    if (s[i] == '#') {
      i++;
      start= i;
      while (s[i] != '>') i++;
      return (unsigned int) from_hexadecimal (s (start, i++));
    }
    else {
      // for e.g. <less> or <gtr>
      start= i;
      while (s[i] != '>') i++;
      string s1 =s (start, i++);
      if (s1 == "less") return '<';
      if (s1 == "gtr") return '>';
    }
  }
  else return (unsigned int) s[i++];

By the way, There is another problem w.r.t CJK support: When choosing some CJK 
language as GUI language, The title names in TeXmacs windows and filedialogs 
are wrongly displayed as <#1234><#3456><#7890>. To fix this problem, You only 
need to change to_qstring function to to_qstring_utf8 in some qt source files.

On 2010-09-13 16:46:41,Gubinelli Massimiliano wrote:

Dear Zou,


sorry I forgot: you can use French input method (or Italian) to reproduce the 
misbehaviour. Actually it is really a known bug of Qt/Mac (both Carbon and 
Cocoa) which has been fixed in the upcoming 4.7.0. 
As an aside I suggest to use Qt/Carbon 4.7.0 rc1 on the Mac. The Cocoa version 
has still a bug with Ctrl+Tab not recognized and versions before that have the 
bug with input methods. I hope they will address the Cocoa version bug soon (I 
have filed it some times ago).


Best
max


PS: I committed also a fix for the locate bug. 
 
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to