iBus input method in Linux

來源:互聯網
上載者:User

標籤:des   style   blog   color   strong   width   

The following packages should be installed:

  • python-ibus

  • ibus

  • ibus-clutter

  • ibus-gtk

  • ibus-m17n: input many non-latin characters

  • ibus-pinyin

  • ibus-qt4

  • ibus-table

  • ibus-table-wubi

  • python-xlib: will be used by Emacs ibus.el

  • ibus-m17n: input many non-latin characters. French and German characters can be input using this method very conveniently compared to the standard French input method.

Because at present I‘m using the default Gnome environment accessed from gdm3, the configuration for ibus should be put into 95xinput, which is similar to those for scim:

export [email protected]=ibusexport GTK_IM_MODULE=ibusexport QT_IM_MODULE=ibusibus-daemon -xd

One of the benefit of ibus is up to now, it seems like it will not capture the keyboard input in Nautilus, which is quite useful for fast jumping to desired files or folders.

For using ibus in Emacs, ibus.el should be downloaded and then copy ibus.el and ibus-el-agent to Emacs load path. In ~/.emacs, add the following, then ibus input method will be integrated into Emacs.

;; ibus(require ‘ibus)(add-hook ‘after-init-hook ‘ibus-mode-on)(add-hook ‘after-make-frame-functions   ; For server client mode      (lambda (new-frame)        (select-frame new-frame)        (or ibus-mode (ibus-mode-on))));; Use C-SPC for Set Mark command(ibus-define-common-key ?\C-\s nil);; Use C-\ to toggle ibus input method(ibus-define-common-key ?\C-\\ nil)(global-set-key (kbd "C-\\") ‘ibus-toggle);; Use C-/ for Undo command(ibus-define-common-key ?\C-/ nil);; Change cursor color depending on IBus status(setq ibus-cursor-color ‘("red" "yellow" "limegreen"))

 Available fastkeys for ibus are as follows:

  • Ctrl+.: toggle between half and full punctuation.

  • Ctrl+,: toggle between single char and phrase modes.

  • Shift+space: toggle between full letter and half letter (全形與半形)

  • Left shift: toggle between English and Chinese input.

  • Right shift: toggle between Pinyin and Wubi.

  • Ctrl+/: enable or disable auto-commit mode (自動上屏). This fastkey is disabled by LibreOffice.

The floating bar looks like this with single char and auto-commit modes enabled:

After installing the ibus-m17n package, latn-post input method is available, which is very convenient to input French and German characters using postfix modifiers. The list of postfixes are as follows:

   | mark       | postfix | examples    |------------+---------+----------    | acute      |    ‘    | a‘ -> á    | grave      |    `    | a` -> à    | circumflex |    ^    | a^ -> â    | diaeresis  |    "    | a" -> ä    | tilde      |    ~    | a~ -> ã    | cedilla    |    ,    | c, -> ç    | ogonek     |    ,    | a, -> ?    | breve      |    ~    | g~ -> ?    | caron      |    ~    | c~ -> ?    | dbl. acute |    :    | o: -> ?    | ring       |    .    | u. -> ?    | dot        |    .    | z. -> ?    | stroke     |    /    | l/ -> ?    | others     | /, etc. | d/ -> ð   t/ -> þ   a/ -> å   o/ -> ø    |            |         | ae/ -> æ  ij -> ?   oe/ -> œ  s/ -> ß    |            |         | ?/ -> ¿   !/ -> ¡   // -> °    |            |         | << -> «   >> -> »   o_ -> º   a_ -> ªRepeating the postfix changes ambiguous combining marks:   Ex: A~ -> Ã, A~~ -> ?, A~~~ -> A~

Now, let‘s try some French:

On ne voit bien qu‘avec le cœur.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.