Skip to content

Commit

Permalink
bug 606917 part 2 - update character property tables for harfbuzz to …
Browse files Browse the repository at this point in the history
…unicode 6.0. r=smontagu approval2.0=benjamin
  • Loading branch information
jfkthame committed Nov 11, 2010
1 parent 4ef760d commit cb64922
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 108 deletions.
7 changes: 6 additions & 1 deletion gfx/harfbuzz/src/hb-unicode.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ typedef enum
HB_SCRIPT_OLD_TURKIC, /* Orkh */
HB_SCRIPT_SAMARITAN, /* Samr */
HB_SCRIPT_TAI_THAM, /* Lana */
HB_SCRIPT_TAI_VIET /* Tavt */
HB_SCRIPT_TAI_VIET, /* Tavt */

/* Unicode-6.0 additions */
HB_SCRIPT_BATAK, /* Batk */
HB_SCRIPT_BRAHMI, /* Brah */
HB_SCRIPT_MANDAIC /* Mand */
} hb_script_t;


Expand Down
5 changes: 5 additions & 0 deletions gfx/thebes/genUnicodeScriptData.pl
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,15 @@
close FH;

# read Scripts.txt
my %scriptAliases = (
'MEETEI_MAYEK' => 'MEITEI_MAYEK'
);

open FH, "< $ARGV[1]/Scripts.txt" or die "can't open UCD file Scripts.txt\n";
while (<FH>) {
if (m/([0-9A-F]{4,6})(?:\.\.([0-9A-F]{4,6}))*\s+;\s+([^ ]+)/) {
my $script = uc($3);
$script = $scriptAliases{$script} if exists $scriptAliases{$script};
warn "unknown script $script" unless exists $scriptCode{$script};
$script = $scriptCode{$script};
my $start = hex "0x$1";
Expand Down
Loading

0 comments on commit cb64922

Please sign in to comment.