Getting current input method language



Hello!

LibreOffice uses GtkIMContext when processing input events [1]. It needs 
current selected input language to mark text appropriately, e.g. for 
spell check; this currently not implemented in GTK3 backend [2].

GtkIMContext doesn't seem to provide language information. The question 
is: if there is a way (using GtkIMContext or otherwise) to retrieve the 
language information from an input event?

Thank you!

[1] 
https://opengrok.libreoffice.org/xref/core/vcl/unx/gtk3/gtk3gtkframe.cxx?r=ace72553#3946
[2] https://bugs.documentfoundation.org/show_bug.cgi?id=108151

-- 
Best regards,
Mike Kaganski


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