2011-01-29 12:24:13 +00:00
|
|
|
# no horiz rules between sections
|
2011-11-13 03:05:13 +00:00
|
|
|
$end_section = \&Libav_end_section;
|
|
|
|
sub Libav_end_section($$)
|
2011-01-29 12:24:13 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-11-13 03:05:13 +00:00
|
|
|
$EXTRA_HEAD =
|
2011-11-13 11:25:29 +00:00
|
|
|
'<link rel="icon" href="favicon.png" type="image/png" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="default.css" />
|
|
|
|
';
|
2011-11-13 03:05:13 +00:00
|
|
|
|
2011-12-03 22:24:50 +00:00
|
|
|
$CSS_LINES = <<EOT;
|
|
|
|
<style type="text/css">
|
|
|
|
<!--
|
|
|
|
a.summary-letter { text-decoration: none }
|
|
|
|
a { color: #2D6198; }
|
|
|
|
a:visited { color: #884488; }
|
|
|
|
h1 a, h2 a, h3 a { text-decoration: inherit; color: inherit; }
|
|
|
|
p { margin-left: 1em; margin-right: 1em; }
|
|
|
|
table { margin-left: 2em; }
|
|
|
|
pre { margin-left: 2em; }
|
|
|
|
#footer { text-align: center; }
|
|
|
|
#body { margin-left: 1em; margin-right: 1em; }
|
|
|
|
body { background-color: #313131; margin: 0; }
|
|
|
|
|
|
|
|
#container {
|
|
|
|
background-color: white;
|
|
|
|
color: #202020;
|
|
|
|
margin-left: 1em;
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
background-color: #7BB37B;
|
|
|
|
border: 1px solid #6A996A;
|
|
|
|
color: #151515;
|
|
|
|
font-size: 1.2em;
|
|
|
|
padding-bottom: 0.2em;
|
|
|
|
padding-left: 0.4em;
|
|
|
|
padding-top: 0.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
color: #313131;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
color: #313131;
|
|
|
|
font-size: 0.8em;
|
|
|
|
margin-bottom: -8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note {
|
|
|
|
margin: 1em;
|
|
|
|
border: 1px solid #bbc9d8;
|
|
|
|
background-color: #dde1e1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.important {
|
|
|
|
margin: 1em;
|
|
|
|
border: 1px solid #d26767;
|
|
|
|
background-color: #f8e1e1;
|
|
|
|
}
|
|
|
|
|
|
|
|
-->
|
|
|
|
</style>
|
|
|
|
EOT
|
2011-11-13 18:32:35 +00:00
|
|
|
|
|
|
|
my $LIBAV_NAVBAR = $ENV{"LIBAV_NAVBAR"} || '';
|
|
|
|
|
2011-11-13 11:25:29 +00:00
|
|
|
$AFTER_BODY_OPEN =
|
2011-11-13 18:32:35 +00:00
|
|
|
'<div id="container">' .
|
|
|
|
"\n$LIBAV_NAVBAR\n" .
|
|
|
|
'<div id="body">';
|
2011-11-13 03:05:13 +00:00
|
|
|
|
|
|
|
$PRE_BODY_CLOSE = '</div></div>';
|
|
|
|
|
|
|
|
$SMALL_RULE = '';
|
|
|
|
$BODYTEXT = '';
|
|
|
|
|
|
|
|
$print_page_foot = \&Libav_print_page_foot;
|
|
|
|
sub Libav_print_page_foot($$)
|
2011-01-29 12:24:13 +00:00
|
|
|
{
|
|
|
|
my $fh = shift;
|
2011-11-13 11:25:29 +00:00
|
|
|
print $fh '<div id="footer">' . "\n";
|
2011-01-29 12:24:13 +00:00
|
|
|
T2H_DEFAULT_print_page_foot($fh);
|
2011-11-13 11:25:29 +00:00
|
|
|
print $fh "</div>\n";
|
2011-11-13 03:05:13 +00:00
|
|
|
}
|
|
|
|
|
2011-12-03 22:24:50 +00:00
|
|
|
$float = \&Libav_float;
|
|
|
|
|
|
|
|
sub Libav_float($$$$)
|
|
|
|
{
|
|
|
|
my $text = shift;
|
|
|
|
my $float = shift;
|
|
|
|
my $caption = shift;
|
|
|
|
my $shortcaption = shift;
|
|
|
|
|
|
|
|
my $label = '';
|
|
|
|
if (exists($float->{'id'}))
|
|
|
|
{
|
|
|
|
$label = &$anchor($float->{'id'});
|
|
|
|
}
|
|
|
|
my $class = '';
|
|
|
|
my $subject = '';
|
|
|
|
|
|
|
|
if ($caption =~ /NOTE/)
|
|
|
|
{
|
|
|
|
$class = "note";
|
|
|
|
}
|
|
|
|
elsif ($caption =~ /IMPORTANT/)
|
|
|
|
{
|
|
|
|
$class = "important";
|
|
|
|
}
|
|
|
|
|
|
|
|
return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
|
|
|
|
}
|
|
|
|
|
2011-11-13 03:05:13 +00:00
|
|
|
$print_page_head = \&Libav_print_page_head;
|
|
|
|
sub Libav_print_page_head($$)
|
|
|
|
{
|
|
|
|
my $fh = shift;
|
|
|
|
my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}";
|
|
|
|
$longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
|
|
|
|
my $description = $DOCUMENT_DESCRIPTION;
|
|
|
|
$description = $longtitle if (!defined($description));
|
|
|
|
$description = "<meta name=\"description\" content=\"$description\">" if
|
|
|
|
($description ne '');
|
|
|
|
$description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
|
|
|
|
my $encoding = '';
|
|
|
|
$encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
|
|
|
|
$longtitle =~ s/Documentation.*//g;
|
|
|
|
$longtitle = "Libav documentation : " . $longtitle;
|
|
|
|
|
|
|
|
print $fh <<EOT;
|
|
|
|
$DOCTYPE
|
|
|
|
<html>
|
|
|
|
$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
|
|
|
|
<!--
|
|
|
|
$Texi2HTML::THISDOC{program_authors}
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>$longtitle</title>
|
|
|
|
|
|
|
|
$description
|
|
|
|
<meta name="keywords" content="$longtitle">
|
|
|
|
<meta name="resource-type" content="document">
|
|
|
|
<meta name="distribution" content="global">
|
|
|
|
<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
|
|
|
|
$encoding
|
|
|
|
$CSS_LINES
|
|
|
|
$EXTRA_HEAD
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body $BODYTEXT>
|
|
|
|
$AFTER_BODY_OPEN
|
|
|
|
EOT
|
2011-01-29 12:24:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# no navigation elements
|
|
|
|
$SECTION_NAVIGATION = 0;
|
|
|
|
# the same for texi2html 5.0
|
|
|
|
$HEADERS = 0;
|
|
|
|
|
|
|
|
# TOC and Chapter headings link
|
|
|
|
$TOC_LINKS = 1;
|
|
|
|
|
|
|
|
# print the TOC where @contents is used
|
|
|
|
$INLINE_CONTENTS = 1;
|