2014-09-01 02:39:35 +00:00
|
|
|
# Init file for texi2html.
|
|
|
|
|
|
|
|
# This is deprecated, and the makeinfo/texi2any version is doc/t2h.pm
|
|
|
|
|
2011-01-29 12:24:13 +00:00
|
|
|
# no horiz rules between sections
|
2011-11-13 22:43:12 +00:00
|
|
|
$end_section = \&FFmpeg_end_section;
|
|
|
|
sub FFmpeg_end_section($$)
|
2011-01-29 12:24:13 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-07-13 20:48:23 +00:00
|
|
|
my $TEMPLATE_HEADER1 = $ENV{"FFMPEG_HEADER1"} || <<EOT;
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<title>FFmpeg documentation</title>
|
2014-09-05 18:31:16 +00:00
|
|
|
<link rel="stylesheet" href="bootstrap.min.css" />
|
2014-07-13 20:48:23 +00:00
|
|
|
<link rel="stylesheet" href="style.min.css" />
|
2011-12-03 22:24:50 +00:00
|
|
|
EOT
|
2011-11-13 18:32:35 +00:00
|
|
|
|
2014-07-13 20:48:23 +00:00
|
|
|
my $TEMPLATE_HEADER2 = $ENV{"FFMPEG_HEADER2"} || <<EOT;
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div style="width: 95%; margin: auto">
|
2012-09-30 04:02:34 +00:00
|
|
|
EOT
|
2011-11-13 03:05:13 +00:00
|
|
|
|
2014-07-13 20:48:23 +00:00
|
|
|
my $TEMPLATE_FOOTER = $ENV{"FFMPEG_FOOTER"} || <<EOT;
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
EOT
|
2011-11-13 03:05:13 +00:00
|
|
|
|
|
|
|
$SMALL_RULE = '';
|
|
|
|
$BODYTEXT = '';
|
|
|
|
|
2011-11-13 22:43:12 +00:00
|
|
|
$print_page_foot = \&FFmpeg_print_page_foot;
|
|
|
|
sub FFmpeg_print_page_foot($$)
|
2011-01-29 12:24:13 +00:00
|
|
|
{
|
|
|
|
my $fh = shift;
|
2012-10-08 10:13:35 +00:00
|
|
|
my $program_string = defined &T2H_DEFAULT_program_string ?
|
|
|
|
T2H_DEFAULT_program_string() : program_string();
|
2012-09-30 04:02:34 +00:00
|
|
|
print $fh '<footer class="footer pagination-right">' . "\n";
|
|
|
|
print $fh '<span class="label label-info">' . $program_string;
|
2013-09-24 03:40:45 +00:00
|
|
|
print $fh "</span></footer></div></div></body>\n";
|
2011-11-13 03:05:13 +00:00
|
|
|
}
|
|
|
|
|
2011-12-10 00:25:15 +00:00
|
|
|
$float = \&FFmpeg_float;
|
2011-12-03 22:24:50 +00:00
|
|
|
|
2011-12-10 00:25:15 +00:00
|
|
|
sub FFmpeg_float($$$$)
|
2011-12-03 22:24:50 +00:00
|
|
|
{
|
|
|
|
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/)
|
|
|
|
{
|
2012-09-30 04:02:34 +00:00
|
|
|
$class = "alert alert-info";
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
elsif ($caption =~ /IMPORTANT/)
|
|
|
|
{
|
2012-09-30 04:02:34 +00:00
|
|
|
$class = "alert alert-warning";
|
2011-12-03 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
|
|
|
|
}
|
|
|
|
|
2011-11-13 22:43:12 +00:00
|
|
|
$print_page_head = \&FFmpeg_print_page_head;
|
|
|
|
sub FFmpeg_print_page_head($$)
|
2011-11-13 03:05:13 +00:00
|
|
|
{
|
|
|
|
my $fh = shift;
|
2013-01-23 16:11:42 +00:00
|
|
|
my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}";
|
2011-11-13 03:05:13 +00:00
|
|
|
$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;
|
2011-11-13 22:43:12 +00:00
|
|
|
$longtitle = "FFmpeg documentation : " . $longtitle;
|
2011-11-13 03:05:13 +00:00
|
|
|
|
|
|
|
print $fh <<EOT;
|
2014-07-13 20:48:23 +00:00
|
|
|
$TEMPLATE_HEADER1
|
|
|
|
$description
|
|
|
|
<meta name="keywords" content="$longtitle">
|
|
|
|
<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
|
2011-11-13 03:05:13 +00:00
|
|
|
$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
|
|
|
|
<!--
|
|
|
|
$Texi2HTML::THISDOC{program_authors}
|
|
|
|
-->
|
|
|
|
$encoding
|
2014-07-13 20:48:23 +00:00
|
|
|
$TEMPLATE_HEADER2
|
|
|
|
EOT
|
|
|
|
}
|
|
|
|
|
|
|
|
$print_page_foot = \&FFmpeg_print_page_foot;
|
|
|
|
sub FFmpeg_print_page_foot($$)
|
|
|
|
{
|
|
|
|
my $fh = shift;
|
|
|
|
print $fh <<EOT;
|
|
|
|
$TEMPLATE_FOOTER
|
2011-11-13 03:05:13 +00:00
|
|
|
EOT
|
2011-01-29 12:24:13 +00:00
|
|
|
}
|
|
|
|
|
2012-07-22 10:29:22 +00:00
|
|
|
# declare encoding in header
|
|
|
|
$IN_ENCODING = $ENCODING = "utf-8";
|
|
|
|
|
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;
|