Difference between revisions of "Input methods"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
(Added "Input Methods" page based on TQt's README.immodule)
 
m (→‎Environment variables: Cosmetic changes)
Line 32: Line 32:
 
! Description
 
! Description
 
|-
 
|-
  +
| <syntaxhighlight lang="shell-session">
| <code>export TQT_IM_MODULE=xim</code>
+
$ export TQT_IM_MODULE=xim
  +
</syntaxhighlight>
 
| Set "xim" input method as default
 
| Set "xim" input method as default
 
|-
 
|-
  +
| <syntaxhighlight lang="shell-session">
| <code>export TQT_IM_MODULE=simple</code>
+
$ export TQT_IM_MODULE=simple
  +
</syntaxhighlight>
 
| Set "simple" composing input method as default
 
| Set "simple" composing input method as default
 
|-
 
|-
  +
| <syntaxhighlight lang="shell-session">
| <code>export TQT_IM_SWITCHER=imsw-none<br>export TQT_IM_MODULE=xim</code>
+
$ export TQT_IM_SWITCHER=imsw-none
  +
$ export TQT_IM_MODULE=xim
  +
</syntaxhighlight>
 
| Set "xim" input method as default, and disable input method selection menu in the context menu*
 
| Set "xim" input method as default, and disable input method selection menu in the context menu*
 
|-
 
|-
  +
|
| <code>export TQT_IM_SWITCHER=imsw-multi<br>export TQT_IM_MODULE=xim</code>
 
  +
<syntaxhighlight lang="shell-session">
 
$ export TQT_IM_SWITCHER=imsw-multi
  +
$ export TQT_IM_MODULE=xim
  +
</syntaxhighlight>
 
| Set "xim" input method as default, and enable input method selection menu in the context menu* (default configuration)
 
| Set "xim" input method as default, and enable input method selection menu in the context menu* (default configuration)
 
|-
 
|-
  +
| <syntaxhighlight lang="shell-session">
| <code>export TQT_IM_SWITCHER=imsw-none<br>export TQT_IM_MODULE=iiimqcf</code>
+
$ export TQT_IM_SWITCHER=imsw-none
| 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
 
  +
$ export TQT_IM_MODULE=iiimqcf
  +
</syntaxhighlight>
  +
| 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
 
|}
 
|}
   
 
<tt>*</tt> ''Input method selection menu might not be available in some TDE apps.''
 
<tt>*</tt> ''Input method selection menu might not be available in some TDE apps.''
 
   
 
== Links ==
 
== Links ==

Revision as of 14:31, 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. Choose 'Binary Compatible' for normal use.

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)

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