![]()
>> QUESTION: How does one manage to maintain only *one* 'rich-text' document
>> and draw both HTML and plain ascii documents from it?
>>
>> I could of course format it all in HTML and have Netscape save it to ASCII,
>> but I would like the Web-FAQ to contain lots of links, and I would not like
>> to have these links or other web-stuff show up in the ASCII version. Simply
>> cutting them out later by hand would leave me with many half lines, so
>> that's no solution.
Thank heaven for a post about something other than line lengths.
I don't know whether this is a viable solution for Lars, but what I do
is keep the source document in HTML. I then pipe it through a filter
to change some of the HTML stuff before saving it from a browser as
ASCII text. I attach the filter which I use on a UNIX system. To see
it in action, view the HTML source of my FAQ on my WWW Ambisonic page.
I use the Mosaic browser to save the ASCII text because this allows
control of the line length (oh no, not the line length!) - you simply
adjust the width of the browser window before saving. Mosaic also
allows you to create formatted text which I prefer to Netscape's
unformatted text. I use the Netscape browser to save in PostScript
as it is much superior to Mosaic's PostScript. Many, many people
print out FAQs, so I believe it is worthwhile to offer a PostScript
version via anonymous FTP.
Have fun,
Martin
E-mail: mleese@omg.unb.ca
WWW: http://www.omg.unb.ca/~mleese/
______________________________________________________________________
Want to know how Ambisonics can improve the sound of your LPs and CDs?
Read the Ambisonic Surround Sound FAQ. Version 2.7 now on my WWW page.
______________________________________________________________________
#! /bin/sh
#
sed -e '/<!-- BEGIN DELETE -->/,/<!-- END DELETE -->/d' \
-e 's/<!-- BEGIN INSERT //g' \
-e 's/ END INSERT -->//g' \
faq_v2_7.html > faq_temp.html
#
______________________________________________________________________
[
Usenet Hypertext FAQ Archive |
Search Mail Archive |
Authors |
Usenet
]
[
1993 |
1994 |
1995 |
1996 |
1997
]
![]()
© Copyright The Landfield Group, 1997
All rights reserved