]> git.sesse.net Git - ffmpeg/blobdiff - doc/t2h.init
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / doc / t2h.init
index 78c51772a6878e5da1d880caaf498089eeb918c1..ec7d2a09ba9f00cec8e68d14cdcc148bc4c23f34 100644 (file)
@@ -1,6 +1,6 @@
 # no horiz rules between sections
-$end_section = \&Libav_end_section;
-sub Libav_end_section($$)
+$end_section = \&FFmpeg_end_section;
+sub FFmpeg_end_section($$)
 {
 }
 
@@ -8,7 +8,7 @@ $EXTRA_HEAD =
 '<link rel="icon" href="favicon.png" type="image/png" />
 ';
 
-$CSS_LINES = $ENV{"LIBAV_CSS"} || <<EOT;
+$CSS_LINES = $ENV{"FFMPEG_CSS"} || <<EOT;
 <style type="text/css">
 <!--
 .container {
@@ -129,7 +129,7 @@ ul.toc {
 </style>
 EOT
 
-my $TEMPLATE_HEADER = $ENV{"LIBAV_HEADER"} || <<EOT;
+my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <<EOT;
 <link rel="icon" href="favicon.png" type="image/png" />
 </head>
 <body>
@@ -141,8 +141,8 @@ $PRE_BODY_CLOSE = '</div></div>';
 $SMALL_RULE = '';
 $BODYTEXT = '';
 
-$print_page_foot = \&Libav_print_page_foot;
-sub Libav_print_page_foot($$)
+$print_page_foot = \&FFmpeg_print_page_foot;
+sub FFmpeg_print_page_foot($$)
 {
     my $fh = shift;
     my $program_string = defined &T2H_DEFAULT_program_string ?
@@ -152,9 +152,9 @@ sub Libav_print_page_foot($$)
     print $fh "</span></footer></div>\n";
 }
 
-$float = \&Libav_float;
+$float = \&FFmpeg_float;
 
-sub Libav_float($$$$)
+sub FFmpeg_float($$$$)
 {
     my $text = shift;
     my $float = shift;
@@ -181,8 +181,8 @@ sub Libav_float($$$$)
     return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
 }
 
-$print_page_head = \&Libav_print_page_head;
-sub Libav_print_page_head($$)
+$print_page_head = \&FFmpeg_print_page_head;
+sub FFmpeg_print_page_head($$)
 {
     my $fh = shift;
     my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}";
@@ -195,7 +195,7 @@ sub Libav_print_page_head($$)
     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;
+    $longtitle = "FFmpeg documentation : " . $longtitle;
 
     print $fh <<EOT;
 <!DOCTYPE html>
@@ -218,6 +218,9 @@ $TEMPLATE_HEADER
 EOT
 }
 
+# declare encoding in header
+$IN_ENCODING = $ENCODING = "utf-8";
+
 # no navigation elements
 $SECTION_NAVIGATION = 0;
 # the same for texi2html 5.0