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: Tue, 11 May 2010 09:25:13 +0900

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

> > Yair, does the above work for you?  For me (on MS-Windows), it
> > infloops.  I will try to find out where it loops later.
> >
> The code below sort-of works for me.
> However, composition only occurs sometimes. I believe it depends on
> the font being used including font size.
> How can I debug it further?

I'm now working on fixing the problem of bidi-composition
interaction.  Please wait for a while.

---
Kenichi Handa
address@hidden

> (Kubuntu/GTK/XFT)

> (defconst hebrew-composable-pattern
>   (concat
>    "\\("
>    "[\u05D0-\u05D4\u05D6-\u05E8\u05EA\u05F1-\u05F3]"
>                                       ;; base (except vav and shin)
>    "[\u05BC\u05BF]?"                  ;; 0-1 marks of 1st class (dagesh)
>    "[\u05B0-\u05B9\u05BB\u05C7]?"     ;; 0-1 marks of 3rd class (vowel)
>    "[\u0591-\u05AF\u05BD]*"           ;; 0-2 (3?) marks of 4th class 
> (cantill.)
>    "\\|"
>    "\u05D5"                           ;; base (vav)
>    "\u05BC?"                          ;; 0-1 marks of 1st class (dagesh)
>    "[\u05B0-\u05BB\u05C7]?"           ;; 0-1 marks of extended 3rd class 
> (vowel)
>    "[\u0591-\u05AF\u05BD]*"           ;; 0-2 (3?) marks of 4th class 
> (cantill.)
>    "\\|"
>    "\u05E9"                           ;; base (shin)
>    "\u05BC?"                          ;; 0-1 marks of 1st class (dagesh)
>    "[\u05C1\u05C2]?"                  ;; 0-1 marks of 2nd class (shin dot)
>    "[\u05B0-\u05B9\u05BB\u05C7]?"     ;; 0-1 marks of 3rd class (vowel)
>    "[\u0591-\u05AF\u05BD]*"           ;; 0-2 (3?) marks of 4th class 
> (cantill.)
>    "\\)")
>   "Regexp matching a composable sequence of Hebrew characters.")

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





reply via email to

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