4 $[ = 1; # set array base to 1
8 chop; # strip record separator
9 @Fld = split(' ', $_, 9999);
14 for ($i=4;$i <= $#Fld; $i++) {
15 $str .= " " . $Fld[$i];
17 $str = &htmlify($str);
18 printf("<title>%s : %s</title><h1>%s : %s</h1>\n",
19 $Fld[2],$str,$Fld[2], $str);
24 # $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
25 # $str = substr($_, $i + 1, length($_) - $i - 1);
27 $str = &htmlify($str);
28 printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
34 printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
39 @a = split('[: ",.]+');
40 $str = &anchor($a[3]);
41 $str = ("$str $a[4]");
42 printf("<br>%s\n", $str);
46 if (/^\.s3/) { printf (("<p>\n")); next line; }
47 if (/^\.s1/) {printf (("<hr> \n")); next line; }
48 if (/^\.br/) { printf "<br>\n"; next line; }
50 if (/^\.(FI|fi)/) { printf (("</pre><p>\n")); $dome = 0; next line; }
51 if (/^\.(NF|nf)/) { printf (("<p><pre>\n")); $dome = 1; next line; }
54 @a = split('[: ",.]+');
56 for ($i = 2; $i <= $#a ; ($i)++) {
57 printf("%s",&anchor($a[$i]));
58 for ($j = 0; $j < 20 - length($a[$i]); $j++) {
64 chop; # strip record separator
65 @a = split('[: ,.]+');
66 @Fld = split(' ', $_, 9999);
67 if (/^\./) { goto procline; }
68 for ($i = 2; $i <= $#a ; ($i)++) {
69 printf("%s",&anchor($a[$i]));
70 for ($j = 0; $j < 20 - length($a[$i]); $j++) {
80 @a = split('[: ",.]+');
82 printf("See also : %s\n",&anchor($a[3]) );
83 for ($i = 4; $i <= $#a ; ($i)++) {
84 printf(", %s\n",&anchor($a[$i]));
88 chop; # strip record separator
89 @a = split('[: ,.]+');
90 @Fld = split(' ', $_, 9999);
91 if (/^\./) { goto procline; }
92 for ($i = 1; $i <= $#a ; ($i)++) {
93 printf(", %s\n",&anchor($a[$i]));
100 if (/^\./) { next line; }
102 if (/^(See also|See Also|see also)/) {
103 @a = split('[: ,.]+');
105 printf("See also : %s\n",&anchor($a[3]) );
106 for ($i = 4; $i <= $#a ; ($i)++) {
107 printf(", %s\n",&anchor($a[$i]));
111 chop; # strip record separator
112 @a = split('[: ,.]+');
113 @Fld = split(' ', $_, 9999);
114 if (/^\./) { goto procline; }
115 for ($i = 1; $i <= $#a ; ($i)++) {
116 printf(", %s\n",&anchor($a[$i]));
123 printf "%s\n", &htmlify($_);
130 # return ("<a href=" . $_ . ".html" . ">" . $_ . "</a>");
132 # return ( " " . $_ . " ");
142 $file =~ s/.t$/.html/;
143 return ("<a href=\"$file\">$_</a>");
147 warn "Expanding $_ to $file[$[]\n";
148 $file[$[] =~ s/.t$/.html/;
149 return ("<a href=\"$file[$[]\">$_</a>");
151 warn "Unable to link $_\n";
152 return ( "<em>$_</em>");
158 # Translate HTML special characters into escape sequences
162 s/\\&//g; # a nothing character
166 while (@a = /(\\\*Q)([A-Za-z0-9\-\.]+)(\\\*U)/) {
167 /(\\\*Q)([A-Za-z\-]+)(\\\*U)/;
168 $_ = $` . &anchor($a[2]) . $';
170 while (@a = /(\\\*Q)(\"info )([A-Za-z0-9\-\.]+)(\\\*U)/) {
171 /(\\\*Q)(\"info )([\w\-\.]+)(\\\*U)/;
172 $_ = $` . "\"info " . &anchor($a[3]) . $';
174 while (@a = /(\"info )([A-Za-z0-9\-\.]+)/) {
175 /(\"info )([\w\-\.]+)/;
176 $_ = $` . "\"info " . &anchor($a[2]) . $';
181 s/\\fR/<\/em><\/em>/g;
183 s/\\fP/<\/strong><\/em>/g;
184 s/\\\*\(bF/<strong>/g; # bold font
185 s/\\\*\(pF/<\/strong><\/em>/g; # pica font
186 s/\\\*\(nF/<\/strong><\/em>/g; # normal font
187 s/\\\*\(iF/<em>/g; # italic font
188 s/\\\(mu/x/g; # multiply symbol
189 s/\\ / /g; # should be non breaking space