4 $[ = 1; # set array base to 1
7 chop; # strip record separator
8 @Fld = split(' ', $_, 9999);
13 for ($i=4;$i <= $#Fld; $i++) {
14 $str .= " " . $Fld[$i];
16 $str = &htmlify($str);
17 printf("<title>%s : %s</title><h1>%s : %s</h1>\n",
18 $Fld[2],$str,$Fld[2], $str);
23 # $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
24 # $str = substr($_, $i + 1, length($_) - $i - 1);
26 $str = &htmlify($str);
27 printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
33 printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
39 printf "<h2>%s</h2>\n", &htmlify($str);
43 if (/^\.(NF|nf)/) { printf (("<p><pre>\n")); next line; }
44 if (/^\.(FI|fi)/) { printf (("</pre><p>\n")); next line; }
45 if (/^\.s3/) { printf (("<p>\n")); next line; }
46 if (/^\.s1/) {printf (("<hr> \n")); next line; }
47 if (/^\.br/) { printf "<br>\n"; next line; }
49 @a = split('[: ",.]+');
51 printf("See also : %s\n",&anchor($a[3]) );
52 for ($i = 4; $i <= $#a ; ($i)++) {
53 printf(", %s\n",&anchor($a[$i]));
57 chop; # strip record separator
58 @a = split('[: ,.]+');
59 @Fld = split(' ', $_, 9999);
60 if (/^\./) { goto procline; }
61 for ($i = 1; $i <= $#a ; ($i)++) {
62 printf(", %s\n",&anchor($a[$i]));
69 if (/^\./) { next line; }
71 if (/^(See also|See Also|see also)/) {
72 @a = split('[: ,.]+');
74 printf("See also : %s\n",&anchor($a[3]) );
75 for ($i = 4; $i <= $#a ; ($i)++) {
76 printf(", %s\n",&anchor($a[$i]));
80 chop; # strip record separator
81 @a = split('[: ,.]+');
82 @Fld = split(' ', $_, 9999);
83 if (/^\./) { goto procline; }
84 for ($i = 1; $i <= $#a ; ($i)++) {
85 printf(", %s\n",&anchor($a[$i]));
92 printf "%s\n", &htmlify($_);
99 # return ("<a href=" . $_ . ".html" . ">" . $_ . "</a>");
101 # return ( " " . $_ . " ");
111 $file =~ s/.t$/.html/;
112 return ("<a href=\"$file\">$_</a>");
116 warn "Expanding $_ to $file[$[]\n";
117 $file[$[] =~ s/.t$/.html/;
118 return ("<a href=\"$file[$[]\">$_</a>");
120 warn "Unable to link $_\n";
121 return ( "<em>$_</em>");
127 # Translate HTML special characters into escape sequences
131 s/\\&//g; # a nothing character
135 while (@a = /(\\\*Q)([A-Za-z0-9\-\.]+)(\\\*U)/) {
136 /(\\\*Q)([A-Za-z\-]+)(\\\*U)/;
137 $_ = $` . &anchor($a[2]) . $';
139 while (@a = /(\\\*Q)(\"info )([A-Za-z0-9\-\.]+)(\\\*U)/) {
140 /(\\\*Q)(\"info )([\w\-\.]+)(\\\*U)/;
141 $_ = $` . "\"info " . &anchor($a[3]) . $';
143 while (@a = /(\"info )([A-Za-z0-9\-\.]+)/) {
144 /(\"info )([\w\-\.]+)/;
145 $_ = $` . "\"info " . &anchor($a[2]) . $';
150 s/\\fR/<\/em><\/em>/g;
152 s/\\fP/<\/strong><\/em>/g;
153 s/\\\*\(bF/<strong>/g; # bold font
154 s/\\\*\(pF/<\/strong><\/em>/g; # pica font
155 s/\\\*\(nF/<\/strong><\/em>/g; # normal font
156 s/\\\*\(iF/<em>/g; # italic font
157 s/\\\(mu/x/g; # multiply symbol
158 s/\\ / /g; # should be non breaking space