3 ### texi2html customization script for Lilypond
4 ### Author: Reinhold Kainhofer <reinhold@kainhofer.com>, 2008.
5 ### Some code parts copied from texi2html and adapted.
9 ### Features implemented here:
10 ### -) For split manuals, the main page is index.html.
11 ### -) All @unnumbered* sections are placed into the same file
12 ### (implemented by split_at_numbered_sections)
13 ### -) Use our custom CSS file, with IE-specific fixes in another CSS file,
14 ### impelmented by lilypond_css_lines
15 ### -) TOC (folded, with the current page highlighted) in an iframe is added
16 ### to every page; implemented by:
17 ### lilypond_print_element_header -- building of the TOC
18 ### lilypond_toc_body -- generation of customized TOC output
19 ### print_lilypond_page_foot -- output of the TOC
20 ### -) External refs are formatted only as "Text of the node" (not as >>see
21 ### "NODE" section "SECTION" in "BOOK"<< like with default texi2html). Also,
22 ### the leading "(book-name)" is removed.
23 ### Implemented by overriding lilypond_external_ref
24 ### -) Navigation bars on top/bottom of the page and between sections are not
25 ### left-aligned, but use a combination of left/center/right aligned table
26 ### cells; For this, I heavily extend the texi2html code to allow for
27 ### differently aligned cells and for multi-line tables);
28 ### Implemented in lilypond_print_navigation
29 ### -) Allow translated section titles: All section titles can be translated,
30 ### the original (English) title is associated with @translationof. This is
31 ### needed, because the file name / anchor is generated from the original
32 ### English title, since otherwise language-autoselection would break with
34 ### Since it is then no longer possible to obtain the file name from the
35 ### section title, I keep a sectionname<=>filename/anchor around and write
36 ### it out to disk at the end of the conversion. This way, xrefs from
37 ### other manuals can simply load that map and retrieve the correct file
38 ### name for the link. Implemented in:
39 ### lilypond_unknown (handling of @translationof)
40 ### split_at_numbered_sections (correct file name, build the map)
41 ### lilypond_finish_out (write out the map to disk)
42 ### lilypond_external_href (load the map, use the correct link target)
45 ### Useful helper functions:
46 ### -) texinfo_file_name($node_name): returns a texinfo-compatible file name
47 ### for the given string $node_name (whitespace trimmed/replaced by -,
48 ### non-standard chars replaced by _xxxx (ascii char code) and forced to
49 ### start with a letter by prepending t_g if necessary)
52 package Texi2HTML::Config;
58 #############################################################################
59 ### SETTINGS FOR TEXI2HTML
60 #############################################################################
62 @Texi2HTML::Config::CSS_REFS = ("lilypond.css");
63 $Texi2HTML::Config::USE_ACCESSKEY = 1;
64 $Texi2HTML::Config::USE_LINKS = 1;
65 $Texi2HTML::Config::USE_REL_REV = 1;
66 $Texi2HTML::Config::element_file_name = \&split_at_numbered_sections;
67 $Texi2HTML::Config::print_element_header = \&lilypond_print_element_header;
68 $Texi2HTML::Config::print_page_foot = \&print_lilypond_page_foot;
69 $Texi2HTML::Config::print_navigation = \&lilypond_print_navigation;
70 $Texi2HTML::Config::external_ref = \&lilypond_external_ref;
71 $Texi2HTML::Config::external_href = \&lilypond_external_href;
72 $Texi2HTML::Config::toc_body = \&lilypond_toc_body;
73 $Texi2HTML::Config::css_lines = \&lilypond_css_lines;
74 $Texi2HTML::Config::finish_out = \&lilypond_finish_out;
75 $Texi2HTML::Config::unknown = \&lilypond_unknown;
78 my @section_to_filename;
83 #############################################################################
85 #############################################################################
88 $Data::Dumper::Maxdepth = 2;
90 sub print_element_info($)
93 print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
94 print "Element: $element\n";
95 print Dumper($element);
102 #############################################################################
104 #############################################################################
106 # Convert a given node name to its proper file name (normalization as explained
107 # in the texinfo manual:
108 # http://www.gnu.org/software/texinfo/manual/texinfo/html_node/HTML-Xref-Node-Name-Expansion.html
109 sub texinfo_file_name($)
113 # File name normalization by texinfo:
114 # 1/2: letters and numbers are left unchanged
115 # 3/4: multiple, leading and trailing whitespace is removed
116 $text = main::normalise_space($text);
117 # 5/6: all remaining spaces are converted to '-', all other 7- or 8-bit
118 # chars are replaced by _xxxx (xxxx=ascii character code)
119 while ($text ne '') {
120 if ($text =~ s/^([A-Za-z0-9]+)//o) { # number or letter stay unchanged
122 } elsif ($text =~ s/^ //o) { # space -> '-'
124 } elsif ($text =~ s/^(.)//o) { # Otherwise use _xxxx (ascii char code)
126 if ( $ccode <= 0xFFFF ) {
127 $result .= sprintf("_%04x", $ccode);
129 $result .= sprintf("__%06x", $ccode);
133 # 7: if name does not begin with a letter, prepend 't_g' (so it starts with a letter)
134 if ($result !~ /^[a-zA-Z]/) {
135 $result = 't_g' . $str;
145 #############################################################################
147 #############################################################################
149 # Include our standard CSS file, not hard-coded CSS code directly in the HTML!
150 # For IE, conditionally include the lilypond-ie-fixes.css style sheet
151 sub lilypond_css_lines ($$)
153 my $import_lines = shift;
154 my $rule_lines = shift;
155 return if (defined($CSS_LINES));
156 if (@$rule_lines or @$import_lines)
158 $CSS_LINES = "<style type=\"text/css\">\n<!--\n";
159 $CSS_LINES .= join('',@$import_lines) . "\n" if (@$import_lines);
160 $CSS_LINES .= join('',@$rule_lines) . "\n" if (@$rule_lines);
161 $CSS_LINES .= "-->\n</style>\n";
163 foreach my $ref (@CSS_REFS)
165 $CSS_LINES .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"$ref\">\n";
167 $CSS_LINES .= "<!--[if lte IE 7]>\n<link href=\"lilypond-ie-fixes.css\" rel=\"stylesheet\" type=\"text/css\">\n<![endif]-->\n";
174 #############################################################################
175 ### SPLITTING BASED ON NUMBERED SECTIONS
176 #############################################################################
180 my $node_to_filename_map = ();
182 # This function makes sure that files are only generated for numbered sections,
183 # but not for unnumbered ones. It is called after texi2html has done its own
184 # splitting and simply returns the filename for the node given as first argument
185 # Nodes with the same filename will be printed out to the same filename, so
186 # this really all we need. Also, make sure that the file names for sections
187 # are derived from the section title. We also might want to name the anchors
188 # according to node titles, which works by simply overriding the id element of
189 # the $element hash. Store the file name for each section in a hash (written
190 # out to disk in lilypond_finish_out), so that other manuals can retrieve
191 # the correct filename/anchor from the section title.
192 sub split_at_numbered_sections($$$)
196 my $docu_name = shift;
197 my $docu_ext = $Texi2HTML::Config::EXTENSION;
199 # TOC, footer, about etc. are called with undefined $element and $type == "toc"|"stoc"|"foot"|"about"
200 if ($type eq "toc" or $type eq "stoc" or $type eq "foot" or $type eq "about") {
203 # derive the name of the anchor (i.e. the part after # in the links!),
204 # don't use texi2html's SECx.x default!
205 my $sec_name = main::remove_texi($$element{texi});
206 my $anchor = $sec_name;
207 if ($$element{translationof}) {
208 $anchor = main::remove_texi($$element{translationof});
210 # normalize to the same file name as texinfo
211 $anchor = texinfo_file_name($anchor);
212 $$element{id} = $anchor;
213 # Numbered sections will get a filename Node_title, unnumbered sections will use
214 # the file name of the previous numbered section:
215 if ($$element{number}) {
216 my $filename = $anchor;
217 $filename .= ".$docu_ext" if (defined($docu_ext));
219 $$element{doc_nr} = $docnr;
220 $lastfilename = $filename;
221 push (@section_to_filename, [$sec_name, $filename, $anchor]);
224 $$element{doc_nr} = $docnr;
225 push (@section_to_filename, [$sec_name, $lastfilename, $anchor]);
226 return $lastfilename;
237 #############################################################################
238 ### CLEANER LINK TITLE FOR EXTERNAL REFS
239 #############################################################################
241 # The default formatting of external refs returns e.g.
242 # "(lilypond-internals)Timing_translator", so we remove all (...) from the
243 # file_and_node argument. Also, we want only a very simple format, so we don't
244 # even call the default handler!
245 sub lilypond_external_ref($$$$$$)
250 my $file_node = shift;
252 my $cross_ref = shift;
254 $file_node =~ s/\(.*\)//;
255 $file_node = &$anchor('', $href, $file_node) if ($file_node ne '');
256 return &$I('%{node_file_href}', { 'node_file_href' => $file_node });
258 # Default: format as "see <a ..>NODE</a> section 'SECTION' in BOOK". We don't want this!
259 # return t2h_default_external_ref($type, $section, $book, $file_node, $href, $cross_ref);
266 #############################################################################
267 ### HANDLING TRANSLATED SECTIONS: handle @translationof, secname<->filename
268 ### map stored on disk, xrefs in other manuals load that map
269 #############################################################################
272 # Try to make use of @translationof to generate files according to the original
273 # English section title...
274 sub lilypond_unknown($$$$$)
282 # the @translationof macro provides the original English section title,
283 # which should be used for file/anchor naming, while the title will be
284 # translated to each language
285 if ($pass == 1 and $macro eq "translationof") {
286 if (ref($state->{'element'})=='HASH') {
287 $state->{'element'}->{'translationof'} = main::normalise_space($line);
289 return ('', true, undef, undef);
291 return t2h_default_unknown($macro, $line, $pass, $stack, $state);
296 # Print out the sectionName<=>filename association to the file basename_xref.map
297 # so that cross-references from other manuals can load it and retrieve the
298 # correct filenames/anchors for each section title.
299 sub lilypond_finish_out()
301 my $map_filename = "$Texi2HTML::THISDOC{'destination_directory'}$Texi2HTML::THISDOC{'file_base_name'}_xref.map";
302 if (open(XREFFILE, ">$map_filename")) {
303 foreach (@section_to_filename) {
304 my ($sec, $file, $anchor) = @$_;
305 print XREFFILE "$sec\t$file\t$anchor\n";
309 print "Can't open $map_filename for writing: $! The map of X-refs will not be written out\n";
315 my %translated_books = ();
316 # Construct a href to an external source of information.
317 # node is the node with texinfo @-commands
318 # node_id is the node transliterated and transformed as explained in the
320 # node_xhtml_id is the node transformed such that it is unique and can
321 # be used to make an html cross ref as explained in the texinfo manual
322 # file is the file in '(file)node'
323 sub lilypond_external_href($$$)
327 my $node_xhtml_id = shift;
329 my $original_func = \&t2h_default_external_href;
332 # 1) Keep a hash of book->section_map
333 # 2) if not file in keys hash => try to load the map (assign empty map is non-existent => will load only once!)
334 # 3) if node in the section=>(file, anchor) map, replace node_id and node_xhtml_id by the map's values
335 # 4) call the t2h_default_external_href with these values (or the old ones if not found)
336 print STDERR "lilypond_external_href: texi_node='$node', node_file='$node_id', node_xhtml_id='$node_xhtml_id', file='$file'\n";
337 if (($node_id ne '') and defined($file)) {
338 if (!exists($translated_books{$file})) {
339 print STDERR "Map for book $file not yet loaded, trying to initialize\n";
340 # TODO: Load the file...
341 $translated_books{$file}={};
343 my $section_name_map = $translated_books{$file};
344 if (exists($section_name_map->{$node_id})) {
345 print STDERR "Found key $node_id in section_name_map\n";
346 # TODO: Assign the new values to $file, $node_id and $node_xhtml_id!
348 print STDERR "Unable to find key $node_id in section_name_map\n";
353 # $file = '' if (!defined($file));
354 # my $default_target_split = $EXTERNAL_CROSSREF_SPLIT;
361 # if ($NEW_CROSSREF_STYLE)
363 # $file =~ s/\.[^\.]*$//;
364 # $file =~ s/^.*\///;
366 # if (exists($Texi2HTML::THISDOC{'htmlxref'}->{$file}))
368 # if (exists($Texi2HTML::THISDOC{'htmlxref'}->{$file}->{'split'}))
371 # $href_split = $Texi2HTML::THISDOC{'htmlxref'}->{$file}->{'split'}->{'href'};
373 # if (exists($Texi2HTML::THISDOC{'htmlxref'}->{$file}->{'mono'}))
376 # $href_mono = $Texi2HTML::THISDOC{'htmlxref'}->{$file}->{'mono'}->{'href'};
380 # if ((not $target_mono) and (not $target_split))
381 # { # nothing specified for that manual, use default
382 # $target_split = $default_target_split;
384 # elsif ($target_split and $target_mono)
385 # { # depends on the splitting of the manual
386 # $target_split = $SPLIT;
388 # elsif ($target_mono)
389 # { # only mono specified
395 # if (defined($href_split))
397 # $file = "$href_split";
399 # elsif (defined($EXTERNAL_DIR))
401 # $file = "$EXTERNAL_DIR/$file";
405 # $file = "../$file";
410 # {# target not split
411 # if (defined($href_mono))
413 # $file = "$href_mono";
417 # if (defined($EXTERNAL_DIR))
419 # $file = "$EXTERNAL_DIR/$file";
423 # $file = "../$file";
425 # $file .= "." . $NODE_FILE_EXTENSION;
432 # if (defined($EXTERNAL_DIR))
434 # $file = $EXTERNAL_DIR . $file;
438 # $file = '../' . $file;
444 # $target_split = $default_target_split;
448 # if ($NEW_CROSSREF_STYLE)
452 # return $file . $TOP_NODE_FILE . '.' . $NODE_FILE_EXTENSION . '#Top';
454 # #return $file . '#Top';
458 # return $file . '#Top';
467 # if ($NEW_CROSSREF_STYLE)
470 # $target = $node_xhtml_id;
474 # $node = main::remove_texi($node);
475 # $node =~ s/[^\w\.\-]/-/g;
477 # my $file_basename = $node;
478 # $file_basename = $TOP_NODE_FILE if ($node =~ /^top$/i);
479 # if ($NEW_CROSSREF_STYLE)
483 # return $file . $file_basename . ".$NODE_FILE_EXTENSION" . '#' . $target;
487 # return $file . '#' . $target;
492 # return $file . $file_basename . ".$NODE_FILE_EXTENSION";
495 return &$original_func($node, $node_id, $node_hxmlt_id, $file);
497 return &$original_func($node, $node_id, $node_hxmlt_id);
505 #############################################################################
506 ### CUSTOM TOC FOR EACH PAGE (in a frame on the left)
507 #############################################################################
509 my $page_toc_depth = 2;
510 my @default_toc = [];
512 # recursively generate the TOC entries for the element and its children (which
513 # are only shown up to maxlevel. All ancestors of the current element are also
514 # shown with their immediate children, irrespective of their level.
515 sub generate_ly_toc_entries($$$)
518 my $element_path = shift;
519 my $maxlevel = shift;
520 # Skip undefined sections, plus all sections generated by index splitting
521 return() if (not defined($element) or exists($element->{'index_page'}));
523 my $level = $element->{'toc_level'};
524 my $is_parent_of_current = $element_path->{$element->{'number'}};
525 my $print_children = ( ($level < $maxlevel) or $is_parent_of_current );
526 my $ind = ' ' x $level;
527 my $this_css_class = $is_parent_of_current ? " class=\"toc_current\"" : "";
529 my $entry = "$ind<li$this_css_class>" . &$anchor ($element->{'tocid'}, "$element->{'file'}#$element->{'id'}",$element->{'text'});
531 my $children = $element->{'section_childs'};
532 if ( $print_children and defined($children) and (ref($children) eq "ARRAY") ) {
533 push (@result, $entry);
534 my @child_result = ();
535 foreach (@$children) {
536 push (@child_result, generate_ly_toc_entries($_, $element_path, $maxlevel));
538 # if no child nodes were generated, e.g. for the index, where expanded pages
539 # are ignored, don't generate a list at all...
541 push (@result, "$ind<ul$NO_BULLET_LIST_ATTRIBUTE>");
542 push (@result, @child_result);
543 push (@result, "$ind</ul></li>\n");
546 push (@result, $entry . "</li>\n");
552 # Print a customized TOC, containing only the first two levels plus the whole
553 # path to the current page
554 sub lilypond_generate_page_toc_body($)
557 my $current_element = $element;
559 $parentelements{$element->{'number'}} = 1;
560 # Find the path to the current element
561 while ( defined($current_element->{'sectionup'}) and
562 ($current_element->{'sectionup'} ne $current_element) )
564 $parentelements{$current_element->{'sectionup'}->{'number'}} = 1
565 if ($current_element->{'sectionup'}->{'number'} ne '');
566 $current_element = $current_element->{'sectionup'};
568 return () if not defined($current_element);
569 # Create the toc entries recursively
570 my @toc_entries = ("<div class=\"contents\">", "<ul$NO_BULLET_LIST_ATTRIBUTE>");
571 my $children = $current_element->{'section_childs'};
572 foreach ( @$children ) {
573 push (@toc_entries, generate_ly_toc_entries($_, \%parentelements, $page_toc_depth));
575 push (@toc_entries, "</ul>");
576 push (@toc_entries, "</div>");
581 # Create the custom TOC for this page (partially folded, current page is
582 # highlighted) and store it in a global variable. The TOC is written out after
583 # the html contents (but positioned correctly using CSS), so that browsers with
584 # css turned off still show the contents first.
585 my @this_page_toc = ();
586 sub lilypond_print_element_header
589 my $first_in_page = shift;
590 my $previous_is_top = shift;
591 if ($first_in_page and not @this_page_toc) {
592 if (defined($Texi2HTML::THIS_ELEMENT)) {
593 # Create the TOC for this page
594 @this_page_toc = lilypond_generate_page_toc_body($Texi2HTML::THIS_ELEMENT);
597 return T2H_DEFAULT_print_element_header( $fh, $first_in_page, $previous_is_top);
600 # Generate the HTML output for the TOC
601 sub lilypond_toc_body($)
603 my $elements_list = shift;
604 # Generate a default TOC for pages without THIS_ELEMENT
605 @default_toc = lilypond_generate_page_toc_body(@$elements_list[0]);
606 return T2H_GPL_toc_body($elements_list);
610 # Print out the TOC in a <div> at the end of th page, which will be formatted as a
611 # sidebar mimicking a TOC frame
612 sub print_lilypond_page_foot($)
615 my $program_string = &$program_string();
616 print $fh "<p><font size='-1'>$program_string</font><br>$PRE_BODY_CLOSE</p>\n";
618 # Print the TOC frame:
619 my @lines = @this_page_toc;
620 # use default TOC if no custom lines have been generated
621 @lines = @default_toc if (not @lines);
623 print $fh "\n\n<div id=\"tocframe\">";
624 print $fh '<h4> ' . $Texi2HTML::NAME{'Contents'} . "</h4>\n";
625 foreach my $line (@lines) {
633 print $fh "</body>\n</html>\n";
640 #############################################################################
641 ### NICER / MORE FLEXIBLE NAVIGATION PANELS
642 #############################################################################
644 sub get_navigation_text
647 my $text = $NAVIGATION_TEXT{$button};
648 if ( ($button eq 'Back') or ($button eq 'FastBack') ) {
649 $text = $text . $Texi2HTML::NODE{$button} . " ";
650 } elsif ( ($button eq 'Forward') or ($button eq 'FastForward') ) {
651 $text = " " . $Texi2HTML::NODE{$button} . $text;
652 } elsif ( $button eq 'Up' ) {
653 $text = " ".$text.": " . $Texi2HTML::NODE{$button} . " ";
659 # Don't automatically create left-aligned table cells for every link, but
660 # instead create a <td> only on an appropriate '(left|right|center)-aligned-cell-n'
661 # button text. It's alignment as well as the colspan will be taken from the
662 # name of the button. Also, add 'newline' button text to create a new table
663 # row. The texts of the buttons are generated by get_navigation_text and
664 # will contain the name of the next/previous section/chapter.
665 sub lilypond_print_navigation
669 my $vertical = shift;
671 # print $fh '<table cellpadding="', $spacing, '" cellspacing="', $spacing,
672 # "\" border=\"0\" class=\"nav_table\">\n";
673 print $fh "<table class=\"nav_table\">\n";
675 print $fh "<tr>" unless $vertical;
677 foreach my $button (@$buttons)
679 print $fh qq{<tr valign="top" align="left">\n} if $vertical;
680 # Allow (left|right|center)-aligned-cell and newline as buttons!
681 if ( $button =~ /^(.*)-aligned-cell-(.*)$/ )
683 print $fh qq{</td>} unless $beginofline;
684 print $fh qq{<td valign="middle" align="$1" colspan="$2">};
687 elsif ( $button eq 'newline' )
689 print $fh qq{</td>} unless $beginofline;
695 elsif (ref($button) eq 'CODE')
697 &$button($fh, $vertical);
699 elsif (ref($button) eq 'SCALAR')
701 print $fh "$$button" if defined($$button);
703 elsif (ref($button) eq 'ARRAY')
705 my $text = $button->[1];
706 my $button_href = $button->[0];
707 # verify that $button_href is simple text and text is a reference
708 if (defined($button_href) and !ref($button_href)
709 and defined($text) and (ref($text) eq 'SCALAR') and defined($$text))
711 if ($Texi2HTML::HREF{$button_href})
713 my $anchor_attributes = '';
714 if ($USE_ACCESSKEY and (defined($BUTTONS_ACCESSKEY{$button_href})) and ($BUTTONS_ACCESSKEY{$button_href} ne ''))
716 $anchor_attributes = "accesskey=\"$BUTTONS_ACCESSKEY{$button_href}\"";
718 if ($USE_REL_REV and (defined($BUTTONS_REL{$button_href})) and ($BUTTONS_REL{$button_href} ne ''))
720 $anchor_attributes .= " rel=\"$BUTTONS_REL{$button_href}\"";
724 $Texi2HTML::HREF{$button_href},
725 get_navigation_text($$text),
731 print $fh get_navigation_text($$text);
735 elsif ($button eq ' ')
736 { # handle space button
738 ($ICONS && $ACTIVE_ICONS{' '}) ?
739 &$button_icon_img($BUTTONS_NAME{$button}, $ACTIVE_ICONS{' '}) :
740 $NAVIGATION_TEXT{' '};
743 elsif ($Texi2HTML::HREF{$button})
745 my $btitle = $BUTTONS_GOTO{$button} ?
746 'title="' . $BUTTONS_GOTO{$button} . '"' : '';
747 if ($USE_ACCESSKEY and (defined($BUTTONS_ACCESSKEY{$button})) and ($BUTTONS_ACCESSKEY{$button} ne ''))
749 $btitle .= " accesskey=\"$BUTTONS_ACCESSKEY{$button}\"";
751 if ($USE_REL_REV and (defined($BUTTONS_REL{$button})) and ($BUTTONS_REL{$button} ne ''))
753 $btitle .= " rel=\"$BUTTONS_REL{$button}\"";
755 if ($ICONS && $ACTIVE_ICONS{$button})
759 $Texi2HTML::HREF{$button},
760 &$button_icon_img($BUTTONS_NAME{$button},
761 $ACTIVE_ICONS{$button},
762 $Texi2HTML::SIMPLE_TEXT{$button}),
771 $Texi2HTML::HREF{$button},
772 get_navigation_text ($button),
779 { # button is passive
781 $ICONS && $PASSIVE_ICONS{$button} ?
782 &$button_icon_img($BUTTONS_NAME{$button},
783 $PASSIVE_ICONS{$button},
784 $Texi2HTML::SIMPLE_TEXT{$button}) :
786 "[" . get_navigation_text($button) . "]";
788 print $fh "</td>\n" if $vertical;
789 print $fh "</tr>\n" if $vertical;
791 print $fh "</td>" unless $beginofline;
792 print $fh "</tr>" unless $vertical;
793 print $fh "</table>\n";
797 @Texi2HTML::Config::SECTION_BUTTONS =
798 ('left-aligned-cell-1', 'FastBack',
799 'center-aligned-cell-3', 'Top', 'Contents', 'Index', 'About',
800 'right-aligned-cell-1', 'FastForward',
802 'left-aligned-cell-2', 'Back',
803 'center-aligned-cell-1', 'Up',
804 'right-aligned-cell-2', 'Forward'
807 # buttons for misc stuff
808 @Texi2HTML::Config::MISC_BUTTONS = ('center-aligned-cell-3', 'Top', 'Contents', 'Index', 'About');
810 # buttons for chapter file footers
811 # (and headers but only if SECTION_NAVIGATION is false)
812 @Texi2HTML::Config::CHAPTER_BUTTONS =
813 ('left-aligned-cell-1', 'FastBack',
814 'center-aligned-cell-3', 'Top', 'Contents', 'Index', 'About',
815 'right-aligned-cell-1', 'FastForward',
818 # buttons for section file footers
819 @Texi2HTML::Config::SECTION_FOOTER_BUTTONS =
820 ('left-aligned-cell-1', 'FastBack',
821 'center-aligned-cell-3', 'Top', 'Contents', 'Index', 'About',
822 'right-aligned-cell-1', 'FastForward',
824 'left-aligned-cell-2', 'Back',
825 'center-aligned-cell-1', 'Up',
826 'right-aligned-cell-2', 'Forward'
829 @Texi2HTML::Config::NODE_FOOTER_BUTTONS =
830 ('left-aligned-cell-1', 'FastBack',
831 'center-aligned-cell-3', 'Top', 'Contents', 'Index', 'About',
832 'right-aligned-cell-1', 'FastForward',
834 'left-aligned-cell-2', 'Back',
835 'center-aligned-cell-1', 'Up',
836 'right-aligned-cell-2', 'Forward'
843 #############################################################################
845 #############################################################################
847 # For split pages, use index.html as start page!
848 if ($Texi2HTML::Config::SPLIT == 'section') {
849 $Texi2HTML::Config::TOP_FILE = 'index.html';