Scintilla doesn't always work well on GTK+ with input from
keyboards of other nations. For version 1.58, the keyboard input code
was upgraded to use the GTK+ input method object GtkIMMulticontext.
This produced a degree of upset, mostly from Eastern Europeans who
were unable to use their preferred character sets as easily as before.
Version 1.59 partially removed this input method code so that it was
used only for Asian languages. There are still bugs reported against
this code so here is another attempt to make it work.

  It appears that keyboard input arrives from the input method object
through its commit signal:
http://developer.gnome.org/doc/API/2.0/gtk/GtkIMContext.html#GtkIMContext-commit
  Fortunately the only interesting parameter is undocumented so I'm
just going to assume it works in the best way possible, by delivering
a NUL terminated UTF-8 string in the evocatively named 'arg1'
argument. When Scintilla is in Unicode mode, this string is placed
straight into the buffer but for other character sets, the text is
converted to that character set.

  This seemed to work OK for me with setting the keyboard to German
and Russian locales using ISO-8859-1 and KOI-8 character sets but
should be checked by people that really use these locales. Other
locales such as Chinese and Japanese may also be affected so if you
want Scintilla/SciTE 1.60 to work for you then you should check this
modification.

  Available from CVS and from
http://www.scintilla.org/scite.zip (not from SourceForge which is not
uploading today)

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to