Permalink
Browse files

charmap: Add korean hangul and vietnamese pronunciations

Add vietnamese (kVietnamese) and korean pronunciation in hangul
(kHangul) to the unicode data.

Add vietnamese pronunciation to the charmap character details page,
and replace the kKorean use with kHangul use for korean since
kHangul is recommended to be used over kKorean by UAX#38.

http://www.unicode.org/reports/tr38/
https://bugzilla.gnome.org/show_bug.cgi?id=773380
  • Loading branch information...
studioego authored and Christian Persch committed Oct 30, 2016
1 parent 4ff3556 commit b3614d114bc2158f8e5c4b98797019f3a71d0ba7
View
@@ -1,3 +1,4 @@
Noah Levitt <nlevitt@columbia.edu>
Daniel Elstner <daniel.elstner@gmx.net>
Padraig O'Briain <Padraig.Obriain@sun.com>
+DaeHyun Sung <sungdh86@gmail.com>
@@ -201,6 +201,8 @@ gucharmap_get_unicode_kTang
gucharmap_get_unicode_kKorean
gucharmap_get_unicode_kJapaneseKun
gucharmap_get_unicode_kJapaneseOn
+gucharmap_get_unicode_kHangul
+gucharmap_get_unicode_kVietnamese
gucharmap_get_nameslist_stars
gucharmap_get_nameslist_equals
gucharmap_get_nameslist_exes
@@ -159,6 +159,24 @@ gucharmap-unicode-info
@Returns:
+<!-- ##### FUNCTION gucharmap_get_unicode_kHangul ##### -->
+<para>
+
+</para>
+
+@uc:
+@Returns:
+
+
+<!-- ##### FUNCTION gucharmap_get_unicode_kVietnamese ##### -->
+<para>
+
+</para>
+
+@uc:
+@Returns:
+
+
<!-- ##### FUNCTION gucharmap_get_nameslist_stars ##### -->
<para>
@@ -336,6 +336,8 @@ sub process_unihan_zip
print $out " gint32 kKorean;\n";
print $out " gint32 kJapaneseKun;\n";
print $out " gint32 kJapaneseOn;\n";
+ print $out " gint32 kHangul;\n";
+ print $out " gint32 kVietnamese;\n";
print $out "} \n";
print $out "unihan[] =\n";
print $out "{\n";
@@ -344,7 +346,7 @@ sub process_unihan_zip
my $offset = 0;
my $wc = 0;
- my ($kDefinition, $kCantonese, $kMandarin, $kTang, $kKorean, $kJapaneseKun, $kJapaneseOn);
+ my ($kDefinition, $kCantonese, $kMandarin, $kTang, $kKorean, $kJapaneseKun, $kJapaneseOn, $kHangul, $kVietnamese);
my $i = 0;
while (my $line = <$unihan>)
@@ -363,17 +365,19 @@ sub process_unihan_zip
{
if (defined $kDefinition or defined $kCantonese or defined $kMandarin
or defined $kTang or defined $kKorean or defined $kJapaneseKun
- or defined $kJapaneseOn)
+ or defined $kJapaneseOn or defined $kHangul or defined $kVietnamese)
{
- printf $out (" { 0x%04X, \%d, \%d, \%d, \%d, \%d, \%d, \%d },\n",
+ printf $out (" { 0x%04X, \%d, \%d, \%d, \%d, \%d, \%d, \%d, \%d, \%d },\n",
$wc,
(defined($kDefinition) ? $kDefinition : -1),
(defined($kCantonese) ? $kCantonese: -1),
(defined($kMandarin) ? $kMandarin : -1),
(defined($kTang) ? $kTang : -1),
(defined($kKorean) ? $kKorean : -1),
(defined($kJapaneseKun) ? $kJapaneseKun : -1),
- (defined($kJapaneseOn) ? $kJapaneseOn : -1));
+ (defined($kJapaneseOn) ? $kJapaneseOn : -1),
+ (defined($kHangul) ? $kHangul : -1),
+ (defined($kVietnamese) ? $kVietnamese : -1));
}
$wc = $new_wc;
@@ -385,10 +389,12 @@ sub process_unihan_zip
undef $kKorean;
undef $kJapaneseKun;
undef $kJapaneseOn;
+ undef $kHangul;
+ undef $kVietnamese;
}
for my $f (qw(kDefinition kCantonese kMandarin
- kTang kKorean kJapaneseKun kJapaneseOn)) {
+ kTang kKorean kJapaneseKun kJapaneseOn kHangul kVietnamese)) {
if ($field eq $f) {
push @strings, $value;
@@ -420,6 +426,12 @@ sub process_unihan_zip
elsif ($field eq "kJapaneseOn") {
$kJapaneseOn = $value;
}
+ elsif ($field eq "kHangul") {
+ $kHangul = $value;
+ }
+ elsif ($field eq "kVietnamese") {
+ $kVietnamese = $value;
+ }
if ($i++ % 32768 == 0) {
print ".";
@@ -438,7 +450,7 @@ sub process_unihan_zip
print $out "static const Unihan *_get_unihan (gunichar uc)\n;";
for my $name (qw(kDefinition kCantonese kMandarin
- kTang kKorean kJapaneseKun kJapaneseOn)) {
+ kTang kKorean kJapaneseKun kJapaneseOn kHangul kVietnamese)) {
print $out <<EOT;
static inline const char * unihan_get_$name (const Unihan *uh)
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2004 Noah Levitt
* Copyright (c) 2007, 2008 Christian Persch
+ * Copyright (c) 2016 DaeHyun Sung
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -702,7 +703,8 @@ set_details (GucharmapCharmap *charmap,
|| gucharmap_get_unicode_kJapaneseOn (uc)
|| gucharmap_get_unicode_kJapaneseKun (uc)
|| gucharmap_get_unicode_kTang (uc)
- || gucharmap_get_unicode_kKorean (uc))
+ || gucharmap_get_unicode_kHangul(uc)
+ || gucharmap_get_unicode_kVietnamese(uc))
{
insert_heading (charmap, buffer, &iter, _("CJK Ideograph Information"));
@@ -736,10 +738,15 @@ set_details (GucharmapCharmap *charmap,
insert_vanilla_detail (charmap, buffer, &iter,
_("Tang Pronunciation:"), csp);
- csp = gucharmap_get_unicode_kKorean (uc);
+ csp = gucharmap_get_unicode_kHangul (uc);
if (csp)
insert_vanilla_detail (charmap, buffer, &iter,
_("Korean Pronunciation:"), csp);
+
+ csp = gucharmap_get_unicode_kVietnamese (uc);
+ if (csp)
+ insert_vanilla_detail (charmap, buffer, &iter,
+ _("Vietnamese Pronunciation:"), csp);
}
}
@@ -1,5 +1,6 @@
/*
* Copyright © 2004 Noah Levitt
+ * Copyright (c) 2016 DaeHyun Sung
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -64,6 +65,8 @@ const gchar * gucharmap_get_unicode_kTang (gunichar uc);
const gchar * gucharmap_get_unicode_kKorean (gunichar uc);
const gchar * gucharmap_get_unicode_kJapaneseKun (gunichar uc);
const gchar * gucharmap_get_unicode_kJapaneseOn (gunichar uc);
+const gchar * gucharmap_get_unicode_kHangul (gunichar uc);
+const gchar * gucharmap_get_unicode_kVietnamese (gunichar uc);
/* nameslist stuff */
const gchar ** gucharmap_get_nameslist_stars (gunichar uc);
@@ -415,6 +415,7 @@ help_about (GSimpleAction *action,
"Daniel Elstner <daniel.elstner@gmx.net>",
"Padraig O'Briain <Padraig.Obriain@sun.com>",
"Christian Persch <" "chpe" "\100" "gnome" "." "org" ">",
+ "DaeHyun Sung <sungdh86@gmail.com>",
NULL
};
@@ -456,7 +457,8 @@ help_about (GSimpleAction *action,
"comments", _("Based on the Unicode Character Database 9.0.0"),
"copyright", "Copyright © 2004 Noah Levitt\n"
"Copyright © 1991–2016 Unicode, Inc.\n"
- "Copyright © 2007–2016 Christian Persch",
+ "Copyright © 2007–2016 Christian Persch\n"
+ "Copyright © 2016 DaeHyun Sung",
"documenters", documenters,
"license", license_trans,
"wrap-license", TRUE,
View
@@ -2,6 +2,7 @@
# This file is distributed under the same license as the gucharmap package.
# Young-Ho, Cha <ganadist at mizi.com>, 2003-2006.
# Changwoo Ryu <cwryu@debian.org>, 2007-2015.
+# DaeHyun Sung <sungdh86@gmail.com>, 2016.
#
# 참고:
# - 이 프로그램을 'Character Map'이라고 하는데 '문자 표'라고 번역.
@@ -21,8 +22,8 @@ msgstr ""
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=gucharmap&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2015-09-05 10:10+0000\n"
-"PO-Revision-Date: 2015-09-06 02:56+0900\n"
-"Last-Translator: Changwoo Ryu <cwryu@debian.org>\n"
+"PO-Revision-Date: 2016-10-23 02:56+0900\n"
+"Last-Translator: DaeHyun Sung <sungdh86@gmail.com>\n"
"Language-Team: GNOME Korea <gnome-kr@googlegroups.com>\n"
"Language: ko\n"
"MIME-Version: 1.0\n"
@@ -146,11 +147,11 @@ msgstr "뜻을 영어로 풀어놓기:"
#: ../gucharmap/gucharmap-charmap.c:719
msgid "Mandarin Pronunciation:"
-msgstr "북경어 표기:"
+msgstr "북경어 발음:"
#: ../gucharmap/gucharmap-charmap.c:724
msgid "Cantonese Pronunciation:"
-msgstr "광동어 표기:"
+msgstr "광동어 발음:"
#: ../gucharmap/gucharmap-charmap.c:729
msgid "Japanese On Pronunciation:"
@@ -162,12 +163,20 @@ msgstr "일본어 훈독:"
#: ../gucharmap/gucharmap-charmap.c:739
msgid "Tang Pronunciation:"
-msgstr "중국 고어 표기:"
+msgstr "중국 고어(당음) 발음:"
#: ../gucharmap/gucharmap-charmap.c:744
msgid "Korean Pronunciation:"
+msgstr "한국어 발음:"
+
+#: ../gucharmap/gucharmap-charmap.c:749
+msgid "Korean Alphabet(Hangul):"
msgstr "한글 표기:"
+#: ../gucharmap/gucharmap-charmap.c:754
+msgid "Vietnamese Pronunciation:"
+msgstr "베트남어 발음:"
+
#: ../gucharmap/gucharmap-charmap.c:1129
msgid "Characte_r Table"
msgstr "문자 표(_R)"
@@ -539,14 +548,15 @@ msgid "GNOME Character Map"
msgstr "그놈 문자 표"
#: ../gucharmap/gucharmap-window.c:449
-msgid "Based on the Unicode Character Database 8.0.0"
-msgstr "유니코드 문자 데이터베이스 8.0.0 기준"
+msgid "Based on the Unicode Character Database 9.0.0"
+msgstr "유니코드 문자 데이터베이스 9.0.0 기준"
#: ../gucharmap/gucharmap-window.c:458
msgid "translator-credits"
msgstr ""
"차영호 <ganadist@gmail.com>\n"
-"류창우 <cwryu@debian.org>"
+"류창우 <cwryu@debian.org>\n"
+"성대현 <sungdh86@gmail.com>"
#: ../gucharmap/gucharmap-window.c:547
msgid "Next Script"
@@ -1084,7 +1094,7 @@ msgstr "카타카나"
#: ../gucharmap/unicode-blocks.h:120 ../gucharmap/unicode-scripts.h:26
msgid "Bopomofo"
-msgstr "주음 기호(중국어 발음기호)"
+msgstr "주음부호(중국어 발음기호)"
#: ../gucharmap/unicode-blocks.h:121
msgid "Hangul Compatibility Jamo"
@@ -1098,7 +1108,7 @@ msgstr "간분"
#: ../gucharmap/unicode-blocks.h:123
msgid "Bopomofo Extended"
-msgstr "보포모포 확장영역"
+msgstr "주음부호 확장영역"
#: ../gucharmap/unicode-blocks.h:124
msgid "CJK Strokes"

0 comments on commit b3614d1

Please sign in to comment.