Article View: news.software.readers
Article #249494[OT][Jeff Relf] Re: slrn can't convert HTML to plain text. ( emails, websites, posts )
From: Peter J Ross
Date: Mon, 26 Mar 2012 18:32
Date: Mon, 26 Mar 2012 18:32
35 lines
2394 bytes
2394 bytes
In news.software.readers on Sun, 25 Mar 2012 22:21:37 -0700 (Seattle),
@Jeff-Relf.Me <> wrote:
> Below is some code ( Jeff-Relf.Me/X.CPP ) I wrote
The code looks hideously obfuscated even by your standards, and that's
saying something.
> to convert HTML to plain text. ( emails, websites, posts )
>
> As simple as it is, slrn can't do it.
Why should slrn (or any other newsreader) want to do it?
Usenet uses plain text. HTML belongs elsewhere.
But if somebody is trollish or stupid enough to use HTML format for a
Usenet article, slrn invokes metamail, which in turn invokes Lynx,
W3M, html2txt or whatever other program is configured to display the
rubbish in whatever style is required.
IOW, slrn *can* convert HTML to plain text (and so, I'm sure, can many
other newsreaders).
But have fun reinventing the wheel. I like the way you've been
devoting your whole life to improving the wheel by making it a bit
more hexagonal.
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Technical Details
Message-ID:
<slrnjn1dhq.nii.pjr@pjr.no-ip.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.alt.netReferences:
<Jeff-Relf.Me@2012_Mar.25^10.21^PM>Show Full Headers
Complete Article Headers
Message-ID: <slrnjn1dhq.nii.pjr@pjr.no-ip.org> Subject: [OT][Jeff Relf] Re: slrn can't convert HTML to plain text. ( emails, websites, posts ) Date: Mon, 26 Mar 2012 18:32:27 +0000 From: Peter J Ross <pjr@example.invalid> References: <Jeff-Relf.Me@2012_Mar.25^10.21^PM> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.alt.net Newsgroups: news.software.readers Organization: none Lines: 35 Reply-To: Peter J Ross <peadar.ruadh@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-No-Archive: Yes User-Agent: slrn/pre1.0.0-18 (Linux) X-Original-Bytes: 2119