gucharmap r1706 - trunk/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1706 - trunk/gucharmap
- Date: Fri, 21 Mar 2008 10:59:33 +0000 (GMT)
Author: chpe
Date: Fri Mar 21 10:59:32 2008
New Revision: 1706
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1706&view=rev
Log:
Add script name override, mapping Nko => N'Ko. Bug #503377.
Modified:
trunk/gucharmap/gen-guch-unicode-tables.pl
trunk/gucharmap/unicode-scripts.h
Modified: trunk/gucharmap/gen-guch-unicode-tables.pl
==============================================================================
--- trunk/gucharmap/gen-guch-unicode-tables.pl (original)
+++ trunk/gucharmap/gen-guch-unicode-tables.pl Fri Mar 21 10:59:32 2008
@@ -756,15 +756,21 @@
{
my ($scripts_txt) = @_;
+ # Override script names
+ my %script_overrides =
+ (
+ "Nko" => "N\'Ko"
+ );
+
my %script_hash;
my %scripts;
- open (my $scripts, $scripts_txt) or die;
+ open (my $scripts_file, $scripts_txt) or die;
open (my $out, "> unicode-scripts.h") or die;
print "processing $scripts_txt...";
- while (my $line = <$scripts>)
+ while (my $line = <$scripts_file>)
{
my ($start, $end, $raw_script);
@@ -789,11 +795,15 @@
$script =~ tr/_/ /;
$script =~ s/(\w+)/\u\L$1/g;
+ if (exists $script_overrides{$script}) {
+ $script = $script_overrides{$script};
+ }
+
$script_hash{$start} = { 'end' => $end, 'script' => $script };
$scripts{$script} = 1;
}
- close ($scripts);
+ close ($scripts_file);
# Adds Common to make sure works with UCD <= 4.0.0
$scripts{"Common"} = 1;
Modified: trunk/gucharmap/unicode-scripts.h
==============================================================================
--- trunk/gucharmap/unicode-scripts.h (original)
+++ trunk/gucharmap/unicode-scripts.h Fri Mar 21 10:59:32 2008
@@ -54,8 +54,8 @@
N_("Malayalam"),
N_("Mongolian"),
N_("Myanmar"),
+ N_("N'Ko"),
N_("New Tai Lue"),
- N_("Nko"),
N_("Ogham"),
N_("Old Italic"),
N_("Old Persian"),
@@ -123,8 +123,8 @@
"Malayalam\0"
"Mongolian\0"
"Myanmar\0"
+ "N'Ko\0"
"New Tai Lue\0"
- "Nko\0"
"Ogham\0"
"Old Italic\0"
"Old Persian\0"
@@ -194,30 +194,30 @@
328,
338,
346,
- 358,
- 362,
- 368,
- 379,
- 391,
- 397,
- 405,
- 414,
- 425,
- 431,
- 439,
- 447,
- 460,
- 467,
- 475,
- 484,
- 491,
- 497,
- 504,
- 511,
- 516,
- 524,
- 533,
- 542,
+ 351,
+ 363,
+ 369,
+ 380,
+ 392,
+ 398,
+ 406,
+ 415,
+ 426,
+ 432,
+ 440,
+ 448,
+ 461,
+ 468,
+ 476,
+ 485,
+ 492,
+ 498,
+ 505,
+ 512,
+ 517,
+ 525,
+ 534,
+ 543,
};
static const struct _UnicodeScript
@@ -387,13 +387,13 @@
{ 0x0780, 0x07A5, 60 },
{ 0x07A6, 0x07B0, 60 },
{ 0x07B1, 0x07B1, 60 },
- { 0x07C0, 0x07C9, 42 },
- { 0x07CA, 0x07EA, 42 },
- { 0x07EB, 0x07F3, 42 },
- { 0x07F4, 0x07F5, 42 },
- { 0x07F6, 0x07F6, 42 },
- { 0x07F7, 0x07F9, 42 },
- { 0x07FA, 0x07FA, 42 },
+ { 0x07C0, 0x07C9, 41 },
+ { 0x07CA, 0x07EA, 41 },
+ { 0x07EB, 0x07F3, 41 },
+ { 0x07F4, 0x07F5, 41 },
+ { 0x07F6, 0x07F6, 41 },
+ { 0x07F7, 0x07F9, 41 },
+ { 0x07FA, 0x07FA, 41 },
{ 0x0901, 0x0902, 16 },
{ 0x0903, 0x0903, 16 },
{ 0x0904, 0x0939, 16 },
@@ -760,12 +760,12 @@
{ 0x1946, 0x194F, 36 },
{ 0x1950, 0x196D, 57 },
{ 0x1970, 0x1974, 57 },
- { 0x1980, 0x19A9, 41 },
- { 0x19B0, 0x19C0, 41 },
- { 0x19C1, 0x19C7, 41 },
- { 0x19C8, 0x19C9, 41 },
- { 0x19D0, 0x19D9, 41 },
- { 0x19DE, 0x19DF, 41 },
+ { 0x1980, 0x19A9, 42 },
+ { 0x19B0, 0x19C0, 42 },
+ { 0x19C1, 0x19C7, 42 },
+ { 0x19C8, 0x19C9, 42 },
+ { 0x19D0, 0x19D9, 42 },
+ { 0x19DE, 0x19DF, 42 },
{ 0x19E0, 0x19FF, 33 },
{ 0x1A00, 0x1A16, 6 },
{ 0x1A17, 0x1A18, 6 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]