]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/lilypond-texi2html.init
Doc build: move general.texi back into a subdir.
[lilypond.git] / Documentation / lilypond-texi2html.init
index e8393f1fc0b1d800173ce8b46c5ae2b09f5bbfd8..6a91142a3d94935df87866337df8fcc9c841bb0e 100644 (file)
@@ -85,6 +85,9 @@ $LY_LANGUAGES->{'ja'} = {
     'Back to Documentation Index' => 'ドキュメント インデックスに戻る',
 };
 
+$LY_LANGUAGES->{'hu'} = {
+    'Back to Documentation Index' => 'Vissza a dokumentációk jegyzékéhez',
+};
 
 sub ly_get_string () {
     my $lang = $Texi2HTML::THISDOC{current_lang};
@@ -108,6 +111,10 @@ sub ly_get_string () {
     {FILENAME => "lilypond.css", TITLE => "Andrew Hawryluk's design" },
     {FILENAME => "lilypond-blue.css", TITLE => "Kurt Kroon's blue design" },
 );
+# no bgcolor and link colors in <body> tag
+# in texi2html >=1.83, override $Texi2HTML::Config::html_default_bodytext instead
+$Texi2HTML::Config::BODYTEXT = "";
+$Texi2HTML::Config::DOCTYPE = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
 $Texi2HTML::Config::USE_ACCESSKEY = 1;
 $Texi2HTML::Config::USE_LINKS     = 1;
 $Texi2HTML::Config::USE_REL_REV   = 1;
@@ -224,7 +231,7 @@ sub load_map_file ($)
     my $mapfile = shift;
     my $node_map = ();
 
-    if (open(XREFFILE, $mapfile)) {
+    if (open(XREFFILE,'<:encoding(utf8)', $mapfile)) {
         my $line;
         while ( $line = <XREFFILE> ) {
             # parse the tab-separated entries and insert them into the map:
@@ -681,7 +688,7 @@ sub lilypond_print_toc_div ($$)
     }
     my $reldir = "";
     $reldir = "../" if ($Texi2HTML::Config::SPLIT eq 'section');
-    my $uplink = $reldir."index.${lang}html";
+    my $uplink = $reldir."general/manuals.${lang}html";
 
     print $fh "<p class=\"toc_uplink\"><a href=\"$uplink\" 
          title=\"Documentation Index\">&lt;&lt; " .