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

Re: composition-function-table



"Yair Friedman (Jerusalem)" <YAIRFR@xxxxxxxxxx> writes:
> I'm trying to use composition for Hebrew with accents.  For that the
> composition function has to be registered in composition-function-table.
> However, this table doesn't appear to be documented. 

??? C-h v composition-function-table should display the
attached docstring in *Help* buffer.

> Looking at other languages it seems that the registration should be
> something like:

> (aset composition-function-table (make-char 'hebrew-iso8859-8)
>    '(("\\c0\\c4\\|\\c0\\(\\c2\\|\\c3\\)\\c4?" . hebrew-composition-function)))
> But that is th meaning of this regex?

Yes.  The above pattern is valid only for Thai.

---
Ken'ichi HANDA
handa@xxxxxxxxx


------------------------------------------------------------
composition-function-table's value is 
[...]

Documentation:
Char table of patterns and functions to make a composition.

Each element is nil or an alist of PATTERNs vs FUNCs, where PATTERNs
are regular expressions and FUNCs are functions.  FUNC is responsible
for composing text matching the corresponding PATTERN.  FUNC is called
with three arguments FROM, TO, and PATTERN.  See the function
`compose-chars-after' for more detail.

This table is looked up by the first character of a composition when
the composition gets invalid after a change in a buffer.
------------------------------------------------------------