]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: Remove debug output
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 25 Mar 2008 23:12:21 +0000 (00:12 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 25 Mar 2008 23:12:21 +0000 (00:12 +0100)
lilypond-texi2html.init

index bc7c782044ea08dc8ae15c73cedbf4d3157465a6..2dc663efaa3e7436baeff55219ab8bad02ba59e2 100644 (file)
@@ -473,24 +473,15 @@ sub lilypond_unknown($$$$$)
     my $pass = shift;
     my $stack = shift;
     my $state = shift;
-    
+
+    # the @translationof macro provides the original English section title, 
+    # which should be used for file/anchor naming, while the title will be
+    # translated to each language
     if ($pass == 1 and $macro eq "translationof") {
       if (ref($state->{'element'})=='HASH') {
         $state->{'element'}->{'translationof'} = main::normalise_space($line);
       }
-      print "UNKNOWN: macro:$macro, line:$line, pass:$pass, stack:$stack, state:$state\n";
-      print Dumper($stack);
-      print Dumper($state);
       return ('', true, undef, undef);
-    }
-    if ($pass == 2 and $macro eq "translationof") {
-#       if (ref($state->{'element'})=='HASH') {
-# #         $state->{'element'}->{'translationonf'} = $line;
-#       }
-      print "UNKNOWN: macro:$macro, line:$line, pass:$pass, stack:$stack, state:$state\n";
-      print Dumper($stack);
-      print Dumper($state);
-      return ($line, 0, undef, undef);
     } else {
       return t2h_default_unknown($macro, $line, $pass, $stack, $state);
     }