X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/7231d76fbf4ae0b501af648e1216b88714aa7353..928c6b8da5a3677aaaf33976a7d921a1498a61df:/doc/makehtml.pl diff --git a/doc/makehtml.pl b/doc/makehtml.pl index 8b14c5d..cfaed9d 100755 --- a/doc/makehtml.pl +++ b/doc/makehtml.pl @@ -5,6 +5,8 @@ while (<>) { s/&/&/g; s/\/>/g; + s/\\'/'/g; + s/\\-/-/g; if ($printtable == 1) { $printtable = 2; } elsif ($printtable == 2) { @@ -38,8 +40,18 @@ while (<>) { print "\n"; } print "

\n"; + } elsif (/^\.IP/) { + if ($printtable == 3) { + $printtable = 0; + print "\n"; + } + print "

\n"; + } elsif (/^\.B "(.*)"$/) { + print "$1\n"; } elsif (/^\.B (.*)$/) { print "$1\n"; + } elsif (/^\.I "(.*)"$/) { + print "$1\n"; } elsif (/^\.I (.*)$/) { print "$1\n"; } elsif (/^\.nf/) { @@ -74,7 +86,8 @@ while (<>) { } else { s/\\fB([^\\]*)\\fR/\1<\/B>/gm; s/\\fI([^\\]*)\\fR/\1<\/I>/gm; - s/\\(.)/\1>/g; + s/<([a-zA-Z0-9.]+\@[a-zA-Z0-9.]+)>/<\1<\/a>>/g; + s/(http:\/\/[a-zA-Z0-9.\/~]+\.html)/\1<\/a>/g; print; } }