Include CJK UI Ext B in Pango



I find it remarkably simple to add CJK Unified Ideographs Extension B
support to Pango.  Only one line needs to be changed:

Index: pango/modules/basic/basic-fc.c
===================================================================
RCS file: /cvs/gnome/pango/modules/basic/basic-fc.c,v
retrieving revision 1.15
diff -u -r1.15 basic-fc.c
--- pango/modules/basic/basic-fc.c      14 Apr 2003 23:48:23 -0000      1.15
+++ pango/modules/basic/basic-fc.c      11 Jul 2003 21:06:22 -0000
@@ -66,7 +66,7 @@
   { 0xf900, 0xfa2d, "*" }, /* CJK Compatibility Ideographs */
   { 0xfe30, 0xfe6b, "*" }, /* CJK Compatibility Forms and Small Form Variants */
   { 0xff00, 0xffe3, "*" }, /* Halfwidth and Fullwidth Forms (partly) */
-  { 0x0000, 0xffff, "" },
+  { 0x0000, 0x2ffff, "" },
 };
 
 static PangoEngineInfo script_engines[] = {

I have a TrueType font to test it with.  Everything works wonderfully.
You can find the screen shot, using my favorite excerpt as an example,
here:

    http://oto.sourceforge.net/cjkuieb/

Although most of the characters in CJK UI EB are rarely used, there
ARE a few of them being used very often: they were deliberately put
out of reach for too long :).  Now it is the time to unlock them by
adding CJK UI Extension B support into Pango.

Regards,

Yao Zhang



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