Re: OSU server down again?

---------

Larry W. Virden, x2487 (lvirden@cas.org)
Fri, 10 Nov 1995 12:07:25 -0500


Bad News: I have basically given up on Ohio State's server or Smart Pages
having the most up to date version of my faq.

Good News: I found a neat little application called txt2html.pl which with
a small change allowed me to generate an HTML document from my FAQ that
appears to be quite close to Ohio State's algorithem - well, at least
quite close to the main body of text. Unfortunately, it does not generate
the links between sections right now. However, it is programmable and perhaps
with some team work could be configured properly.

You can find txt2html.pl at <URL:http://www.cs.wustl.edu/%7Eseth/txt2html/>.
After I got that application, I did a couple of things. One is that I
wrote a modification to the application that allowed me to append things
to the <HEAD> section of the HTML generated. This allowed me to add a
<BASE> and <LINK> tag automatically to the HTML.

I then contacted the author, who provided me with an extra line to add
to txt2html's dictionary of hyperlink info:

# (see "relative path") as used by Tom Fine
/\(see \"([^\"]+)\"\)/ -> $1.html

Now, when I call
/home/lwv26/new.txt2html.pl \
-ah ~/Misc/head.html \
-pb 0 --mail --title "comp.lang.tcl FAQ $part" \
$i > /tmp/$part.html

I get an html file, with a title, with links to other pieces. Of course,
you have to play a bit with the naming of your html files, etc. but
in general, it works pretty nice.

As I said, the one piece missing is turning the initial index in my
FAQ into a linkable index. I just haven't had time to do the work there
yet.

If you would like to see the results, check out:

<URL:http://www.teraform.com/%7Elvirden/tcl-faq/part1.html>

-- 
Larry W. Virden                 INET: lvirden@cas.org
<URL:http://www.teraform.com/%7Elvirden/> is here! <*>
Unless explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.


[ Usenet Hypertext FAQ Archive | Search Mail Archive | Authors | Usenet ]
[ 1993 | 1994 | 1995 | 1996 | 1997 ]

---------

faq-admin@landfield.com

© Copyright The Landfield Group, 1997
All rights reserved