From d13be5bf24158b4cbc4896f10bee4e28b97d104c Mon Sep 17 00:00:00 2001 From: didg Date: Thu, 22 Jan 2009 00:14:09 +0000 Subject: [PATCH] precompose script, exclude U2000-U2FFF and UFE30-UFE4F ranges from the precompose table --- contrib/misc/make-precompose.h.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/misc/make-precompose.h.pl b/contrib/misc/make-precompose.h.pl index 77f789a6..9e85815c 100644 --- a/contrib/misc/make-precompose.h.pl +++ b/contrib/misc/make-precompose.h.pl @@ -46,8 +46,6 @@ while (){ $rightbracket =" },\*\/ "; # DELETE THIS LINE IF INTERNAL CODE IS UCS4 } # DELETE THIS LINE IF INTERNAL CODE IS UCS4 - printf(PRECOMPOSETEMP "%s0x%08X, 0x%08X, 0x%08X%s\/\* %s \*\/\n", $leftbracket, hex($code0), hex($base), hex($comb), $rightbracket, $Name1); - # AFP 3.x Spec if ( ((0x2000 <= hex($code0)) && (hex($code0) <= 0x2FFF)) || ((0xFE30 <= hex($code0)) && (hex($code0) <= 0xFE4F)) @@ -56,6 +54,8 @@ while (){ $rightbracket =" },\*\/ "; } + printf(PRECOMPOSETEMP "%s0x%08X, 0x%08X, 0x%08X%s\/\* %s \*\/\n", $leftbracket, hex($code0), hex($base), hex($comb), $rightbracket, $Name1); + printf( DECOMPOSETEMP "%s0x%08X, 0x%08X, 0x%08X%s\/\* %s \*\/\n", $leftbracket, hex($code0), hex($base), hex($comb), $rightbracket, $Name1); } @@ -68,7 +68,7 @@ system("sort -k 2 decompose.TEMP \> decompose.SORT"); # print ------------------------------------------------------------------- -printf ("\/\* This file is generated from contrib/misc/make-precompose.h.pl %s \*\/\n", $ARGV[0]); +printf ("\/\* This file is generated by contrib/misc/make-precompose.h.pl %s \*\/\n", $ARGV[0]); print ("\/\* DO NOT EDIT BY HAND\!\!\! \*\/\n"); print ("\n"); printf ("\/\* %s is got from \*\/\n", $ARGV[0]); -- 2.39.2