(decode-char): Load subst tables if necessary.
(encode-char): Likewise.
This commit is contained in:
parent
95d2d43392
commit
8458c8b93d
1 changed files with 2 additions and 4 deletions
|
@ -316,8 +316,7 @@ Optional argument RESTRICTION specifies a way to map the pair of CCS
|
|||
and CODE-POINT to a character. Currently not supported and just ignored."
|
||||
(cond
|
||||
((eq ccs 'ucs)
|
||||
(or (gethash code-point
|
||||
(get 'utf-subst-table-for-decode 'translation-hash-table))
|
||||
(or (utf-lookup-subst-table-for-decode code-point)
|
||||
(let ((c (cond
|
||||
((< code-point 160)
|
||||
code-point)
|
||||
|
@ -361,8 +360,7 @@ code-point in CCS. Currently not supported and just ignored."
|
|||
(charset (car split))
|
||||
trans)
|
||||
(cond ((eq ccs 'ucs)
|
||||
(or (gethash char (get 'utf-subst-table-for-encode
|
||||
'translation-hash-table))
|
||||
(or (utf-lookup-subst-table-for-encode char)
|
||||
(let ((table (get 'utf-translation-table-for-encode
|
||||
'translation-table)))
|
||||
(setq trans (aref table char))
|
||||
|
|
Loading…
Add table
Reference in a new issue