Uim/Configuration

From Wikibooks, the open-content textbooks collection

< Uim
Jump to: navigation, search

Uim may be configured in two ways, either in a configuration file or through a graphical interface.

The main configuration options are which input methods are used and the keyboard shortcuts to activate them.

There are two identical graphical interfaces: One for Gtk and the other for Qt, called uim-pref-gtk and uim-pref-qt, respectively. Below is a list of configuration settings as they are laid out in the interface, along with the configuration settings as they appear in the configuration file.

Contents

[edit] Global settings

The global settings view.
  • Input method deployment
    • Specify default IM (custom-activate-default-im-name? <boolean>, custom-preserved-default-im-name <string>))
    • Default input method (default-im-name is set to "#f" if the above is "#f" but otherwise to <string>)
    • Enabled input methods (enabled-im-list <list>)
  • Input method switching
    • Enable IM switching by hotkey (enable-im-switch? <boolean>)
    • IM switching key (switch-im-key <string>, switch-im-key? (make-key-predicate '("<Control>Shift_key" "<Shift>Control_key"))) )
    • Skip direct method for IM switching by hotkey (switch-im-skip-direct-im? <boolean>)
  • Input method toggle
    • Enable IM toggle by hotkey (enable-im-toggle? <toggle>)
    • Input method toggle key (toggle-im-key <string>, toggle-im-key? (make-key-predicate '("<Meta> "))) )
    • Alternative input method (toggle-im-alt-im <string>)
  • Visual preference
    • Preedit color (uim-color {uim-color-uim|uim-color-atok})
    • Candidate window position (candidate-window-position {caret,left,right})
    • Show input method near the cursor (bridge-show-input-state? <boolean>)
    • Time length for showing input mode near the cursor (bridge-show-input-state-time-length <integer>)
  • Advanced settings
    • Enable lazy input method loading for faster startup (enable-lazy-loading? <boolean>)

[edit] Toolbar settings

The toolbar settings view.
  • Menu based IM switcher
    • Enable menu-based input method switcher (toolbar-show-action-based-switcher-button?)
    • Effective coverage (imsw-coverage {system-global,app-global,focused-context})
  • Buttons
    • Full featured input method switcher (toolbar-show-switcher-button? <boolean>)
    • Preference tool (toolbar-show-pref-button? <boolean>)
    • Japanese dictionary tool (toolbar-show-dict-button? <boolean>)
    • Input pad (toolbar-show-input-pad-button? <boolean>)
    • Handwriting input pad (toolbar-show-handwriting-input-pad-button? <boolean>)
    • Help (toolbar-show-help-button?)
TODO: The .uim.d/customs/custom-toolbar.scm defines a further fifteen settings variables, which seem to be defined in other configuration files as well ... Why?

(define anthy-widgets '(widget_anthy_input_mode widget_anthy_kana_input_method)) (define default-widget_anthy_input_mode 'action_anthy_direct) (define anthy-input-mode-actions '(action_anthy_direct action_anthy_hiragana action_anthy_katakana action_anthy_halfkana action_anthy_halfwidth_alnum action_anthy_fullwidth_alnum)) (define default-widget_anthy_kana_input_method 'action_anthy_roma) (define anthy-kana-input-method-actions '(action_anthy_roma action_anthy_kana action_anthy_azik)) (define anthy-utf8-widgets '(widget_anthy_utf8_input_mode widget_anthy_utf8_kana_input_method)) (define default-widget_anthy_utf8_input_mode 'action_anthy_utf8_direct) (define anthy-utf8-input-mode-actions '(action_anthy_utf8_direct action_anthy_utf8_hiragana action_anthy_utf8_katakana action_anthy_utf8_halfkana action_anthy_utf8_halfwidth_alnum action_anthy_utf8_fullwidth_alnum)) (define default-widget_anthy_utf8_kana_input_method 'action_anthy_utf8_roma) (define anthy-utf8-kana-input-method-actions '(action_anthy_utf8_roma action_anthy_utf8_kana action_anthy_utf8_azik)) (define skk-widgets '(widget_skk_input_mode widget_skk_kana_input_method)) (define default-widget_skk_input_mode 'action_skk_latin) (define skk-input-mode-actions '(action_skk_latin action_skk_hiragana action_skk_katakana action_skk_hankana action_skk_wide_latin)) (define default-widget_skk_kana_input_method 'action_skk_roma) (define skk-kana-input-method-actions '(action_skk_roma action_skk_azik))

[edit] EB library settings

The EB library settings view.
  • Candidate window
    • Use EB library to search annotations (eb-enable-for-annotation? <boolean>)
    • The dictionary that defines the EB dictionary file (eb-dic-path e.g. "/usr/share/dict")

[edit] XIM

The XIM settings view.
  • Pre-edit settings of XIM
    • Use anti-aliased fonts for Over-the-Spot/Root-Window pre-edit. (uim-xim-use-xft-font? <boolean>)
    • Font name for pre-edit area (uim-xim-xft-font-name e.g. "VL Gothic")

[edit] Notify settings

The notify settings view.
  • Notify agent name (notify-agent <string>)