diff options
| author | Eli Zaretskii | 2022-01-08 11:10:42 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-01-08 11:10:42 +0200 |
| commit | 6bf1bb384c3e52faa45340733f20c75dd6938f04 (patch) | |
| tree | 04c748f22f4b08f4acb65e654fe6d0f739df8010 | |
| parent | f7c3d628333e051c18b0493271b23f27933f2598 (diff) | |
| download | emacs-6bf1bb384c3e52faa45340733f20c75dd6938f04.tar.gz emacs-6bf1bb384c3e52faa45340733f20c75dd6938f04.zip | |
Improve documentation of native input methods
* doc/emacs/mule.texi (International, Input Methods)
(Unibyte Mode): Document user-level features of native input
methods.
| -rw-r--r-- | doc/emacs/mule.texi | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index 09fedb7f9f2..92e055300e1 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi | |||
| @@ -50,13 +50,14 @@ others. | |||
| 50 | 50 | ||
| 51 | @item | 51 | @item |
| 52 | You can insert non-@acronym{ASCII} characters or search for them. To do that, | 52 | You can insert non-@acronym{ASCII} characters or search for them. To do that, |
| 53 | you can specify an input method (@pxref{Select Input Method}) suitable | 53 | you can specify an Emacs input method (@pxref{Select Input Method}) suitable |
| 54 | for your language, or use the default input method set up when you choose | 54 | for your language, or use the default input method set up when you choose |
| 55 | your language environment. If | 55 | your language environment. If |
| 56 | your keyboard can produce non-@acronym{ASCII} characters, you can select an | 56 | your keyboard can produce non-@acronym{ASCII} characters, you can select an |
| 57 | appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs | 57 | appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs |
| 58 | will accept those characters. Latin-1 characters can also be input by | 58 | will accept those characters. On graphical displays, modern systems |
| 59 | using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}. | 59 | typically provide their native input methods, and Latin-1 characters |
| 60 | can also be input by using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}. | ||
| 60 | 61 | ||
| 61 | With the X Window System, your locale should be set to an appropriate | 62 | With the X Window System, your locale should be set to an appropriate |
| 62 | value to make sure Emacs interprets keyboard input correctly; see | 63 | value to make sure Emacs interprets keyboard input correctly; see |
| @@ -449,10 +450,13 @@ for that key. | |||
| 449 | 450 | ||
| 450 | @cindex input methods | 451 | @cindex input methods |
| 451 | An @dfn{input method} is a kind of character conversion designed | 452 | An @dfn{input method} is a kind of character conversion designed |
| 452 | specifically for interactive input. In Emacs, typically each language | 453 | specifically for interactive input. This section describes input |
| 453 | has its own input method; sometimes several languages that use the same | 454 | methods that come with Emacs; for native input methods provided by the |
| 454 | characters can share one input method. A few languages support several | 455 | underlying OS, @pxref{Unibyte Mode}. |
| 455 | input methods. | 456 | |
| 457 | In Emacs, typically each language has its own input method; | ||
| 458 | sometimes several languages that use the same characters can share one | ||
| 459 | input method. A few languages support several input methods. | ||
| 456 | 460 | ||
| 457 | The simplest kind of input method works by mapping @acronym{ASCII} letters | 461 | The simplest kind of input method works by mapping @acronym{ASCII} letters |
| 458 | into another alphabet; this allows you to use one other alphabet | 462 | into another alphabet; this allows you to use one other alphabet |
| @@ -1798,12 +1802,38 @@ as @code{xterm}, you can arrange for Meta to be converted to @key{ESC} | |||
| 1798 | and still be able to type 8-bit characters present directly on the | 1802 | and still be able to type 8-bit characters present directly on the |
| 1799 | keyboard or using @key{Compose} or @key{AltGr} keys. @xref{User Input}. | 1803 | keyboard or using @key{Compose} or @key{AltGr} keys. @xref{User Input}. |
| 1800 | 1804 | ||
| 1805 | @cindex input methods, native | ||
| 1806 | @cindex XIM, X Input Methods | ||
| 1807 | @cindex GTK input methods | ||
| 1808 | Many modern systems provide @dfn{native input methods} for many | ||
| 1809 | languages whose characters don't have keyboard keys assigned to them. | ||
| 1810 | If Emacs was built with support for these native input methods, you | ||
| 1811 | can activate such an input method and type the characters they | ||
| 1812 | support. How to activate and use these input methods depends on the | ||
| 1813 | system and the input method, and will not be described here; see your | ||
| 1814 | system documentation. Here we describe some Emacs facilities to | ||
| 1815 | control the use of the native input methods. | ||
| 1816 | |||
| 1817 | @vindex x-gtk-use-native-input | ||
| 1818 | In Emacs built with the GTK toolkit, the variable | ||
| 1819 | @code{x-gtk-use-native-input} controls whether Emacs should receive | ||
| 1820 | characters produced by GTK input methods. If the value is @code{nil}, | ||
| 1821 | the default, Emacs uses the X input methods (@acronym{XIM}), otherwise | ||
| 1822 | it uses the GTK input methods. The @code{useXIM} X resource controls | ||
| 1823 | whether to use @acronym{XIM}, and @code{inputStyle} X resource | ||
| 1824 | controls the display on X of preview text generated by the native | ||
| 1825 | input methods; @pxref{Table of Resources}. | ||
| 1826 | |||
| 1827 | On MS-Windows, Emacs supports native inputs methods provided by | ||
| 1828 | @acronym{IMM}, the Input Method Manager; but that can be turned off if | ||
| 1829 | needed; @pxref{Windows Keyboard}. | ||
| 1830 | |||
| 1801 | @cindex @code{iso-transl} library | 1831 | @cindex @code{iso-transl} library |
| 1802 | @cindex compose character | 1832 | @cindex compose character |
| 1803 | @cindex dead character | 1833 | @cindex dead character |
| 1804 | @item | 1834 | @item |
| 1805 | You can use the key @kbd{C-x 8} as a compose-character prefix for | 1835 | You can use the key @kbd{C-x 8} as a compose-character prefix for |
| 1806 | entry of non-@acronym{ASCII} Latin-1 and a few other printing | 1836 | entry of non-@acronym{ASCII} Latin-1 and other printing |
| 1807 | characters. @kbd{C-x 8} is good for insertion (in the minibuffer as | 1837 | characters. @kbd{C-x 8} is good for insertion (in the minibuffer as |
| 1808 | well as other buffers), for searching, and in any other context where | 1838 | well as other buffers), for searching, and in any other context where |
| 1809 | a key sequence is allowed. | 1839 | a key sequence is allowed. |