discuss: linuxdoc text backend


Previous by date: 14 Oct 2005 00:23:03 -0000 Re: August summary, Rahul Sundaram
Next by date: 14 Oct 2005 00:23:03 -0000 Re: linuxdoc text backend, Stein Gjoen
Previous in thread:
Next in thread: 14 Oct 2005 00:23:03 -0000 Re: linuxdoc text backend, Stein Gjoen

Subject: linuxdoc text backend
From: steven aatkinson ####@####.####
Date: 14 Oct 2005 00:23:03 -0000
Message-Id: <20051014002237.12408.qmail@web50513.mail.yahoo.com>

Hi,

I'm curious about the state of the script generated text documents,

which have embedded special characters. The documents only seem

to render properly using "more" and "less -r". Web browsers and most

text viewers present the special chacters in an ugly fashion.

Afaik the "sgml2txt"/"linuxdoc -B text" command doesn't have an option that

correctly removes these special characters and I had to make a sed script to do

so.(The script I use  attached).

Does anyone know about this ? 

Steven Atkinson.

 

 



		
---------------------------------
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

#!/bin/bash
sgml2txt -b 2 "$1"
cat "$1.txt" | sed -e 's/[^m]*m//g' -e 's/.//g' >tmp$$
mv tmp$$ "$1.txt"

Previous by date: 14 Oct 2005 00:23:03 -0000 Re: August summary, Rahul Sundaram
Next by date: 14 Oct 2005 00:23:03 -0000 Re: linuxdoc text backend, Stein Gjoen
Previous in thread:
Next in thread: 14 Oct 2005 00:23:03 -0000 Re: linuxdoc text backend, Stein Gjoen


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