aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2022-01-08 11:10:42 +0200
committerEli Zaretskii2022-01-08 11:10:42 +0200
commit6bf1bb384c3e52faa45340733f20c75dd6938f04 (patch)
tree04c748f22f4b08f4acb65e654fe6d0f739df8010
parentf7c3d628333e051c18b0493271b23f27933f2598 (diff)
downloademacs-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.texi46
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
52You can insert non-@acronym{ASCII} characters or search for them. To do that, 52You can insert non-@acronym{ASCII} characters or search for them. To do that,
53you can specify an input method (@pxref{Select Input Method}) suitable 53you can specify an Emacs input method (@pxref{Select Input Method}) suitable
54for your language, or use the default input method set up when you choose 54for your language, or use the default input method set up when you choose
55your language environment. If 55your language environment. If
56your keyboard can produce non-@acronym{ASCII} characters, you can select an 56your keyboard can produce non-@acronym{ASCII} characters, you can select an
57appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs 57appropriate keyboard coding system (@pxref{Terminal Coding}), and Emacs
58will accept those characters. Latin-1 characters can also be input by 58will accept those characters. On graphical displays, modern systems
59using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}. 59typically provide their native input methods, and Latin-1 characters
60can also be input by using the @kbd{C-x 8} prefix, see @ref{Unibyte Mode}.
60 61
61With the X Window System, your locale should be set to an appropriate 62With the X Window System, your locale should be set to an appropriate
62value to make sure Emacs interprets keyboard input correctly; see 63value 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
452specifically for interactive input. In Emacs, typically each language 453specifically for interactive input. This section describes input
453has its own input method; sometimes several languages that use the same 454methods that come with Emacs; for native input methods provided by the
454characters can share one input method. A few languages support several 455underlying OS, @pxref{Unibyte Mode}.
455input methods. 456
457 In Emacs, typically each language has its own input method;
458sometimes several languages that use the same characters can share one
459input 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
458into another alphabet; this allows you to use one other alphabet 462into 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}
1798and still be able to type 8-bit characters present directly on the 1802and still be able to type 8-bit characters present directly on the
1799keyboard or using @key{Compose} or @key{AltGr} keys. @xref{User Input}. 1803keyboard 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
1808Many modern systems provide @dfn{native input methods} for many
1809languages whose characters don't have keyboard keys assigned to them.
1810If Emacs was built with support for these native input methods, you
1811can activate such an input method and type the characters they
1812support. How to activate and use these input methods depends on the
1813system and the input method, and will not be described here; see your
1814system documentation. Here we describe some Emacs facilities to
1815control the use of the native input methods.
1816
1817@vindex x-gtk-use-native-input
1818In Emacs built with the GTK toolkit, the variable
1819@code{x-gtk-use-native-input} controls whether Emacs should receive
1820characters produced by GTK input methods. If the value is @code{nil},
1821the default, Emacs uses the X input methods (@acronym{XIM}), otherwise
1822it uses the GTK input methods. The @code{useXIM} X resource controls
1823whether to use @acronym{XIM}, and @code{inputStyle} X resource
1824controls the display on X of preview text generated by the native
1825input methods; @pxref{Table of Resources}.
1826
1827On MS-Windows, Emacs supports native inputs methods provided by
1828@acronym{IMM}, the Input Method Manager; but that can be turned off if
1829needed; @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
1805You can use the key @kbd{C-x 8} as a compose-character prefix for 1835You can use the key @kbd{C-x 8} as a compose-character prefix for
1806entry of non-@acronym{ASCII} Latin-1 and a few other printing 1836entry of non-@acronym{ASCII} Latin-1 and other printing
1807characters. @kbd{C-x 8} is good for insertion (in the minibuffer as 1837characters. @kbd{C-x 8} is good for insertion (in the minibuffer as
1808well as other buffers), for searching, and in any other context where 1838well as other buffers), for searching, and in any other context where
1809a key sequence is allowed. 1839a key sequence is allowed.