Re: Plain text file on web server, questions please...



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.
.



Relevant Pages

  • MJFAQs - many updates
    ... FAQ 4a - Changed the email address of a Los Angeles teacher. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • MarCheuk FAQs
    ... FAQ 5 - Added link to Andrew Feist's page about how to make Four Winds' ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Mah Jongg FAQs
    ... FAQ 25 - Deleted a broken example that I couldn't figure out how to fix. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Mah-Jongg FAQs updated
    ... FAQ 7f - Added a site that makes an American mah-jongg table expander. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Mah-Jongg FAQs updated
    ... FAQ 4a - Added a teacher listing. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)