summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-07-25 02:08:48 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-07-25 02:08:48 +0000
commit90ddba2c9701ee72f09ee1c11f87b1327cbcd539 (patch)
tree3595b58fa4677c89bcfb1c03f43472d58d59c6be /tools
parent83723181b018b2340864d661c9b4b7dabb854ade (diff)
downloadpango-90ddba2c9701ee72f09ee1c11f87b1327cbcd539.tar.gz
Update to UCD 5.0.0.
2006-07-24 Behdad Esfahbod <behdad@gnome.org> * pango/mini-fribidi/fribidi_tab_char_type_2.i: Update to UCD 5.0.0. * pango/mini-fribidi/README: Note the about update. * pango/pango-script.h: Add new values for PangoScript. * pango/pango-script.c (pango_script_for_unichar_bsearch): Default to PANGO_SCRIPT_UNKNOWN. * pango/pango-script.c (pango_script_get_sample_language): Add empty entries for new script values. * tools/gen-script-table.pl: Default to PANGO_SCRIPT_UNKNOWN as is now the default value of Scripts.txt in UCD 5.0.0. * pango/pango-script-table.h: Regenerated against UCD 5.0.0. * docs/tmpl/scripts.sgml: Document new script types. * tools/gen-script-for-lang.c (scripts_for_line): Ignore data at the end of lines as many .orth files in fontconfig now list the character name there. * pango/pango-script-lang-table.h: Regenerate against newer fontconfig 2.3.9x.
Diffstat (limited to 'tools')
-rw-r--r--tools/gen-script-for-lang.c4
-rwxr-xr-xtools/gen-script-table.pl6
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index 707a1abe..0e1f5f76 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -122,8 +122,12 @@ scripts_for_line (const char *base_dir,
pango_skip_space (&p);
}
+
+ /* The rest of the line is ignored */
+ /*
if (*p != '\0')
goto err;
+ */
for (ch = start_char; ch <= end_char; ch++)
{
diff --git a/tools/gen-script-table.pl b/tools/gen-script-table.pl
index 73cd72f9..da181f87 100755
--- a/tools/gen-script-table.pl
+++ b/tools/gen-script-table.pl
@@ -77,7 +77,7 @@ for (my $c = 0; $c < $easy_range; $c++) {
}
if ($c < $start) {
- printf " PANGO_SCRIPT_COMMON,";
+ printf " PANGO_SCRIPT_UNKNOWN,";
} else {
printf " PANGO_SCRIPT_%s,", $script;
}
@@ -112,9 +112,7 @@ for (; $i <= $#ranges; $i++) {
$end = $ranges[$i]->[1];
}
- if ($script ne "COMMON") {
- printf " { %#06x, %5d, PANGO_SCRIPT_%s },\n", $start, $end - $start + 1, $script;
- }
+ printf " { %#06x, %5d, PANGO_SCRIPT_%s },\n", $start, $end - $start + 1, $script;
}
printf "};\n";