Changeset 7a9a32 in git for doc/texi2html
- Timestamp:
- Jun 18, 1998, 3:26:26 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- bdbe7d3cc07c84940e0e94451a9de6007ff2e2b2
- Parents:
- c8c3b80aa697582a89405ccbe97006dc6f19ae07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/texi2html
rc8c3b8 r7a9a32 2 2 'di '; 3 3 'ig 00 '; 4 # $Id: texi2html,v 1. 4 1998-06-18 09:21:40krueger Exp $4 # $Id: texi2html,v 1.5 1998-06-18 13:26:19 krueger Exp $ 5 5 # Description: Program to transform most Texinfo documents to HTML. 6 6 # The plan is for the next version of makeinfo to support HTML output … … 49 49 $IMG_LAST_ACTIVE = ""; 50 50 $IMG_LAST_PASSIVE = ""; 51 $IMG_NEXT_ACTIVE = "<IMG SRC=\"next_motif.gif\">"; 52 $IMG_NEXT_PASSIVE = "<IMG SRC=\"next_motif_gr.gif\">"; 53 $IMG_PREV_ACTIVE = "<IMG SRC=\"previous_motif.gif\">"; 54 $IMG_PREV_PASSIVE = "<IMG SRC=\"previous_motif_gr.gif\">"; 55 $IMG_TOC = "<IMG SRC=\"contents_motif.gif\">"; 51 $IMG_NEXT_ACTIVE = "<IMG SRC=\"images/next_motif.gif\">"; 52 $IMG_NEXT_PASSIVE = "<IMG SRC=\"images/next_motif_gr.gif\">"; 53 $IMG_PREV_ACTIVE = "<IMG SRC=\"images/previous_motif.gif\">"; 54 $IMG_PREV_PASSIVE = "<IMG SRC=\"images/previous_motif_gr.gif\">"; 55 $IMG_TOC = "<IMG SRC=\"images/contents_motif.gif\">"; 56 $IMG_LEFT = "images/bg_left.gif"; 57 $IMG_RIGHT = "images/bg_right.gif"; 56 58 57 59 $BIBRE = '\[[\w\/]+\]'; # RE for a bibliography reference … … 161 163 "-", "­", # soft hyphen 162 164 'tab', '<TD>', 165 '-', '', 163 166 ); 164 167 … … 446 449 $to_skip{'end iftex'}++; 447 450 } 448 $invisible_mark = '<IMG SRC="i nvisible.xbm" ALT="">' if $invisible_mark eq 'xbm';451 $invisible_mark = '<IMG SRC="images/invisible.xbm" ALT="">' if $invisible_mark eq 'xbm'; 449 452 die $usage unless @ARGV == 1; 450 453 $docu = shift(@ARGV); … … 958 961 $name =~ s/\s+$//; 959 962 $level = $sec2level{$tag}; 960 $name = &update_sec_num($tag, $level) . " $name" 961 if $number_sections && $tag !~ /^unnumbered/; 962 push(@left_index, $name); 963 # print "+++==>$tag<\n"; 964 if ($number_sections && $tag !~ /heading$/) { 965 $name = &update_sec_num($tag, $level) . " $name"; 966 push(@left_index, $name); 967 } 968 # $name = &update_sec_num($tag, $level) . " $name" 969 # if $number_sections && $tag !~ /heading$/; 970 # if $number_sections && $tag !~ /^unnumbered/; 963 971 if ($tag =~ /heading$/) { 964 972 push(@lines, &html_debug("\n", __LINE__)); … … 1298 1306 ($type, $nodes, $full) = ($1, $2, $3); 1299 1307 ($before, $after) = ($`, $'); 1308 $ref_where = "Section"; 1300 1309 if (! $full && $after) { 1301 1310 warn "$ERROR Bad xref (no ending } on line): $_"; … … 1340 1349 &normalise_node($node); 1341 1350 $sec = $node2sec{$node}; 1351 $_ = $sec; 1352 if (/^[A-Z]/) { 1353 $ref_where = "Appendix"; 1354 } 1342 1355 if (@args == 5) { # reference to another manual 1343 1356 $sec = $args[2] || $node; 1344 1357 $man = $args[4] || $args[3]; 1345 $_ = "${before}${type} section`$sec' in \@cite{$man}$after";1358 $_ = "${before}${type}$ref_where `$sec' in \@cite{$man}$after"; 1346 1359 } elsif ($type =~ /Info/) { # inforef 1347 1360 warn "$ERROR Wrong number of arguments: $_" unless @args == 3; … … 1350 1363 } elsif ($sec) { 1351 1364 $href = $node2href{$node}; 1352 $_ = "${before}${type} section " . &anchor('', $href, '', $sec) . $after;1365 $_ = "${before}${type}" . &anchor('', $href, '', "$ref_where $sec") . $after; 1353 1366 } else { 1354 1367 warn "$ERROR Undefined node ($node): $_"; … … 1538 1551 print "# end of pass 4\n" if $verbose; 1539 1552 1540 push(@menu_lines, "<BODY BACKGROUND=\"/rock.gif\">\n"); 1541 push(@menu_lines, "<IMG SRC=\"singular-small.jpg\"><P>\n"); 1553 push(@menu_lines, "<BODY BACKGROUND=\"$IMG_LEFT\">\n"); 1554 push(@menu_lines, "<A HREF=\"http://www.mathematik.uni-kl.de/~zca/Singular\" TARGET=\"_parent\">"); 1555 push(@menu_lines, "<IMG SRC=\"images/singular-small.jpg\"></A><P>\n"); 1542 1556 #push(@menu_lines, "<BODY BACKGROUND=\"/rock.gif\" TEXT=\"yellow\""); 1543 1557 #push(@menu_lines, " LINK=#FFFFFF ALINK=#FF00FF VLINK=\"#00FF00\">\n"); … … 1937 1951 $descr = ": $descr" if $descr; 1938 1952 push(@menu_lines, "$oltype VALUE=$value>" . &anchor('', $href, "Main", $entry) . "$descr\n"); 1953 push(@menu_lines, "<P>\n"); 1939 1954 } else { 1940 1955 warn "$ERROR Undefined node ($node): $_"; … … 1994 2009 $text = $address unless $text; 1995 2010 $address =~ s/­//g; 1996 &anchor('', "${address}", ' ', "<TT>${text}</TT>")2011 &anchor('', "${address}", '_parent', "<TT>${text}</TT>") 1997 2012 } 1998 2013 … … 2161 2176 </HEAD> 2162 2177 EOT 2163 if(!$is_frame) { print FILE "<BODY background=\" /rock.gif\">\n"; }2178 if(!$is_frame) { print FILE "<BODY background=\"$IMG_RIGHT\">\n"; } 2164 2179 } 2165 2180 … … 2199 2214 &print_ruler; 2200 2215 print FILE <<EOT; 2201 This document was generated on $TODAY using the2202 <A HREF=\"$HOMEPAGE\" >texi2html</A>2203 translator version 1.51a.</ P>2216 <H6>This document was generated on $TODAY using the 2217 <A HREF=\"$HOMEPAGE\" TARGET=\"_parent\">texi2html</A> 2218 translator version 1.51a.</H6> 2204 2219 EOT 2205 2220 &print_footer;
Note: See TracChangeset
for help on using the changeset viewer.