Mercurial > emacs
comparison lispref/nonascii.texi @ 34811:c2170032744b
make-char change
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 21 Dec 2000 22:28:08 +0000 |
parents | 67b6bdbd95c6 |
children | 679a73dad19a |
comparison
equal
deleted
inserted
replaced
34810:61d22833847a | 34811:c2170032744b |
---|---|
380 (split-char 128) | 380 (split-char 128) |
381 @result{} (eight-bit-control 128) | 381 @result{} (eight-bit-control 128) |
382 @end example | 382 @end example |
383 @end defun | 383 @end defun |
384 | 384 |
385 @defun make-char charset &rest byte-values | 385 @defun make-char charset &optional code1 code2 |
386 This function returns the character in character set @var{charset} | 386 This function returns the character in character set @var{charset} whose |
387 identified by @var{byte-values}. This is roughly the inverse of | 387 position codes are @var{code1} and @var{code2}. This is roughly the |
388 @code{split-char}. Normally, you should specify either one or two | 388 inverse of @code{split-char}. Normally, you should specify either one |
389 @var{byte-values}, according to the dimension of @var{charset}. For | 389 or both of @var{code1} and @var{code2} according to the dimension of |
390 example, | 390 @var{charset}. For example, |
391 | 391 |
392 @example | 392 @example |
393 (make-char 'latin-iso8859-1 72) | 393 (make-char 'latin-iso8859-1 72) |
394 @result{} 2248 | 394 @result{} 2248 |
395 @end example | 395 @end example |
414 (split-char 2176) | 414 (split-char 2176) |
415 @result{} (latin-iso8859-1 0) | 415 @result{} (latin-iso8859-1 0) |
416 @end example | 416 @end example |
417 | 417 |
418 The character sets @sc{ascii}, @sc{eight-bit-control}, and | 418 The character sets @sc{ascii}, @sc{eight-bit-control}, and |
419 @sc{eight-bit-graphic} don't have corresponding generic characters. | 419 @sc{eight-bit-graphic} don't have corresponding generic characters. If |
420 @var{charset} is one of them and you don't supply @var{code1}, | |
421 @code{make-char} returns the character code corresponding to the | |
422 smallest code in @var{charset}. | |
420 | 423 |
421 @node Scanning Charsets | 424 @node Scanning Charsets |
422 @section Scanning for Character Sets | 425 @section Scanning for Character Sets |
423 | 426 |
424 Sometimes it is useful to find out which character sets appear in a | 427 Sometimes it is useful to find out which character sets appear in a |