Article View: news.software.readers
Article #264284Re: trn 4 and UTF-8
From: Adam H. Kerman
Date: Wed, 05 Aug 2020 18:44
Date: Wed, 05 Aug 2020 18:44
63 lines
3433 bytes
3433 bytes
Eli the Bearded <*@eli.users.panix.com> wrote: >Adam H. Kerman <ahk@chinet.com> wrote: >>Eli the Bearded <*@eli.users.panix.com> wrote: >>>1. As distributed, it has a bug stripping highbit control characters >>> which munge UTF-8. The hack fix is use -j to disable all control >>> character filtering. Real fix is to disable highbit control >>> character filtering: >>I didn't know that. Thank you for bringing it to my attention. >Not the first time I've posted that patch here because I think it needs >more attention. Could I request that you upload it to Github? I dunno if it's still possible to bring things to Wayne's attention after all these years. >>>2. When reading articles not in US-ASCII or the local encoding, trn >>> makes no attempt to convert characters to the local encoding, but >>> just dumps them to the screen. Typically (for me) this means >>> ISO-8859-1 being sent raw to my UTF-8 system. >>I want this as a feature. I refuse to use UTF-8 to send typographical >>punctuation characters and especially nonbreaking whitespace, neither of >>which belong in plain text communication. As much as possible, I >>substitute genuine ASCII for typographical punctuation characters, and a >>genuine whitespace character for nonbreaking whitespace. >I've modified my local copy of Pnews to check article encoding. What I really need to get around to doing is to write a macro for use within the composer. I'm using vim as text editor. I want to catch it before it's sent to Pnews. There must be a process in trn that quotes the precursor article when first starting the composer. That's the point at which I'd want parsing for non-ASCII characters. >. . . Thanks for the work you've done on those scripts. >>>3. Anywhere trn does string length checks (subject and from in newsgroup >>> listings, headers and body lines in posts, warnings about lines too >>> long when posting), those checks are not UTF-8 aware. >>That's to be expected, but I'd hope I'm not coming anywhere close to the >>998 character ceiling in which that would be an issue. >It's a lot of cosmetic problems. Columns don't line up, lines wrap too >soon, lines "over" 80 characters in post bodies trigger warnings. In the body of the article, of course. >>Here's something I don't know: >>If I were complying with the standard, checking Subject for line length >>as an example, is it against the encoded non-ASCII characters, or after >>decoding? Now, that would make a substantial difference in the count. >The 998 line length rule applies to the encoding as used in NNTP. . . . That's what I wondered. Thank you for explaining it.
Technical Details
Message-ID:
<rgeulo$dmu$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<rganif$m4h$1@neodome.net> <eli$2008051309@qaz.wtf> <rgeqfo$6qp$2@dont-email.me> <eli$2008051347@qaz.wtf>Show Full Headers
Complete Article Headers
Message-ID: <rgeulo$dmu$1@dont-email.me> Subject: Re: trn 4 and UTF-8 Date: Wed, 05 Aug 2020 18:44:08 +0000 From: "Adam H. Kerman" <ahk@chinet.com> References: <rganif$m4h$1@neodome.net> <eli$2008051309@qaz.wtf> <rgeqfo$6qp$2@dont-email.me> <eli$2008051347@qaz.wtf> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Lines: 63 Injection-Date: Wed, 5 Aug 2020 18:44:08 -0000 (UTC) Organization: A noiseless patient Spider Newsgroups: news.software.readers Cancel-Lock: sha1:mBbJzEtrMhdvk56hZb0thettT/M=