Re: Plain text file on web server, questions please...
- From: Ohmster <nowayin@xxxxxxxx>
- Date: Sun, 17 Jun 2007 17:17:39 +0200 (CEST)
Mark <mtaylor*@*lrim.com> wrote in news:1182090929_9017
@sp6iad.superfeed.net:
[snip]
Could cron be used to copy the document over prior to adding the HTML
tags right before posting and then when posting again, do the same
thing, this way that if anything changed in the FAQ, it would also be
changed in the online version as well?
Thank you all for your help, I am a bit over my head on this one.
Hello Mark,
The easiest way I see to do this, and do it correctly without any manual
work each time, is to create a script that reads the text version of the
FAQ and converts carriage returns to <BR> and wraps the hyperlinks with
the appropriate tags. Put the script as the index in your html root for
the faq. Any changes to the text file would be immediate.
It shouldn't be too hard to write that, but someone might come up with a
much easier way.
I used vim to create and maintain this FAQ because I don't want sloppy
wrapping done by the news reader and so vim does a nice job of keeping this
document in a form that posts well to Usenet. I can also use the gq command
and press enter at any time where a paragraph tends to overrun the
boundaries of a good wrap. vim seemed to wrap all lines no longer than 78
and that seems to work out good for posting. I do not know what kind of
carriage return that vim uses, but I don't think that is necessary, the FAQ
posts quite well to Usenet as it is.
The hard part is going to be locating the hyperlinks and then wrapping them
with the appropriate tags. Some kind of scripting guru could no doubt whip
something up, I am quite certain of that, but where does one find this
guru, other than in comp.unix.shell or is there such a utility available in
Linux that could do that for me? Now that would be the answer to all
answers. Thanks for your help.
--
~Ohmster
ohmster at ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
.
- References:
- Prev by Date: Re: Plain text file on web server, questions please...
- Next by Date: Re: Plain text file on web server, questions please...
- Previous by thread: Re: Plain text file on web server, questions please...
- Next by thread: Re: Plain text file on web server, questions please...
- Index(es):
Relevant Pages
|