From e1cc38e64aa827cf85bb316688f66277bbfec139 Mon Sep 17 00:00:00 2001 From: "erik%netscape.com" Date: Fri, 2 Mar 2001 00:20:02 +0000 Subject: [PATCH] bug 70028; author=simon@softel.co.il; r=ftang; sr=erik; updating the tool that generates the symmetric swapping table for bidi characters --- intl/unicharutil/tools/gensymmtable.pl | 39 ++++++-------------------- 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/intl/unicharutil/tools/gensymmtable.pl b/intl/unicharutil/tools/gensymmtable.pl index 8fd6ec42e591..c39f08a8d8fd 100644 --- a/intl/unicharutil/tools/gensymmtable.pl +++ b/intl/unicharutil/tools/gensymmtable.pl @@ -23,6 +23,12 @@ # This program generates the header file symmtable.h from the Unicode # informative data file BidiMirroring.txt. # See the comments in that file for details of its structure and contents. +# +# At the moment we only handle cases where there is another Unicode +# character whose glyph can serve as at least an adequate version of +# the mirror image of the original character's glyph. This leaves open +# the problem of how to provide mirrored glyphs for characters where +# this is not the case. # Process the input file $ucp = "[0-9a-fA-F]{4}"; # Unicode code point (4 successive hex digits) as a pattern to match @@ -38,11 +44,6 @@ while () { @table[hex($1)]=hex($1) ^ hex($2); # Enter the character XOR its symmetric pair in the table @isblock[hex(substr($1, 0, 2))]=1; # Remember this block } - elsif (/^# ($ucp); (.+)/) { # If the line looks like this pattern - # (example: # 2201; COMPLEMENT) - @table[hex($1)]=0xff; # Enter 0xff in the table - @isblock[hex(substr($1, 0, 2))]=2; # Remember this block - } } close(UNICODATA); @@ -76,12 +77,7 @@ $npl = <