aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/nonascii.texi38
1 files changed, 1 insertions, 37 deletions
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index 233fe59e1b1..90244210e55 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -434,6 +434,7 @@ returns a list consisting of the symbol @code{unknown} and @var{character}.
434@end example 434@end example
435@end defun 435@end defun
436 436
437@c FIXME: update split-char and make-char
437@cindex generate characters in charsets 438@cindex generate characters in charsets
438@defun make-char charset &optional code1 code2 439@defun make-char charset &optional code1 code2
439This function returns the character in character set @var{charset} whose 440This function returns the character in character set @var{charset} whose
@@ -453,32 +454,6 @@ instance, an ISO 8859 character code rather than subtracting 128, as
453is necessary to index the corresponding Emacs charset. 454is necessary to index the corresponding Emacs charset.
454@end defun 455@end defun
455 456
456@cindex generic characters
457 If you call @code{make-char} with no @var{byte-values}, the result is
458a @dfn{generic character} which stands for @var{charset}. A generic
459character is an integer, but it is @emph{not} valid for insertion in the
460buffer as a character. It can be used in @code{char-table-range} to
461refer to the whole character set (@pxref{Char-Tables}).
462@code{char-valid-p} returns @code{nil} for generic characters.
463For example:
464
465@example
466(make-char 'latin-iso8859-1)
467 @result{} 2176
468(char-valid-p 2176)
469 @result{} nil
470(char-valid-p 2176 t)
471 @result{} t
472(split-char 2176)
473 @result{} (latin-iso8859-1 0)
474@end example
475
476The character sets @code{ascii}, @code{eight-bit-control}, and
477@code{eight-bit-graphic} don't have corresponding generic characters. If
478@var{charset} is one of them and you don't supply @var{code1},
479@code{make-char} returns the character code corresponding to the
480smallest code in @var{charset}.
481
482@node Scanning Charsets 457@node Scanning Charsets
483@section Scanning for Character Sets 458@section Scanning for Character Sets
484 459
@@ -541,17 +516,6 @@ The arguments and the forms in each argument are processed in order,
541and if a previous form already translates @var{to} to some other 516and if a previous form already translates @var{to} to some other
542character, say @var{to-alt}, @var{from} is also translated to 517character, say @var{to-alt}, @var{from} is also translated to
543@var{to-alt}. 518@var{to-alt}.
544
545You can also map one whole character set into another character set with
546the same dimension. To do this, you specify a generic character (which
547designates a character set) for @var{from} (@pxref{Splitting Characters}).
548In this case, if @var{to} is also a generic character, its character
549set should have the same dimension as @var{from}'s. Then the
550translation table translates each character of @var{from}'s character
551set into the corresponding character of @var{to}'s character set. If
552@var{from} is a generic character and @var{to} is an ordinary
553character, then the translation table translates every character of
554@var{from}'s character set into @var{to}.
555@end defun 519@end defun
556 520
557 In decoding, the translation table's translations are applied to the 521 In decoding, the translation table's translations are applied to the