discuss: linuxdoc text backend


Previous by date: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend (FIXED), ldp.fergusontechgroup.com
Next by date: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend, ldp.fergusontechgroup.com
Previous in thread: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend, Frank Lichtenheld
Next in thread: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend, ldp.fergusontechgroup.com

Subject: Re: [discuss] linuxdoc text backend
From: David Lawyer ####@####.####
Date: 20 Oct 2005 22:52:40 -0000
Message-Id: <20051020225138.GB1960@lafn.org>

> > On Mon, Oct 17, 2005 at 05:52:08AM -0700, ####@####.#### wrote:
> >> sgml2html -c ascii <file>
> >> is how the script does it (for linuxdoc)
> David Lawyer wrote:
> > You must mean sgml2txt -c latin -f
> >
On Wed, Oct 19, 2005 at 03:27:55PM -0700, ####@####.#### wrote:
> No, its as I stated: sgml2html -c ascii <file>
> I'm looking at the script.

It's: sgml2txt -c latin -f 
The above generates text output while sgml2html generates html output
and the -c ascii flag says to use ascii characters in the .html
output.  But it's still html with all the html tags.

In your next post I guess you realized this and used a sed script to
eliminate the escape sequeces generated by grotty when using sgml2txt.
Note sgml2txt really means linuxdoc2txt and many people associated
with LDP used to say "sgml" to mean "linuxdoc" .  Hence sgml2txt??
The intention may have been to extend sgml2txt software to handle
other types of sgml, such as docbook-sgml, but it never happened.

As to the sed script, I showed that using sgml2txt --pass="-P-bc" will
fix the problem and also eliminate overstrikes which are currently
filtered out by using the -f flag.  You don't need to use -c ascii as
it's the default.

			David Lawyer

Previous by date: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend (FIXED), ldp.fergusontechgroup.com
Next by date: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend, ldp.fergusontechgroup.com
Previous in thread: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend, Frank Lichtenheld
Next in thread: 20 Oct 2005 22:52:40 -0000 Re: linuxdoc text backend, ldp.fergusontechgroup.com


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.