Commit b3614d11 authored by DaeHyun Sung's avatar DaeHyun Sung Committed by Christian Persch

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