deuce.emacs.charset
char-charset
(char-charset ch & [restriction])
Return the charset of highest priority that contains CH.
If optional 2nd arg RESTRICTION is non-nil, it is a list of charsets
from which to find the charset. It may also be a coding system. In
that case, find the charset from what supported by that coding system.
charset-after
(charset-after & [pos])
Return charset of a character in the current buffer at position POS.
If POS is nil, it defaults to the current point.
If POS is out of range, the value is nil.
charset-id-internal
(charset-id-internal & [charset])
Internal use only.
Return charset identification number of CHARSET.
charset-plist
(charset-plist charset)
Return the property list of CHARSET.
charset-priority-list
(charset-priority-list & [highestp])
Return the list of charsets ordered by priority.
HIGHESTP non-nil means just return the highest priority one.
charsetp
(charsetp object)
Return non-nil if and only if OBJECT is a charset.
clear-charset-maps
(clear-charset-maps)
Internal use only.
Clear temporary charset mapping tables.
It should be called only from temacs invoked for dumping.
declare-equiv-charset
(declare-equiv-charset dimension chars final-char charset)
Declare an equivalent charset for ISO-2022 decoding.
On decoding by an ISO-2022 base coding system, when a charset
specified by DIMENSION, CHARS, and FINAL-CHAR is designated, behave as
if CHARSET is designated instead.
decode-char
(decode-char charset code-point & [restriction])
Decode the pair of CHARSET and CODE-POINT into a character.
Return nil if CODE-POINT is not valid in CHARSET.
CODE-POINT may be a cons (HIGHER-16-BIT-VALUE . LOWER-16-BIT-VALUE).
Optional argument RESTRICTION specifies a way to map the pair of CCS
and CODE-POINT to a character. Currently not supported and just ignored.
define-charset-alias
(define-charset-alias alias charset)
Define ALIAS as an alias for charset CHARSET.
define-charset-internal
(define-charset-internal & args)
encode-char
(encode-char ch charset & [restriction])
Encode the character CH into a code-point of CHARSET.
Return nil if CHARSET doesn't include CH.
Optional argument RESTRICTION specifies a way to map CH to a
code-point in CCS. Currently not supported and just ignored.
find-charset-region
(find-charset-region beg end & [table])
Return a list of charsets in the region between BEG and END.
BEG and END are buffer positions.
Optional arg TABLE if non-nil is a translation table to look up.
If the current buffer is unibyte, the returned list may contain
only `ascii', `eight-bit-control', and `eight-bit-graphic'.
find-charset-string
(find-charset-string str & [table])
Return a list of charsets in STR.
Optional arg TABLE if non-nil is a translation table to look up.
If STR is unibyte, the returned list may contain
only `ascii', `eight-bit-control', and `eight-bit-graphic'.
get-unused-iso-final-char
(get-unused-iso-final-char dimension chars)
Return an unused ISO final char for a charset of DIMENSION and CHARS.
DIMENSION is the number of bytes to represent a character: 1 or 2.
CHARS is the number of characters in a dimension: 94 or 96.
This final char is for private use, thus the range is `0' (48) .. `?' (63).
If there's no unused final char for the specified kind of charset,
return nil.
iso-charset
(iso-charset dimension chars final-char)
Return charset of ISO's specification DIMENSION, CHARS, and FINAL-CHAR.
ISO 2022's designation sequence (escape sequence) distinguishes charsets
by their DIMENSION, CHARS, and FINAL-CHAR,
whereas Emacs distinguishes them by charset symbol.
See the documentation of the function `charset-info' for the meanings of
DIMENSION, CHARS, and FINAL-CHAR.
make-char
(make-char charset & [code1 code2 code3 code4])
Return a character of CHARSET whose position codes are CODEn.
CODE1 through CODE4 are optional, but if you don't supply sufficient
position codes, it is assumed that the minimum code in each dimension
is specified.
map-charset-chars
(map-charset-chars function charset & [arg from-code to-code])
Call FUNCTION for all characters in CHARSET.
FUNCTION is called with an argument RANGE and the optional 3rd
argument ARG.
RANGE is a cons (FROM . TO), where FROM and TO indicate a range of
characters contained in CHARSET.
The optional 4th and 5th arguments FROM-CODE and TO-CODE specify the
range of code points (in CHARSET) of target characters.
set-charset-plist
(set-charset-plist charset plist)
Set CHARSET's property list to PLIST.
set-charset-priority
(set-charset-priority & charsets)
Assign higher priority to the charsets given as arguments.
sort-charsets
(sort-charsets charsets)
Sort charset list CHARSETS by a priority of each charset.
Return the sorted list. CHARSETS is modified by side effects.
See also `charset-priority-list' and `set-charset-priority'.
split-char
(split-char ch)
Return list of charset and one to four position-codes of CH.
The charset is decided by the current priority order of charsets.
A position-code is a byte value of each dimension of the code-point of
CH in the charset.
unify-charset
(unify-charset charset & [unify-map deunify])
Unify characters of CHARSET with Unicode.
This means reading the relevant file and installing the table defined
by CHARSET's `:unify-map' property.
Optional second arg UNIFY-MAP is a file name string or a vector. It has
the same meaning as the `:unify-map' attribute in the function
`define-charset' (which see).
Optional third argument DEUNIFY, if non-nil, means to de-unify CHARSET.