Re: Need to render 0x00AD symbol



On 13-11-19 04:17 AM, Parth Kanungo wrote:
Hello,

 

I am trying to render a string containing 0x00AD

You shouldn't do this.  If you are trying to insert a hyphen at line-break,
then insert a hyphen.

gunichar2 sText[] = { (gunichar2)L'Q',
(gunichar2)L'u',0x00AD,(gunichar2)L'i',(gunichar2)L'c',(gunichar2)L'k', 0};

 

I found that the symbol 0x00AD does not get rendered, as 0x00AD is a Default
Ignorable Code Point (according to the Unicode 6.2
<http://www.unicode.org/versions/Unicode6.2.0/ch05.pdf#G40025>)

I have rendered it by making the following changes:

 

*1.*Removing the following line in is_default_ignorable() function in
hb-unicode-private.hh

case 0x00: return unlikely (ch == 0x00AD);

*2*. Removing  (ch) == 0x00AD from idna_is_junk() macro in ghostutils.c

*3.*Removing ch == 0x00AD in the return statement of pango_is_zero_width() in
pango-utils.c

 

Do you think that these changes can lead to any side-effects ?

 

Thanks and regards,

Parth Kanungo

// 

 

 



_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list


-- 
behdad
http://behdad.org/


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