Difference between revisions of "Input methods"

From WikEmacs
Jump to navigation Jump to search
Line 1: Line 1:
Input Methods allow you to enter characters that are not supported by your keyboard.
+
'''Input Methods''' allow you to enter characters that are not supported by your keyboard.
  
* 'C-x C-m C-\' or `M-x set-input-method' or switch to a new input method.
+
= Helpful keybindings =
* 'C-h C-\' or `C-h I' to describe the current input method.
 
* 'C-\' to toggle the input method on and off
 
  
 +
; {{CommandKeys|C-x C-m C-\|set-input-method}}
 +
: Switch to a new input method.
  
Possibly the most convenient casual method for inputting unicode characters
+
; {{CommandKeys|C-h C-\|describe-input-method}}
is the TeXInputMethod, which permits you to enter Unicode characters by typing a
+
: Tells you how to enter a particular character for the current input mehtod.
\ prefixed sequence reminiscent of TeX. For example, the greek character λ
 
may be entered by typing \lambda.
 
  
You can use `latin-1-prefix' to input accented characters. So that you can type `" u' to achieve `ü', for example. You can also {{PrefixKeys|C-x 8}} to input accented characters.
+
; {{CommandKeys|C-\}}
 +
: Switch to your default input method.
  
 +
= TeX input method =
  
Another way is to use QuotedInsert with `C-q'.
+
; {{CommandKeys|C-x C-m C-\ TeX}}
 +
: To type greek character λ type \lambda.
  
To activate the input method for a specific mode put the following line in your config file:
+
= Accented characters =
  
  (add-hook 'text-mode-hook 'toggle-input-method)
+
; {{CommandKeys|C-x C-m C-\ latin-1-prefix}}
 +
: Use this method to input accented characters. When you type `" u' you get `ü'. Another You method is to {{PrefixKeys|C-x 8}}.
  
The input method is then automaticaly activated for files
+
= [[GNU/Linux]] =
which open in text mode.
+
= [[OS X]] =
 
+
= [[Windows]] =
To activate the input method on a per-buffer basis.
+
= [[Emacs-24]] =
First put the following lines in the .emacs:
+
= [[Emacs-23]] =
 
+
= Recommended Reading =
  (set input-activate nil)
+
= Project Pages =
  (add-hook 'find-file-hook
+
= Tutorial Pages =
            (lambda ()(if (eq input-activate t) (toggle-input-method))))
 
 
 
Then put the following line at the beginning of a file:
 
 
 
  -*- input-activate: t -*-
 
 
 
The input method will be activated for this file as soon as it is loaded.
 
 
 
These are some additional input methods that do not come with Emacs:
 
* Georgian (a bit different than the one that comes with Emacs): Lisp:georgian.el
 
* Armenian: Lisp:armenian.el
 
* Neo-Akkadian Cuneiform: Lisp:akkadian.el
 
* Glagolitic: Lisp:glagolitic.el
 
* Coptic: Lisp:coptic.el
 
 
 
It's convenient for people who speak in korean or japanese or etc... to use only the internal emacs input method ([[mule]]) without scim, nabi, Microsoft IME, etc...
 
 
 
 
 
 
 
'''See Also:''' ChangingCursorDynamically to automatically change the TextCursor color when you are using an input method. This makes it easy to tell if an input method is in use.
 
  
 
[[Category:Mule]]
 
[[Category:Mule]]

Revision as of 10:03, 1 April 2012

Input Methods allow you to enter characters that are not supported by your keyboard.

Helpful keybindings

[C-x C-m C-\] (or M-x set-input-method)
Switch to a new input method.
[C-h C-\] (or M-x describe-input-method)
Tells you how to enter a particular character for the current input mehtod.
[C-\] (or M-x {{{2}}})
Switch to your default input method.

TeX input method

[C-x C-m C-\ TeX] (or M-x {{{2}}})
To type greek character λ type \lambda.

Accented characters

[C-x C-m C-\ latin-1-prefix] (or M-x {{{2}}})
Use this method to input accented characters. When you type `" u' you get `ü'. Another You method is to [C-x 8].

GNU/Linux

OS X

Windows

Emacs-24

Emacs-23

Recommended Reading

Project Pages

Tutorial Pages