Difference between revisions of "Input methods"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
m (→‎Environment variables: Cosmetic changes)
m (→‎Installation: Cosmetic changes)
Line 4: Line 4:
 
<tt>immodule</tt> is part of the standard TQt distribution.
 
<tt>immodule</tt> is part of the standard TQt distribution.
   
<tt>immodule</tt> provides two additional <tt>./configure</tt> options. Choose 'Binary Compatible' for normal use.
+
<tt>immodule</tt> provides two additional <tt>./configure</tt> options:
   
 
{| class="wikitable"
 
{| class="wikitable"
Line 10: Line 10:
 
! Description
 
! Description
 
|-
 
|-
| <code>./configure -inputmethod</code>
+
| <syntaxhighlight lang="shell-session">$ ./configure -inputmethod</syntaxhighlight>
| Build TQt with 'Binary Compatible' immodule support (default)
+
| Build TQt with 'Binary Compatible' immodule support '''(default)'''
 
|-
 
|-
| <code>./configure -inputmethod -inputmethod-ext</code>
+
| <syntaxhighlight lang="shell-session">$ ./configure -inputmethod -inputmethod-ext</syntaxhighlight>
| Build TQt without binary compatibility, but supports more advanced <tt>immodule</tt> extensions. It cannot be used with ordinary application binaries (i.e. the option is for developers)
+
| Build TQt without binary compatibility, but supports more advanced <tt>immodule</tt> extensions.
  +
It cannot be used with ordinary application binaries (i.e. the option is for developers)
 
|}
 
|}
  +
  +
You should choose 'Binary Compatible' for normal use.
   
 
== How to use ==
 
== How to use ==

Revision as of 14:33, 20 December 2021

TQt comes with immodule, a modular, extensible input method subsystem. The main goal of immodule is to extend and enhance the input method support in the TQt library, in order to provide a modern and powerful multi-language input system, and is similar to the immodule for GTK+.

Installation

immodule is part of the standard TQt distribution.

immodule provides two additional ./configure options:

Options Description
$ ./configure -inputmethod
Build TQt with 'Binary Compatible' immodule support (default)
$ ./configure -inputmethod -inputmethod-ext
Build TQt without binary compatibility, but supports more advanced immodule extensions.

It cannot be used with ordinary application binaries (i.e. the option is for developers)

You should choose 'Binary Compatible' for normal use.

How to use

  • See users manual of each input method plugins
  • Run tqtconfig to choose your favorite XIM input style


Environment variables

Some environment variables are available for expert users and system integrators. See following examples to use the variables.

Example Description
$ export TQT_IM_MODULE=xim
Set "xim" input method as default
$ export TQT_IM_MODULE=simple
Set "simple" composing input method as default
$ export TQT_IM_SWITCHER=imsw-none
$ export TQT_IM_MODULE=xim
Set "xim" input method as default, and disable input method selection menu in the context menu*
$ export TQT_IM_SWITCHER=imsw-multi
$ export TQT_IM_MODULE=xim
Set "xim" input method as default, and enable input method selection menu in the context menu* (default configuration)
$ export TQT_IM_SWITCHER=imsw-none
$ export TQT_IM_MODULE=iiimqcf
Set "iiimqcf" that has its own input method switching framework as default, and disable input method selection menu in the context menu.

Such configuration is required by some system integrators to provide unified user interface for global input method switching over the desktop

* Input method selection menu might not be available in some TDE apps.

Links