This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] xml to mp3


> 
> I'd love to see (help with?) a docbook to plain text
> stylesheet for accessibility.
> 

DocBook to plain text stylesheet is:

.dbx.html:
	${XSLT} $< ${DBX2HTML_XSL} > $@

.html.txt:
	lynx -dump $< \
	| sed -e '/^References$$/,$$d' \
	     -e '/^ *__* *$$/d' \
	     -e 's/\[[0-9][0-9]*\]//g' \
	     > $@

I am sorry if it looks cryptic, it's from my Makefile.
This reads as 

  first make html
  then run 'lynx -dump'
    and filter out the noise

  I make text-only documentation for my programs using these rules,
    http://ftp.davidashen.net/PreTI/RNV/readme.txt is an example.

David

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]