9 chop; # strip record separator
10 @Fld = split(' ', $_, 9999);
15 for (my $i=3; $i <= $#Fld; $i++) {
16 $str .= " " . $Fld[$i];
18 $str = &htmlify($str);
19 printf("<title>%s : %s</title><h1>%s : %s</h1>\n",
20 $Fld[1], $str, $Fld[1], $str);
25 # $i = $_ =~ "\"" && ($RLENGTH = length($&), $RSTART = length($`)+1);
26 # $str = substr($_, $i + 1, length($_) - $i - 1);
28 $str = &htmlify($str);
29 printf "<samp>[##:##] </samp><KBD>%s</KBD><p>\n", $str;
35 printf "<br><samp>[##:##] </samp><kbd>%s</kbd><p>\n", &htmlify($str);
41 printf "<h2>%s</h2>\n", &htmlify($str);
45 if (/^\.(NF|nf)/) { printf (("<p><pre>\n")); next line; }
46 if (/^\.(FI|fi)/) { printf (("</pre><p>\n")); next line; }
47 if (/^\.s3/) { printf (("<p>\n")); next line; }
48 if (/^\.s1/) {printf (("<hr> \n")); next line; }
49 if (/^\.br/) { printf "<br>\n"; next line; }
51 @a = split('[: ",.]+');
53 printf("See also : %s\n",&anchor($a[2]) );
54 for (my $i = 3; $i <= $#a ; ($i)++) {
55 printf(", %s\n",&anchor($a[$i]));
59 chop; # strip record separator
60 @a = split('[: ,.]+');
61 @Fld = split(' ', $_, 9999);
62 if (/^\./) { goto procline; }
63 for (my $i = 0; $i <= $#a ; ($i)++) {
64 printf(", %s\n",&anchor($a[$i]));
71 if (/^\./) { next line; }
73 if (/^(See also|See Also|see also)/) {
74 @a = split('[: ,.]+');
76 printf("See also : %s\n",&anchor($a[2]) );
77 for (my $i = 3; $i <= $#a ; ($i)++) {
78 printf(", %s\n",&anchor($a[$i]));
82 chop; # strip record separator
83 @a = split('[: ,.]+');
84 @Fld = split(' ', $_, 9999);
85 if (/^\./) { goto procline; }
86 for (my $i = 0; $i <= $#a ; ($i)++) {
87 printf(", %s\n",&anchor($a[$i]));
94 printf "%s\n", &htmlify($_);
101 # return ("<a href=" . $_ . ".html" . ">" . $_ . "</a>");
103 # return ( " " . $_ . " ");
113 $file =~ s/.t$/.html/;
114 return ("<a href=\"$file\">$_</a>");
118 warn "Expanding $_ to $file[0]\n";
119 $file[0] =~ s/.t$/.html/;
120 return ("<a href=\"$file[0]\">$_</a>");
122 warn "Unable to link $_\n";
123 return ( "<em>$_</em>");
129 # Translate HTML special characters into escape sequences
133 s/\\&//g; # a nothing character
137 while (@a = /(\\\*Q)([A-Za-z0-9\-\.]+)(\\\*U)/) {
138 /(\\\*Q)([A-Za-z\-]+)(\\\*U)/;
139 $_ = $` . &anchor($a[1]) . $';
141 while (@a = /(\\\*Q)(\"info )([A-Za-z0-9\-\.]+)(\\\*U)/) {
142 /(\\\*Q)(\"info )([\w\-\.]+)(\\\*U)/;
143 $_ = $` . "\"info " . &anchor($a[2]) . $';
145 while (@a = /(\"info )([A-Za-z0-9\-\.]+)/) {
146 /(\"info )([\w\-\.]+)/;
147 $_ = $` . "\"info " . &anchor($a[1]) . $';
152 s/\\fR/<\/em><\/em>/g;
154 s/\\fP/<\/strong><\/em>/g;
155 s/\\\*\(bF/<strong>/g; # bold font
156 s/\\\*\(pF/<\/strong><\/em>/g; # pica font
157 s/\\\*\(nF/<\/strong><\/em>/g; # normal font
158 s/\\\*\(iF/<em>/g; # italic font
159 s/\\\(mu/x/g; # multiply symbol
160 s/\\ / /g; # should be non breaking space