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