Re: ZWNJ/ZWJ being shown in Pango HEAD ?

On Mon, 2004-02-23 at 12:35 -0500, Owen Taylor wrote:

> On Sun, 2004-02-22 at 13:29, Sayamindu Dasgupta wrote:
> > Hello,
> > For some reasons, Pango HEAD is showing the glyphs for ZWNJ and ZWJ (I
> > don't think they are supposed to be displayed).
> > This does not occur normally (when you insert a standalone ZWNJ), but it
> > shows up when I write a sequence such as U+0995 U+09CD ZWNJ (ক্‌).
> > Can anyone explain what is happening here ?
> Maybe related to:
> Where at the end we have an example of ZWJ being rendered when it
> shouldn't be rendered.

OK - I poked around a little, and here are the results :

1. The ZW[N]J is rendered when the appropriate glyphs are present in the
font which has been selected in the application preferences. 

2. For sequences like ZWNJ+Vowel Sign, this part of the code in indic-
ot.c seems to be involved.

        case CC_ZERO_WIDTH_MARK:
            for (i = prev; i < syllable; i += 1) {
                writeChar(&output, chars[i], /*i*/ prev, blwf_p);


I inserted a g_print statement in the for loop and apparently, ZWJ/ZWNJ
are being passed to writeChar.

I am not sure whether there is a similar thing happening with sequences
like Consonant + halant + ZWJ - but most probably that is the case. 
Now someone needs to find out why writeChar is letting ZW[N]J being


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