Changeset 7a9a32 in git for doc/texi2html


Ignore:
Timestamp:
Jun 18, 1998, 3:26:26 PM (25 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
bdbe7d3cc07c84940e0e94451a9de6007ff2e2b2
Parents:
c8c3b80aa697582a89405ccbe97006dc6f19ae07
Message:
Update html-version


git-svn-id: file:///usr/local/Singular/svn/trunk@2194 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/texi2html

    rc8c3b8 r7a9a32  
    22'di ';
    33'ig 00 ';
    4 # $Id: texi2html,v 1.4 1998-06-18 09:21:40 krueger Exp $
     4# $Id: texi2html,v 1.5 1998-06-18 13:26:19 krueger Exp $
    55# Description: Program to transform most Texinfo documents to HTML.
    66# The plan is for the next version of makeinfo to support HTML output
     
    4949$IMG_LAST_ACTIVE   = "";
    5050$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";
    5658
    5759$BIBRE = '\[[\w\/]+\]';                 # RE for a bibliography reference
     
    161163               "-", "&#173;",   # soft hyphen
    162164               'tab', '<TD>',
     165               '-', '',
    163166               );
    164167
     
    446449    $to_skip{'end iftex'}++;
    447450}
    448 $invisible_mark = '<IMG SRC="invisible.xbm" ALT="">' if $invisible_mark eq 'xbm';
     451$invisible_mark = '<IMG SRC="images/invisible.xbm" ALT="">' if $invisible_mark eq 'xbm';
    449452die $usage unless @ARGV == 1;
    450453$docu = shift(@ARGV);
     
    958961                $name =~ s/\s+$//;
    959962                $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/;
    963971                if ($tag =~ /heading$/) {
    964972                    push(@lines, &html_debug("\n", __LINE__));
     
    12981306        ($type, $nodes, $full) = ($1, $2, $3);
    12991307        ($before, $after) = ($`, $');
     1308        $ref_where = "Section";
    13001309        if (! $full && $after) {
    13011310            warn "$ERROR Bad xref (no ending } on line): $_";
     
    13401349        &normalise_node($node);
    13411350        $sec = $node2sec{$node};
     1351        $_ = $sec;
     1352        if (/^[A-Z]/) {
     1353            $ref_where = "Appendix";
     1354        }
    13421355        if (@args == 5) { # reference to another manual
    13431356            $sec = $args[2] || $node;
    13441357            $man = $args[4] || $args[3];
    1345             $_ = "${before}${type}section `$sec' in \@cite{$man}$after";
     1358            $_ = "${before}${type}$ref_where `$sec' in \@cite{$man}$after";
    13461359        } elsif ($type =~ /Info/) { # inforef
    13471360            warn "$ERROR Wrong number of arguments: $_" unless @args == 3;
     
    13501363        } elsif ($sec) {
    13511364            $href = $node2href{$node};
    1352             $_ = "${before}${type}section " . &anchor('', $href, '', $sec) . $after;
     1365            $_ = "${before}${type}" . &anchor('', $href, '', "$ref_where $sec") . $after;
    13531366        } else {
    13541367            warn "$ERROR Undefined node ($node): $_";
     
    15381551print "# end of pass 4\n" if $verbose;
    15391552
    1540 push(@menu_lines, "<BODY BACKGROUND=\"/rock.gif\">\n");
    1541 push(@menu_lines, "<IMG SRC=\"singular-small.jpg\"><P>\n");
     1553push(@menu_lines, "<BODY BACKGROUND=\"$IMG_LEFT\">\n");
     1554push(@menu_lines, "<A HREF=\"http://www.mathematik.uni-kl.de/~zca/Singular\" TARGET=\"_parent\">");
     1555push(@menu_lines, "<IMG SRC=\"images/singular-small.jpg\"></A><P>\n");
    15421556#push(@menu_lines, "<BODY BACKGROUND=\"/rock.gif\" TEXT=\"yellow\"");
    15431557#push(@menu_lines, " LINK=#FFFFFF ALINK=#FF00FF VLINK=\"#00FF00\">\n");
     
    19371951        $descr = ": $descr" if $descr;
    19381952        push(@menu_lines, "$oltype VALUE=$value>" . &anchor('', $href, "Main", $entry) . "$descr\n");
     1953        push(@menu_lines, "<P>\n");
    19391954    } else {
    19401955        warn "$ERROR Undefined node ($node): $_";
     
    19942009    $text = $address unless $text;
    19952010    $address =~ s/&#173;//g;
    1996     &anchor('', "${address}", '', "<TT>${text}</TT>")
     2011    &anchor('', "${address}", '_parent', "<TT>${text}</TT>")
    19972012}
    19982013
     
    21612176</HEAD>
    21622177EOT
    2163     if(!$is_frame) { print FILE "<BODY background=\"/rock.gif\">\n"; }
     2178    if(!$is_frame) { print FILE "<BODY background=\"$IMG_RIGHT\">\n"; }
    21642179}
    21652180
     
    21992214    &print_ruler;
    22002215    print FILE <<EOT;
    2201 This document was generated on $TODAY using the
    2202 <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>
     2218translator version 1.51a.</H6>
    22042219EOT
    22052220    &print_footer;
Note: See TracChangeset for help on using the changeset viewer.