t2h.init 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # no horiz rules between sections
  2. $end_section = \&FFmpeg_end_section;
  3. sub FFmpeg_end_section($$)
  4. {
  5. }
  6. $EXTRA_HEAD =
  7. '<link rel="icon" href="favicon.png" type="image/png" />
  8. <link rel="stylesheet" type="text/css" href="default.css" />
  9. ';
  10. $CSS_LINES = <<EOT;
  11. <style type="text/css">
  12. <!--
  13. a.summary-letter { text-decoration: none }
  14. a { color: #2D6198; }
  15. a:visited { color: #884488; }
  16. h1 a, h2 a, h3 a { text-decoration: inherit; color: inherit; }
  17. p { margin-left: 1em; margin-right: 1em; }
  18. table { margin-left: 2em; }
  19. pre { margin-left: 2em; }
  20. #footer { text-align: center; }
  21. #body { margin-left: 1em; margin-right: 1em; }
  22. body { background-color: #313131; margin: 0; }
  23. #container {
  24. background-color: white;
  25. color: #202020;
  26. margin-left: 1em;
  27. margin-right: 1em;
  28. }
  29. h1 {
  30. background-color: #7BB37B;
  31. border: 1px solid #6A996A;
  32. color: #151515;
  33. font-size: 1.2em;
  34. padding-bottom: 0.2em;
  35. padding-left: 0.4em;
  36. padding-top: 0.2em;
  37. }
  38. h2 {
  39. color: #313131;
  40. font-size: 1.2em;
  41. }
  42. h3 {
  43. color: #313131;
  44. font-size: 0.8em;
  45. margin-bottom: -8px;
  46. }
  47. .note {
  48. margin: 1em;
  49. border: 1px solid #bbc9d8;
  50. background-color: #dde1e1;
  51. }
  52. .important {
  53. margin: 1em;
  54. border: 1px solid #d26767;
  55. background-color: #f8e1e1;
  56. }
  57. -->
  58. </style>
  59. EOT
  60. my $FFMPEG_NAVBAR = $ENV{"FFMPEG_NAVBAR"} || '';
  61. $AFTER_BODY_OPEN =
  62. '<div id="container">' .
  63. "\n$FFMPEG_NAVBAR\n" .
  64. '<div id="body">';
  65. $PRE_BODY_CLOSE = '</div></div>';
  66. $SMALL_RULE = '';
  67. $BODYTEXT = '';
  68. $print_page_foot = \&FFmpeg_print_page_foot;
  69. sub FFmpeg_print_page_foot($$)
  70. {
  71. my $fh = shift;
  72. print $fh '<div id="footer">' . "\n";
  73. T2H_DEFAULT_print_page_foot($fh);
  74. print $fh "</div>\n";
  75. }
  76. $float = \&FFmpeg_float;
  77. sub FFmpeg_float($$$$)
  78. {
  79. my $text = shift;
  80. my $float = shift;
  81. my $caption = shift;
  82. my $shortcaption = shift;
  83. my $label = '';
  84. if (exists($float->{'id'}))
  85. {
  86. $label = &$anchor($float->{'id'});
  87. }
  88. my $class = '';
  89. my $subject = '';
  90. if ($caption =~ /NOTE/)
  91. {
  92. $class = "note";
  93. }
  94. elsif ($caption =~ /IMPORTANT/)
  95. {
  96. $class = "important";
  97. }
  98. return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
  99. }
  100. $print_page_head = \&FFmpeg_print_page_head;
  101. sub FFmpeg_print_page_head($$)
  102. {
  103. my $fh = shift;
  104. my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}";
  105. $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
  106. my $description = $DOCUMENT_DESCRIPTION;
  107. $description = $longtitle if (!defined($description));
  108. $description = "<meta name=\"description\" content=\"$description\">" if
  109. ($description ne '');
  110. $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
  111. my $encoding = '';
  112. $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
  113. $longtitle =~ s/Documentation.*//g;
  114. $longtitle = "FFmpeg documentation : " . $longtitle;
  115. print $fh <<EOT;
  116. $DOCTYPE
  117. <html>
  118. $Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
  119. <!--
  120. $Texi2HTML::THISDOC{program_authors}
  121. -->
  122. <head>
  123. <title>$longtitle</title>
  124. $description
  125. <meta name="keywords" content="$longtitle">
  126. <meta name="resource-type" content="document">
  127. <meta name="distribution" content="global">
  128. <meta name="Generator" content="$Texi2HTML::THISDOC{program}">
  129. $encoding
  130. $CSS_LINES
  131. $EXTRA_HEAD
  132. </head>
  133. <body $BODYTEXT>
  134. $AFTER_BODY_OPEN
  135. EOT
  136. }
  137. # declare encoding in header
  138. $IN_ENCODING = $ENCODING = "utf-8";
  139. # no navigation elements
  140. $SECTION_NAVIGATION = 0;
  141. # the same for texi2html 5.0
  142. $HEADERS = 0;
  143. # TOC and Chapter headings link
  144. $TOC_LINKS = 1;
  145. # print the TOC where @contents is used
  146. $INLINE_CONTENTS = 1;