emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Composing Hebrew diacriticals


From: Kenichi Handa
Subject: Re: Composing Hebrew diacriticals
Date: Fri, 07 May 2010 15:23:07 +0900

In article <address@hidden>, Yair F <address@hidden> writes:

> Something like:

> (set-char-table-range
>  composition-function-table '(#x591 . #x5F4)
>  (list (vector hebrew-composable-pattern 0 'font-shape-gstring)))

> and now Needs to define hebrew-composable-pattern

If what composed are only diacritical marks, and they are
placed on any base characters, it is better to set that kind
of list only for hebrew diacriticals for efficiency.  So,
the code will be something like this:

(let ((hebrew-diacritals-list '((FROM1 . TO1) (FROM2 . TO2) ...))
      (regexp "[..HEBREW_BASE_CHARS..][..HEBREW_DIACRITICALS..]))
  (dolist (elt hebrew-diacritals-list)
    (set-char-table-range elt
      (list (vector regexp 1 'font-shape-gstring)))))

Here "1" is for moving back one character to check matching
with REGEXP.

>> There are some restrictions on which characters are allowed to be composed.

If that restrictions are more rigid, regexp should vary for
each diacritical mark.

---
Kenichi Handa
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]