| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $USE_ISO = 1; |
| |
| |
| |
| |
| |
| |
| @INCLUDE_DIRS = ("/home/centos/artwork"); |
| |
| |
| $EXTENSION = "xhtml"; |
| |
| |
| $DEFAULT_RULE = '<div class="page-line white"><hr style="display:none;" /></div>'; |
| $SMALL_RULE = $DEFAULT_RULE; |
| $MIDDLE_RULE = $DEFAULT_RULE; |
| $BIG_RULE = $DEFAULT_RULE; |
| |
| |
| |
| |
| |
| |
| |
| |
| $SPLIT = 'section'; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $SECTION_NAVIGATION = 1; |
| |
| |
| $print_page_head = \&T2H_XHTML_print_page_head; |
| $print_page_foot = \&T2H_XHTML_print_page_foot; |
| $print_frame = \&T2H_XHTML_print_frame; |
| $button_icon_img = \&T2H_XHTML_button_icon_img; |
| $print_navigation = \&T2H_XHTML_print_navigation; |
| |
| |
| sub T2H_XHTML_print_page_head |
| { |
| my $fh = shift; |
| my $longtitle = "$Texi2HTML::THISDOC{'title_unformatted'}"; |
| $longtitle .= ": $Texi2HTML::UNFORMATTED{'This'}" if exists $Texi2HTML::UNFORMATTED{'This'}; |
| $T2H_LANG='en'; |
| print $fh <<EOT; |
| <?xml version="1.0"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$T2H_LANG" lang="$T2H_LANG"> |
| <head> |
| |
| <title>$longtitle</title> |
| |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
| <meta name="description" content="$longtitle" /> |
| <meta name="keywords" content="$longtitle" /> |
| <meta name="resource-type" content="document" /> |
| <meta name="distribution" content="global" /> |
| <meta name="generator" content="$Texi2HTML::THISDOC{program}" /> |
| <meta name="copyright" content="2009, 2010, 2011 The CentOS Project" /> |
| |
| <link href="/home/centos/artwork/trunk/Manual/repository.css" rel="stylesheet" type="text/css" media="screen projection" /> |
| |
| </head> |
| |
| <body> |
| |
| <a name="top" /> |
| |
| <div id="wrap"> |
| |
| <div id="page-body"> |
| |
| <div id="content"> |
| |
| <!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} --> |
| EOT |
| } |
| |
| sub T2H_XHTML_print_page_foot |
| { |
| my $fh = shift; |
| my @date=localtime(time); |
| my $year=$date[5] += 1900; |
| my $program_string = program_string(); |
| print $fh <<EOT; |
| |
| <p class="credits">$program_string</p> |
| |
| </div> |
| |
| </div> |
| |
| |
| </div> |
| |
| </body> |
| |
| </html> |
| EOT |
| } |
| |
| # / in <img> |
| sub T2H_XHTML_button_icon_img |
| { |
| my $button = shift; |
| my $icon = shift; |
| my $name = shift; |
| return '' if (!defined($icon)); |
| if (defined($name) && $name) |
| { |
| $name = ": $name"; |
| } |
| else |
| { |
| $name = ''; |
| } |
| $button = "" if (!defined ($button)); |
| return qq{<img src="$icon" border="0" alt="$button$name" align="middle" />}; |
| } |
| |
| $simple_map{'*'} = '<br />'; |
| |
| # formatting functions |
| |
| $def_line = \&t2h_xhtml_def_line; |
| $index_summary = \&t2h_xhtml_index_summary; |
| $image = \&t2h_xhtml_image; |
| |
| # need / in <img> |
| sub t2h_xhtml_image($$$) |
| { |
| my $file = shift; |
| my $base = shift; |
| my $preformatted = shift; |
| return "[ $base ]" if ($preformatted); |
| return "<img src=\"$file\" alt=\"$base\" />"; |
| } |
| |
| |
| |
| sub t2h_xhtml_def_line($$$$$) |
| { |
| my $category = shift; |
| my $name = shift; |
| my $type = shift; |
| my $arguments = shift; |
| my $index_label = shift; |
| $index_label = '' if (!defined($index_label)); |
| $name = '' if (!defined($name) or ($name =~ /^\s*$/)); |
| $type = '' if (!defined($type) or $type =~ /^\s*$/); |
| if (!defined($arguments) or $arguments =~ /^\s*$/) |
| { |
| $arguments = ''; |
| } |
| else |
| { |
| $arguments = '<i>' . $arguments . '</i>'; |
| } |
| my $type_name = ''; |
| $type_name = " $type" if ($type ne ''); |
| $type_name .= ' <b>' . $name . '</b>' if ($name ne ''); |
| $type_name .= $arguments . "\n"; |
| if (! $DEF_TABLE) |
| { |
| return '<dt>'. '<span style="text-decoration: underline">' . $category . ':</span>' . $type_name . $index_label . "</dt>\n"; |
| } |
| else |
| { |
| |
| return "<tr>\n<td align=\"left\">" . $type_name . |
| "</td>\n<td align=\"right\">" . $category . $index_label . "</td>\n" . "</tr>\n"; |
| } |
| } |
| |
| |
| sub t2h_xhtml_index_summary($$) |
| { |
| my $alpha = shift; |
| my $nonalpha = shift; |
| my $join = ''; |
| my $nonalpha_text = ''; |
| my $alpha_text = ''; |
| $join = " \n<br />\n" if (@$nonalpha and @$alpha); |
| if (@$nonalpha) |
| { |
| $nonalpha_text = join("\n \n", @$nonalpha) . "\n"; |
| } |
| if (@$alpha) |
| { |
| $alpha_text = join("\n \n", @$alpha) . "\n \n"; |
| } |
| |
| return "<table><tr><th valign=\"top\">Jump to: </th><td>" . |
| $nonalpha_text . $join . $alpha_text . '</td></tr></table>'; |
| } |
| |
| |
| sub T2H_XHTML_print_navigation |
| { |
| my $fh = shift; |
| my $buttons = shift; |
| my $vertical = shift; |
| print $fh '<table class="navibar">' . "\n"; |
| |
| print $fh "<tr>" unless $vertical; |
| for my $button (@$buttons) |
| { |
| print $fh qq{<tr>\n} if $vertical; |
| print $fh qq{<td>}; |
| |
| if (ref($button) eq 'CODE') |
| { |
| &$button($fh, $vertical); |
| } |
| elsif (ref($button) eq 'SCALAR') |
| { |
| print $fh "$$button" if defined($$button); |
| } |
| elsif (ref($button) eq 'ARRAY') |
| { |
| my $text = $button->[1]; |
| my $button_href = $button->[0]; |
| if (defined($button_href) and !ref($button_href) |
| and defined($text) and (ref($text) eq 'SCALAR') and defined($$text)) |
| { |
| if ($Texi2HTML::HREF{$button_href}) |
| { |
| print $fh "" . |
| &$anchor('', |
| $Texi2HTML::HREF{$button_href}, |
| $$text |
| ) |
| ; |
| } |
| else |
| { |
| print $fh $$text; |
| } |
| } |
| } |
| elsif ($button eq ' ') |
| { |
| print $fh |
| $ICONS && $ACTIVE_ICONS{' '} ? |
| &$button_icon_img($button, $ACTIVE_ICONS{' '}) : |
| $NAVIGATION_TEXT{' '}; |
| |
| } |
| elsif ($Texi2HTML::HREF{$button}) |
| { |
| my $btitle = $BUTTONS_GOTO{$button} ? |
| 'title="' . ucfirst($BUTTONS_GOTO{$button}) . '"' : ''; |
| if ($ICONS && $ACTIVE_ICONS{$button}) |
| { |
| print $fh '' . |
| &$anchor('', |
| $Texi2HTML::HREF{$button}, |
| &$button_icon_img($button, |
| $ACTIVE_ICONS{$button}, |
| |
| $Texi2HTML::NO_TEXI{$button}), |
| $btitle |
| ); |
| } |
| else |
| { |
| print $fh |
| '[' . |
| &$anchor('', |
| $Texi2HTML::HREF{$button}, |
| $NAVIGATION_TEXT{$button}, |
| $btitle |
| ) . |
| ']'; |
| } |
| } |
| else |
| { |
| print $fh |
| $ICONS && $PASSIVE_ICONS{$button} ? |
| &$button_icon_img($button, |
| $PASSIVE_ICONS{$button}, |
| |
| $Texi2HTML::NO_TEXI{$button}) : |
| |
| "[" . $NAVIGATION_TEXT{$button} . "]"; |
| } |
| print $fh "</td>\n"; |
| print $fh "</tr>\n" if $vertical; |
| } |
| print $fh "</tr>" unless $vertical; |
| print $fh "</table>\n"; |
| } |
| |
| |
| $ICONS = 0; |
| |
| |
| |
| %ACTIVE_ICONS = |
| ( |
| 'Top', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-top.png', |
| 'Contents', 'file:///usr/share/icons/Bluecurve/24x24/stock/help-contents.png', |
| 'Overview', '', |
| 'Index', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-find.png', |
| 'This', '', |
| 'Back', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-back.png', |
| 'FastBack', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-first.png', |
| 'Prev', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-back.png', |
| 'Up', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-up.png', |
| 'Next', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'NodeUp', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-up.png', |
| 'NodeNext', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'NodePrev', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-back.png', |
| 'Following', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'Forward', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'FastForward', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-last.png', |
| 'About' , 'file:///usr/share/icons/Bluecurve/24x24/stock/gtk-about.png', |
| 'First', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-first.png', |
| 'Last', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-last.png', |
| ' ', '' |
| ); |
| |
| |
| %PASSIVE_ICONS = |
| ( |
| 'Top', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-top.png', |
| 'Contents', 'file:///usr/share/icons/Bluecurve/24x24/stock/help-contents.png', |
| 'Overview', '', |
| 'Index', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-find.png', |
| 'This', '', |
| 'Back', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-back.png', |
| 'FastBack', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-first.png', |
| 'Prev', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-back.png', |
| 'Up', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-up.png', |
| 'Next', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'NodeUp', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-up.png', |
| 'NodeNext', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'NodePrev', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-back.png', |
| 'Following', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'Forward', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-go-forward.png', |
| 'FastForward', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-last.png', |
| 'About' , 'file:///usr/share/icons/Bluecurve/24x24/stock/gtk-about.png', |
| 'First', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-first.png', |
| 'Last', 'file:///usr/share/icons/Bluecurve/24x24/stock/stock-goto-last.png', |
| ' ', '' |
| ); |