Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6147 | serge | 1 | # Init file for texi2html. |
2 | |||
3 | # This is deprecated, and the makeinfo/texi2any version is doc/t2h.pm |
||
4 | |||
5 | # no horiz rules between sections |
||
6 | $end_section = \&FFmpeg_end_section; |
||
7 | sub FFmpeg_end_section($$) |
||
8 | { |
||
9 | } |
||
10 | |||
11 | my $TEMPLATE_HEADER1 = $ENV{"FFMPEG_HEADER1"} || < |
||
12 | |||
13 | |||
14 | |||
15 | |||
16 | |||
17 |
|
||
18 | |||
19 | |||
20 | EOT |
||
21 | |||
22 | my $TEMPLATE_HEADER2 = $ENV{"FFMPEG_HEADER2"} || < |
||
23 | |||
24 | |||
25 | |||
26 | EOT |
||
27 | |||
28 | my $TEMPLATE_FOOTER = $ENV{"FFMPEG_FOOTER"} || < |
||
29 | |||
30 | |||
31 | |||
32 | EOT |
||
33 | |||
34 | $SMALL_RULE = ''; |
||
35 | $BODYTEXT = ''; |
||
36 | |||
37 | $print_page_foot = \&FFmpeg_print_page_foot; |
||
38 | sub FFmpeg_print_page_foot($$) |
||
39 | { |
||
40 | my $fh = shift; |
||
41 | my $program_string = defined &T2H_DEFAULT_program_string ? |
||
42 | T2H_DEFAULT_program_string() : program_string(); |
||
43 | print $fh ' |
||
44 | print $fh '' . $program_string; |
||
45 | print $fh " |
\n";
}
$float = \&FFmpeg_float;
sub FFmpeg_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 = "alert alert-info";
}
elsif ($caption =~ /IMPORTANT/)
{
$class = "alert alert-warning";
}
return '' . "$label\n" . $text . '';
}
$print_page_head = \&FFmpeg_print_page_head;
sub FFmpeg_print_page_head($$)
{
my $fh = shift;
my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}";
$longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
my $description = $DOCUMENT_DESCRIPTION;
$description = $longtitle if (!defined($description));
$description = "" if
($description ne '');
$description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
my $encoding = '';
$encoding = "" if (defined($ENCODING) and ($ENCODING ne ''));
$longtitle =~ s/Documentation.*//g;
$longtitle = "FFmpeg documentation : " . $longtitle;
print $fh <
$TEMPLATE_HEADER1
$description
$Texi2HTML::THISDOC{'copying'}
$encoding
$TEMPLATE_HEADER2
EOT
}
$print_page_foot = \&FFmpeg_print_page_foot;
sub FFmpeg_print_page_foot($$)
{
my $fh = shift;
print $fh <
$TEMPLATE_FOOTER
EOT
}
# declare encoding in header
$IN_ENCODING = $ENCODING = "utf-8";
# 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;