CREDITS: Add credits for Czech translation
Also add missing html entities conversion for rtf and tex outputs (hopefully I got them right). svn-id: r55834
This commit is contained in:
parent
89bc8bfdb2
commit
9fceb20012
3 changed files with 17 additions and 0 deletions
3
AUTHORS
3
AUTHORS
|
@ -348,6 +348,9 @@ Other contributions
|
||||||
Catalan:
|
Catalan:
|
||||||
Jordi Vilalta Prat
|
Jordi Vilalta Prat
|
||||||
|
|
||||||
|
Czech:
|
||||||
|
Zbynik Schwarz
|
||||||
|
|
||||||
Danish:
|
Danish:
|
||||||
Steffen Nyeland
|
Steffen Nyeland
|
||||||
|
|
||||||
|
|
|
@ -392,6 +392,9 @@ static const char *credits[] = {
|
||||||
"C1""Catalan",
|
"C1""Catalan",
|
||||||
"C0""Jordi Vilalta Prat",
|
"C0""Jordi Vilalta Prat",
|
||||||
"",
|
"",
|
||||||
|
"C1""Czech",
|
||||||
|
"C0""Zbyn\354k Schwarz",
|
||||||
|
"",
|
||||||
"C1""Danish",
|
"C1""Danish",
|
||||||
"C0""Steffen Nyeland",
|
"C0""Steffen Nyeland",
|
||||||
"",
|
"",
|
||||||
|
|
|
@ -62,6 +62,7 @@ sub html_entities_to_ascii {
|
||||||
# For now we hardcode these mappings
|
# For now we hardcode these mappings
|
||||||
# á -> a
|
# á -> a
|
||||||
# é -> e
|
# é -> e
|
||||||
|
# ì -> i
|
||||||
# ó -> o
|
# ó -> o
|
||||||
# ø -> o
|
# ø -> o
|
||||||
# ö -> o / oe
|
# ö -> o / oe
|
||||||
|
@ -73,6 +74,7 @@ sub html_entities_to_ascii {
|
||||||
# Š -> S
|
# Š -> S
|
||||||
$text =~ s/á/a/g;
|
$text =~ s/á/a/g;
|
||||||
$text =~ s/é/e/g;
|
$text =~ s/é/e/g;
|
||||||
|
$text =~ s/ì/i/g;
|
||||||
$text =~ s/ó/o/g;
|
$text =~ s/ó/o/g;
|
||||||
$text =~ s/ø/o/g;
|
$text =~ s/ø/o/g;
|
||||||
$text =~ s/ł/l/g;
|
$text =~ s/ł/l/g;
|
||||||
|
@ -97,6 +99,7 @@ sub html_entities_to_cpp {
|
||||||
# The numerical values are octal!
|
# The numerical values are octal!
|
||||||
$text =~ s/á/\\341/g;
|
$text =~ s/á/\\341/g;
|
||||||
$text =~ s/é/\\351/g;
|
$text =~ s/é/\\351/g;
|
||||||
|
$text =~ s/ì/\\354/g;
|
||||||
$text =~ s/ó/\\363/g;
|
$text =~ s/ó/\\363/g;
|
||||||
$text =~ s/ø/\\370/g;
|
$text =~ s/ø/\\370/g;
|
||||||
$text =~ s/ł/l/g;
|
$text =~ s/ł/l/g;
|
||||||
|
@ -113,13 +116,16 @@ sub html_entities_to_cpp {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Convert HTML entities to RTF codes
|
# Convert HTML entities to RTF codes
|
||||||
|
# This is using the Mac OS Roman encoding
|
||||||
sub html_entities_to_rtf {
|
sub html_entities_to_rtf {
|
||||||
my $text = shift;
|
my $text = shift;
|
||||||
|
|
||||||
$text =~ s/á/\\'87/g;
|
$text =~ s/á/\\'87/g;
|
||||||
$text =~ s/é/\\'8e/g;
|
$text =~ s/é/\\'8e/g;
|
||||||
|
$text =~ s/ì/\\'93/g;
|
||||||
$text =~ s/ó/\\'97/g;
|
$text =~ s/ó/\\'97/g;
|
||||||
$text =~ s/ø/\\'bf/g;
|
$text =~ s/ø/\\'bf/g;
|
||||||
|
$text =~ s/å/\\'8c/g;
|
||||||
# The following numerical values are octal!
|
# The following numerical values are octal!
|
||||||
$text =~ s/ł/\\uc0\\u322 /g;
|
$text =~ s/ł/\\uc0\\u322 /g;
|
||||||
$text =~ s/Š/\\uc0\\u540 /g;
|
$text =~ s/Š/\\uc0\\u540 /g;
|
||||||
|
@ -140,8 +146,10 @@ sub html_entities_to_tex {
|
||||||
|
|
||||||
$text =~ s/á/\\'a/g;
|
$text =~ s/á/\\'a/g;
|
||||||
$text =~ s/é/\\'e/g;
|
$text =~ s/é/\\'e/g;
|
||||||
|
$text =~ s/ì/\\`\\i/g;
|
||||||
$text =~ s/ó/\\'o/g;
|
$text =~ s/ó/\\'o/g;
|
||||||
$text =~ s/ø/{\\o}/g;
|
$text =~ s/ø/{\\o}/g;
|
||||||
|
$text =~ s/å/\\aa /g;
|
||||||
$text =~ s/ł/{\\l}/g;
|
$text =~ s/ł/{\\l}/g;
|
||||||
$text =~ s/Š/{\\v S}/g;
|
$text =~ s/Š/{\\v S}/g;
|
||||||
|
|
||||||
|
@ -891,6 +899,9 @@ begin_credits("Credits");
|
||||||
begin_section("Catalan");
|
begin_section("Catalan");
|
||||||
add_person("Jordi Vilalta Prat", "jvprat", "");
|
add_person("Jordi Vilalta Prat", "jvprat", "");
|
||||||
end_section();
|
end_section();
|
||||||
|
begin_section("Czech");
|
||||||
|
add_person("Zbynìk Schwarz", "", "");
|
||||||
|
end_section();
|
||||||
begin_section("Danish");
|
begin_section("Danish");
|
||||||
add_person("Steffen Nyeland", "", "");
|
add_person("Steffen Nyeland", "", "");
|
||||||
end_section();
|
end_section();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue