~noskcaj/ubuntu/saucy/libav/merge0.8.7-1

« back to all changes in this revision

Viewing changes to doc/t2h.init

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:30:00 UTC
  • mfrom: (1.2.8) (1.1.13 experimental)
  • Revision ID: package-import@ubuntu.com-20120112223000-cmfo7w78q13i2fd9
Tags: 4:0.8~beta2-1ubuntu1
* Merge from debian, remaining changes:
  - don't build against libdirac, lame, libopenjpeg, librtmp, 
    x264, and xvid  (all in universe)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# no horiz rules between sections
2
 
$end_section = \&FFMPEG_end_section;
3
 
sub FFMPEG_end_section($$)
 
2
$end_section = \&Libav_end_section;
 
3
sub Libav_end_section($$)
4
4
{
5
5
}
6
6
 
7
 
$print_page_foot = \&FFMPEG_print_page_foot;
8
 
sub FFMPEG_print_page_foot($$)
 
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 $LIBAV_NAVBAR = $ENV{"LIBAV_NAVBAR"} || '';
 
71
 
 
72
$AFTER_BODY_OPEN =
 
73
'<div id="container">' .
 
74
"\n$LIBAV_NAVBAR\n" .
 
75
'<div id="body">';
 
76
 
 
77
$PRE_BODY_CLOSE = '</div></div>';
 
78
 
 
79
$SMALL_RULE = '';
 
80
$BODYTEXT = '';
 
81
 
 
82
$print_page_foot = \&Libav_print_page_foot;
 
83
sub Libav_print_page_foot($$)
9
84
{
10
85
    my $fh = shift;
11
 
    print $fh "$SMALL_RULE\n";
 
86
    print $fh '<div id="footer">' . "\n";
12
87
    T2H_DEFAULT_print_page_foot($fh);
 
88
    print $fh "</div>\n";
 
89
}
 
90
 
 
91
$float = \&Libav_float;
 
92
 
 
93
sub Libav_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 = \&Libav_print_page_head;
 
121
sub Libav_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 = "Libav 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
13
159
}
14
160
 
15
161
# no navigation elements