X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Flilypond-texi2html.init;h=92c48b970c9e94b11e40e3b737a748046af1ef02;hb=db4d6b7808b24f441e8689d2a9a459651623cb7e;hp=edd22bf1611317919aeebcb5385fcc6ee4dc11c7;hpb=74b336b3cab541e5f57c11c33ff52475eb655414;p=lilypond.git diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index edd22bf161..92c48b970c 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -76,23 +76,32 @@ use Encode qw(decode); my $LY_LANGUAGES = {}; $LY_LANGUAGES->{'fr'} = { 'Back to Documentation Index' => 'Retour à l\'accueil de la documentation', + '
Thanks to ${webdev_link} for hosting ${lily_site}.' => '
Remerciements à ${webdev_link} pour l\'hébergement de ${lily_site}.', }; + $LY_LANGUAGES->{'es'} = { 'Back to Documentation Index' => 'Volver al Ãndice de la documentación', + '
Thanks to ${webdev_link} for hosting ${lily_site}.' => '
Agradecemos a ${webdev_link} el alojamiento de ${lily_site}.', }; + $LY_LANGUAGES->{'de'} = { 'Back to Documentation Index' => 'Zur Dokumentationsübersicht', + '
Thanks to ${webdev_link} for hosting ${lily_site}.' => '', }; + $LY_LANGUAGES->{'ja'} = { 'Back to Documentation Index' => 'ããã¥ã¡ã³ã ã¤ã³ããã¯ã¹ã«æ»ã', + '
Thanks to ${webdev_link} for hosting ${lily_site}.' => '', }; $LY_LANGUAGES->{'hu'} = { 'Back to Documentation Index' => 'Vissza a dokumentációk jegyzékéhez', + '
Thanks to ${webdev_link} for hosting ${lily_site}.' => 'Köszönet a ${webdev_link} részére a ${lily_site} tárhelyért.', }; $LY_LANGUAGES->{'it'} = { 'Back to Documentation Index' => 'Torna all\'indice della documentazione', + '
Thanks to ${webdev_link} for hosting ${lily_site}.' => '',
};
# FIXME: request the translations below then send them to texi2html/texinfo devs
@@ -366,6 +375,142 @@ $LANGUAGES->{'hu'} = {
'{title_ref}' => '{title_ref}'
};
+$LANGUAGES->{'ja'} = {
+ ' The buttons in the navigation panels have the following meaning:' => ' ããã²ã¼ã·ã§ã³ ããã«ã®ä¸ã«ãããã¿ã³ã«ã¯ä»¥ä¸ã®ãããªæå³ãããã¾ã:',
+ ' where the @strong{ Example } assumes that the current position is at @strong{ Subsubsection One-Two-Three } of a document of the following structure:' => ' ãã®è¡¨ã§ã@strong{ è¡ãå
} ã¯ãç¾å¨ã®ä½ç½®ã以ä¸ã®ãããªæ§é ãæã¤ããã¥ã¡ã³ãã® @strong{ ãµããµãã»ã¯ã·ã§ã³ 1-2-3 } ã§ããã¨ä»®å®ãã¦ãã¾ã:',
+ ' Up ' => ' ä¸ã¸ ',
+ '(outside of any element)' => '(outside of any element)',
+ '(outside of any node)' => '(outside of any node)',
+ '@b{{quotation_arg}:} ' => '@b{{quotation_arg}:} ',
+ '@cite{{book}}' => '@cite{{book}}',
+ '@{No value for `{value}\'@}' => '@{No value for `{value}\'@}',
+ 'About' => 'æ
å ±',
+ 'About (help)' => 'æ
å ± (ãã«ã)',
+ 'About This Document' => 'ãã®ããã¥ã¡ã³ãã«ã¤ãã¦',
+ 'April' => '4 æ',
+ 'August' => '8 æ',
+ 'Back' => 'Back',
+ 'Back section in previous file' => '',
+ 'Beginning of this chapter or previous chapter' => 'ãã®ç« ãããã¯åã®ç« ã®å
é ',
+ 'Button' => 'ãã¿ã³',
+ 'Contents' => 'ç®æ¬¡',
+ 'Cover (top) of document' => 'ããã¥ã¡ã³ãã®è¡¨ç´ (å
é )',
+ 'Current' => '',
+ 'Current Position' => 'ç¾å¨ã®ä½ç½®',
+ 'Current section' => '',
+ 'December' => '12 æ',
+ 'FastBack' => '',
+ 'FastForward' => '',
+ 'February' => '2 æ',
+ 'First' => '',
+ 'First section in reading order' => '',
+ 'Following' => '',
+ 'Following node' => '',
+ 'Footnotes' => 'è注',
+ 'Forward' => '',
+ 'Forward section in next file' => '',
+ 'From 1.2.3 go to' => '1.2.3 ããã®è¡ãå
',
+ 'Go to' => 'è¡ãå
',
+ 'Index' => 'ã¤ã³ããã¯ã¹',
+ 'Index Entry' => 'ã¤ã³ããã¯ã¹ ã¨ã³ããª',
+ 'January' => '1 æ',
+ 'July' => '7 æ',
+ 'Jump to' => '',
+ 'June' => '6æ',
+ 'Last' => '',
+ 'Last section in reading order' => '',
+ 'March' => '3 æ',
+ 'May' => '5 æ',
+ 'Menu:' => 'ã¡ãã¥ã¼',
+ 'Name' => '',
+ 'Next' => '',
+ 'Next chapter' => '次ã®ç« ',
+ 'Next file' => '',
+ 'Next node' => '',
+ 'Next section in reading order' => '次ã®ã»ã¯ã·ã§ã³',
+ 'Next section on same level' => '',
+ 'NextFile' => '',
+ 'Node following in node reading order' => '',
+ 'Node up' => '',
+ 'NodeNext' => '',
+ 'NodePrev' => '',
+ 'NodeUp' => '',
+ 'November' => '11 æ',
+ 'October' => '10 æ',
+ 'Overview' => 'æ¦è¦',
+ 'Prev' => '',
+ 'PrevFile' => '',
+ 'Previous' => '',
+ 'Previous file' => '',
+ 'Previous node' => '',
+ 'Previous section in reading order' => 'åã®ã»ã¯ã·ã§ã³',
+ 'Previous section on same level' => '',
+ 'Section' => 'ã»ã¯ã·ã§ã³',
+ 'Section One' => 'ã»ã¯ã·ã§ã³ 1',
+ 'See ' => '',
+ 'See @cite{{book}}' => '',
+ 'See section `@asis{}`{section_name}\'@asis{}\' in @cite{{book}}' => '',
+ 'See section `{section}\' in @cite{{book}}' => '',
+ 'See section {reference_name}' => '',
+ 'See {node_file_href}' => '',
+ 'See {node_file_href} @cite{{book}}' => '',
+ 'See {node_file_href} section `{section}\' in @cite{{book}}' => '',
+ 'See {reference_name}' => '',
+ 'See {ref}' => '',
+ 'See {title_ref}' => '',
+ 'September' => '9 æ',
+ 'Short Table of Contents' => '',
+ 'Short table of contents' => '',
+ 'Subsection One-Four' => 'ãµãã»ã¯ã·ã§ã³ 1-4',
+ 'Subsection One-One' => 'ãµãã»ã¯ã·ã§ã³ 1-1',
+ 'Subsection One-Three' => 'ãµãã»ã¯ã·ã§ã³ 1-3',
+ 'Subsection One-Two' => 'ãµãã»ã¯ã·ã§ã³ 1-2',
+ 'Subsubsection One-Two-Four' => 'ãµããµãã»ã¯ã·ã§ã³ 1-2-4',
+ 'Subsubsection One-Two-One' => 'ãµããµãã»ã¯ã·ã§ã³ 1-2-1',
+ 'Subsubsection One-Two-Three' => 'ãµããµãã»ã¯ã·ã§ã³ 1-2-3',
+ 'Subsubsection One-Two-Two' => 'ãµããµãã»ã¯ã·ã§ã³ 1-2-2',
+ 'T2H_today' => '%s, %d %d',
+ 'Table of Contents' => 'ç®æ¬¡',
+ 'Table of contents' => 'ç®æ¬¡',
+ 'The node you are looking for is at {href}.' => '',
+ 'This' => '',
+ 'This document was generated on @i{{date}} using @uref{{program_homepage}, @i{{program}}}.' => 'ãã®ããã¥ã¡ã³ã㯠@i{{date}} ã«ã@uref{{program_homepage}, @i{{program}}} ãç¨ãã¦çæããã¾ããã',
+ 'This document was generated using @uref{{program_homepage}, @emph{{program}}}.' => 'ãã®ããã¥ã¡ã³ã㯠@uref{{program_homepage}, @emph{{program}}} ãç¨ãã¦çæããã¾ããã',
+ 'Top' => 'ããã',
+ 'Untitled Document' => '',
+ 'Up' => 'ä¸',
+ 'Up node' => '',
+ 'Up section' => 'ä¸ã®ã»ã¯ã·ã§ã³',
+ 'current' => '',
+ 'on @emph{{date}}' => '@emph{{date}} ã«',
+ 'section `@asis{}`{section_name}\'@asis{}\' in @cite{{book}}' => '',
+ 'section `{section}\' in @cite{{book}}' => '',
+ 'see ' => '',
+ 'see @cite{{book}}' => '',
+ 'see section `@asis{}`{section_name}\'@asis{}\' in @cite{{book}}' => '',
+ 'see section `{section}\' in @cite{{book}}' => '',
+ 'see section {reference_name}' => '',
+ 'see {node_file_href}' => '',
+ 'see {node_file_href} @cite{{book}}' => '',
+ 'see {node_file_href} section `{section}\' in @cite{{book}}' => '',
+ 'see {reference_name}' => '',
+ 'see {ref}' => '',
+ 'see {title_ref}' => '',
+ '{acronym_like} ({explanation})' => '{acronym_like} ({explanation})',
+ '{name} of {class}' => '',
+ '{name} on {class}' => '',
+ '{node_file_href}' => '',
+ '{node_file_href} @cite{{book}}' => '',
+ '{node_file_href} section `{section}\' in @cite{{book}}' => '',
+ '{reference_name}' => '',
+ '{ref}' => '{ref}',
+ '{style} {number}' => '{style} {number}',
+ '{style}: {caption_first_line}' => '{style}: {caption_first_line}',
+ '{style}: {shortcaption_first_line}' => '{style}: {shortcaption_first_line}',
+ '{title_ref}' => '{title_ref}'
+ };
+
+
sub ly_get_string () {
my $lang = $Texi2HTML::THISDOC{current_lang};
my $string = shift;
@@ -399,19 +544,17 @@ $Texi2HTML::Config::DOCTYPE = ' "lilypond-web.css", TITLE => "Patrick McCarty's design"}
- );
- @Texi2HTML::Config::ALT_CSS_REFS = (
+ );
+ @Texi2HTML::Config::ALT_CSS_REFS = (
{FILENAME => "lilypond-web-alt1.css", TITLE => "Alternate style 1"},
{FILENAME => "lilypond-web-alt2.css", TITLE => "Alternate style 2"},
- );
+ );
}
-# web_settings() if (exists($main::value{'web_manual'}));
-
$Texi2HTML::Config::USE_ACCESSKEY = 1;
$Texi2HTML::Config::USE_LINKS = 1;
$Texi2HTML::Config::USE_REL_REV = 1;
@@ -487,6 +630,19 @@ sub print_element_info($)
### HELPER FUNCTIONS
#############################################################################
+# only lc() the last portion of an href
+sub lc_last($)
+{
+ my $href = shift;
+ my @hrefsplit = split('/', $href);
+ # change the last portion (the filename), if it exists
+ if ($#hrefsplit > 0) {
+ @hrefsplit[$#hrefsplit] = lc( @hrefsplit[$#hrefsplit] );
+ $href = join("/", @hrefsplit);
+ }
+ return $href;
+}
+
# Convert a given node name to its proper file name (normalization as explained
# in the texinfo manual:
# http://www.gnu.org/software/texinfo/manual/texinfo/html_node/HTML-Xref-Node-Name-Expansion.html
@@ -519,7 +675,7 @@ sub texinfo_file_name($)
$result = 't_g' . $result;
}
# DONE
- return lc($result)
+ return lc_last($result)
}
# Load a file containing a nodename<=>filename map (tab-sepatared, i.e.
@@ -527,33 +683,33 @@ sub texinfo_file_name($)
# Returns a ref to a hash "Node title" => ["FilenameWithoutExt", "Anchor"]
sub load_map_file ($)
{
- my $mapfile = shift;
- my $node_map = ();
-
- # For some unknown reason, Perl on my system (5.10.0 on Fedora 12)
- # refuses to open map files of translated documents with
- # '<:encoding(utf8)', but decoding from UTF-8 line by line works. -jm
- if (open(XREFFILE,'<', $mapfile)) {
- my $line;
- # print STDERR "*** PRINTING MAP FILE LINES ***\n";
- while ( $line = decode ('UTF-8', Thanks to webdev.nl";
- print $fh " for hosting Thanks to ${webdev_link} for hosting ${lily_site}.');
+ # this does the variable substitution ("quoting" in Perlish) after the localization
+ $hosting_thanks =~ s/(\$\{\w+\})/$1/eeg;
+ print $fh $hosting_thanks . "\n";
print $fh "\n";
print $fh "" . &$anchor($docid, "$footnote_file#$footid", $relative_num) . "";
- $foot_anchor = &$anchor($docid, "$footnote_file#$footid", "($relative_num)") if ($state->{'preformatted'});
+ my $foot_anchor = "" .
+ &$anchor($docid, "$footnote_file#$footid", $relative_num) . "";
+ $foot_anchor = &$anchor($docid,
+ "$footnote_file#$footid",
+ "($relative_num)") if ($state->{'preformatted'});
# unshift @$lines, "\n");
if ($web_manual) {
- push (@result, "$ind
\n");
@@ -1049,7 +1221,8 @@ sub lilypond_generate_page_toc_body($)
# it's not the top element
push (@toc_entries, "Validation
\n";
- print $fh "lilypond.org
.\n";
+ # FIXME: inlined text substitution, move to ly_get_string as soon as another case is needed
+ my $webdev_link = "webdev.nl";
+ my $lily_site = "lilypond.org
";
+ my $hosting_thanks = &ly_get_string ('