# -*-perl-*- # vim: set filetype=perl: ###################################################################### # File: html.pm # html output formatting # # A copy of this file is pasted into the beginning of texi2html by # running './configure'. # # This file is in the public domain. Thus it may easily be used as an # example for further customizations. # # Taken from texi2html.pm in 2009. # Originally written by Olaf Bachmann. # # $Id: html.pm 5191 2013-02-23 00:11:18Z karl $ use strict; use vars qw(@html_default_multitable_stack); # used in mediawiki.pm #my @html_default_multitable_stack; # tracks menu entry index my $html_menu_entry_index; # the simple_formatted document title my $html_default_title; # initialise the html output sub html_default_load(;$) { my $from_command_line = shift; t2h_default_set_variables_xml(); ############################################################### # defaults set_default('HEADERS', 1); @T2H_FORMAT_EXPAND = ('html'); # The value is the 'SystemLiteral' which identifies the canonical DTD # for the document. # Definition: The SystemLiteral is called the entity's system # identifier. It is a URI, which may be used to retrieve the entity. # See http://www.xml.com/axml/target.html#NT-ExternalID set_default('DOCTYPE', ''); # When frames are used, this SystemLiteral identifies the DTD used for # the file containing the frame description. set_default('FRAMESET_DOCTYPE', ''); # if the value is true the Texinfo menus are shown. set_default('SHOW_MENU', 1); set_default('SHOW_TITLE', 1); # default is to use nodes only as elements. set_default('USE_SECTIONS', undef); set_default('TOP_FILE', 'index.html'); # file name used for Top node when NODE_FILES is true set_default('TOP_NODE_FILE', 'index'); ############################################################################## # # The following can only be set in the init file # ############################################################################## set_default('INLINE_INSERTCOPYING', 0); # if this variable is true, numeric entities are used when there is no # corresponding textual entity. set_default('USE_NUMERIC_ENTITY', 1); # if true, use the original command if the result is an entity set_default('ENABLE_ENCODING_USE_ENTITY', 1); # if set, do redirection files for renamed nodes set_default('RENAMED_NODES_REDIRECTIONS', 1); # used as identation for block enclosing command @example, etc # If not empty, must be enclosed in