[gucharmap] unicode: Skip unused names from UnicodeData.txt
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] unicode: Skip unused names from UnicodeData.txt
- Date: Thu, 3 Mar 2016 18:01:56 +0000 (UTC)
commit 618568ca9ff4bef1222d01b173e59ac4c839b2cf
Author: Christian Persch <chpe gnome org>
Date: Thu Mar 3 19:01:01 2016 +0100
unicode: Skip unused names from UnicodeData.txt
The First/Last are merely annotations and the real names
are generated programmatically in gucharmap-unicode-info.c,
so there's no need to bloat the binary with this data.
gucharmap/gen-guch-unicode-tables.pl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gucharmap/gen-guch-unicode-tables.pl b/gucharmap/gen-guch-unicode-tables.pl
index f2b5abb..88e7594 100755
--- a/gucharmap/gen-guch-unicode-tables.pl
+++ b/gucharmap/gen-guch-unicode-tables.pl
@@ -118,6 +118,9 @@ sub process_unicode_data_txt
my $hex = $1;
my $name = $2;
+ # Skip unwanted items
+ next if ($name =~ /^<.+, (First|Last)>$/);
+
$names{$name} = 1;
push @unicode_pairs, [$hex, $name];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]