l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2002 Jun 21 00:12

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
RE: [vox-tech] docbook to text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [vox-tech] docbook to text



No guarantees but have you seen this page?
http://www-106.ibm.com/developerworks/library/l-docbk.html#h9

Quote"
Exporting to plain text
DocBook also supports plain-text documents. To render a plain ASCII-text
document, use the following command:

sgmltools -b txt filename.sgml
End quote"

Overall it looks like a nice article.
http://www-106.ibm.com/developerworks/library/l-docbk.html

-sp

> -----Original Message-----
> From: vox-tech-admin@lists.lugod.org 
> [mailto:vox-tech-admin@lists.lugod.org] On Behalf Of Peter Jay Salzman
> Sent: Thursday, June 20, 2002 9:51 AM
> To: vox-tech@lists.lugod.org
> Subject: [vox-tech] docbook to text
> 
> 
> i'm trying to convert docbook sgml to text, and am having a 
> terrible time of it:
> 
> 
> 
> i tried using sgml2txt, but it complained that it didn't know 
> how to handle docbook.  it suggested that i use jade.
> 
> ok.
> 
> reading through jade's help files, it appears that jade 
> doesn't know how to convert sgml to text.  this is starting 
> to feel like UC davis's bureacracy.
> 
> ok.
> 
> i can convert docbook to html (obviously), so i try 
> html2text.  the results have wierd underscoring things in it. 
>  reading through the docs, there's a -nobs option which 
> produces pure text.
> 
> ok.
> 
> i try html2text with -nobs.  the results stink.  the 
> formating is all wrong.  there *should* be a blank line 
> between an <H[1-4]> line and the following text.  verbatim 
> text is all screwed up.
> 
> ok.
> 
> after some searching, i find 'man html2textrc'.   yuck.  i _really_
> don't want to read through this.  the rc file is complicated. 
>  i don't want to spend this amount of time for something as 
> simple as converting html to text.  i shouldn't have to spend 
> more than 5 minutes on such a simple operation.
> 
> ok.
> 
> i can convert man pages to text, so i use docbook-to-man and 
> convert the sgml file to a man page.  the results are worse 
> than awful.  it's completely unreadable.
> 
> 
> 
> are you feeling my pain yet?  this should be simple, and it's 
> turning out to be a nightmare.
> 
> does anyone have any ideas on how to convert a docbook file to text?
> 
> alternatively, if anyone has an .html2textrc file suitable 
> for FAQ style documents, i'd love to have a copy of your dotfile.
> 
> pete
> 
> 
> --
> GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
> 
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org 
> http://lists.lugod.org/mailman/listinfo/vox-> tech
> 

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.