broken tables-big.in pango/modules/basic/



I've started to playing with GTK+1.3.x and Pango from CVS tree and
found that current GTK+1.3.x w/Pango can't display Japanese text
correctly.

So I digged into the source codes and found that tables-big.i in
pango/modules/basic is broken.

  * Most mapping tables available from unicode.org have Unicode values
    in the 2nd column.  But the mapping table for JIS X 0208
    (http://www.unicode.org/Public/Mappings/EASTASIA/JIS/JIS0208.TXT)
    has unicode values in the 3rd column.  So, tools/make-table.sh
    can't get correct unicode values for the JIS X 0208. Attached
    patch can resolve this problem.

  * Some mapping tables that were used to create tables-big.i in CVS
    are old. Out-of-dated mappings tables are ISO-8859-6, ISO-8859-7
    and GB-2312. Especially, old GB-2312 mapping table causes the
    duplication of ENC_GB_2312 in the last element of
    'char_mask_map[]'.

  KUSANO Takayuki <URL:http://www.asahi-net.or.jp/~AE5T-KSN/>

--- make-table.sh.orig	Thu Jan 13 13:12:07 2000
+++ make-table.sh	Wed Aug 30 22:23:23 2000
@@ -8,7 +8,7 @@
     README | CVS)
 	;;
     *)	
-	cat $i | grep -v '^#' | awk "{ printf \"%s %s:%s\\n\", \$2, \"$name\", \$1 }" >> table.tmp
+	cat $i | grep -v '^#' | sed -e 's/[:space:]*#.*$//' | awk "{ printf \"%s %s:%s\\n\", \$NF, \"$name\", \$1 }" >> table.tmp
 	;;
   esac
 done





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