diff options
| author | Eli Zaretskii | 2008-10-14 12:47:06 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-10-14 12:47:06 +0000 |
| commit | 02e99324a275223997ca43b6ab2dc4e418e882a4 (patch) | |
| tree | 49ab2ed69df1b71ca5da025701cffa395f421c22 | |
| parent | d15c8cce413accb8eae89907773feee7ba5155ec (diff) | |
| download | emacs-02e99324a275223997ca43b6ab2dc4e418e882a4.tar.gz emacs-02e99324a275223997ca43b6ab2dc4e418e882a4.zip | |
(Splitting Characters, Translation of Characters): Don't mention generic
characters.
| -rw-r--r-- | doc/lispref/nonascii.texi | 38 |
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 |
| 439 | This function returns the character in character set @var{charset} whose | 440 | This 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 | |||
| 453 | is necessary to index the corresponding Emacs charset. | 454 | is 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 | ||
| 458 | a @dfn{generic character} which stands for @var{charset}. A generic | ||
| 459 | character is an integer, but it is @emph{not} valid for insertion in the | ||
| 460 | buffer as a character. It can be used in @code{char-table-range} to | ||
| 461 | refer to the whole character set (@pxref{Char-Tables}). | ||
| 462 | @code{char-valid-p} returns @code{nil} for generic characters. | ||
| 463 | For 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 | |||
| 476 | The 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 | ||
| 480 | smallest 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, | |||
| 541 | and if a previous form already translates @var{to} to some other | 516 | and if a previous form already translates @var{to} to some other |
| 542 | character, say @var{to-alt}, @var{from} is also translated to | 517 | character, say @var{to-alt}, @var{from} is also translated to |
| 543 | @var{to-alt}. | 518 | @var{to-alt}. |
| 544 | |||
| 545 | You can also map one whole character set into another character set with | ||
| 546 | the same dimension. To do this, you specify a generic character (which | ||
| 547 | designates a character set) for @var{from} (@pxref{Splitting Characters}). | ||
| 548 | In this case, if @var{to} is also a generic character, its character | ||
| 549 | set should have the same dimension as @var{from}'s. Then the | ||
| 550 | translation table translates each character of @var{from}'s character | ||
| 551 | set into the corresponding character of @var{to}'s character set. If | ||
| 552 | @var{from} is a generic character and @var{to} is an ordinary | ||
| 553 | character, 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 |