🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #260613

Re: Do we really need mime-version, content-type, and content-transfer-encoding headers?

#260613
From: Michael Bäuerle
Date: Fri, 08 Jul 2016 15:06
96 lines
5393 bytes
Adam H. Kerman wrote:
>michael.baeuerle@gmx.net wrote:
>>Adam H. Kerman wrote:
>>>
>>>[...]
>>>trn 4 just expects the user to write modification to the script to any
>>>required headers. If I must add MIME headers, it's manual as I didn't
>>>bother with the script modifications.

>>In the german hierarchy I currently see a trn 4 that fails to handle
>>Unicode based MIME - but is able to quote ISO 8859-1 based MIME articles
>>correctly.

>That's nothing to do with trn 4. That's the way his environment variables
>are set in his text editor and how his terminal emulation is set to
>translate and display the character codes it receives. In any event,
>as I've noted, trn 4 expects the user to supply the correct MIME headers
>to identify the character set in use.

>trn 4 passes along the characters it receives to other processes for
>display. Nothing is built in.

I never used trn, it was just guessed from the articles that it have
produced.

>>flnews is using Unicode internally, but try to label posted content as
>>ISO 8859-1 if possible for backward compatibility. This is also
>>recommended by RFC2046 [1] (last paragraph):

>>| In general, composition software should always use the "lowest common
>>| denominator" character set possible. [...]

>>_________________
>>[1] https://tools.ietf.org/html/rfc2046#section-4.1.2

>Um, I certainly believe in lowest common denominator character sets,
>but the character codes for non-ASCII characters have to be 8 bit and
>not UTF-8 as it's an either/or thing.

>It's also my philosophy to avoid open and close single and double quotes,
>which any number of people post with in lieu of ASCII single and double quote.
>They tend to be the only non-ASCII characters in the message or article.
>It's plain text, not typesetting.

>I've always pointed out that the various ambiguous ASCII characters are
>understood through context and that some of them were also used as
>diacritical marks. The teletypewriter was intended to be instructed to
>perform backspace/overstrike to use them. Yes, I realize that teletypewriter
>terminals are uncommon today.

And today most software doesn't understand Backspace+Overstrike anymore.
The same is true for CR, it it still there before linefeeds, but most
software can't handle single CRs in the historic way anymore.

>UTF has attempted to avoid ambiguous characters, but I've seen no
>shortage of people fail to distinguish between apostrophe and single
>close quote, as an example.

Yes, most of the apostrophe stuff just let it "look better" (or not,
depending on the point of view). But it is not really necessary.

I always use ' and " for german too, although this is typographically
incorrect. But I need at least Umlauts and Eszett, because the ASCII
transcription for Umlauts (Vowel+e) looks ugly and for Eszett it may
be ambigous (there are words like "Masse" which have a completely
different meaning if the "ss" is replaced by Eszett). Some people
write "sz" in this case, but this creates eye cancer.

>Looking things up for the purpose of
>this discussion, I found a note that UTF uses the same code for
>diaresis and umlaut!

Yes, U+0308 (COMBINING DIAERESIS) is used for both purposes. And both
cases should be rendered identically. But Unicode has an option to
encode Umlaut and Diaeresis in a different way, if this is relevant for
the user. This can be done with U+034F (COMBINING GRAPHEME JOINER). In
Unicode Normal Form D (NFD) the letter a + Umlaut is:

   <U+0061, U+0308>

and the letter a + Diaeresis is:

   <U+0061, U+034F, U+0308>

The first codepoint sequence is canonically equivalent to U+00E4 (LATIN
SMALL LETTER A WITH DIAERESIS), the latter is not. Therefore both will
stay different even after normalization.

Note:
Some Unicode names are nonsense here for historical reasons (they were
defined this way in the past and are preserved for compatibility
reasons).

flnews uses Unicode Normal Form C (NFC) and therefore inserts U+00E4 for
my name. This codepoint is the same as in ISO 8859-1 and therefore
no UTF is applied and the MIME label is set to "ISO-8859-1".
Technical Details
Message-ID: <AABXf8FmZmAAADMv.A1.flnews@WStation5.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <nli1e8$hi6$1@news.mixmin.net> <AABXfqRQKo8AAEas.A1.flnews@WStation4.micha.freeshell.org> <nlmes8$oo3$2@news.albasani.net> <AABXf2MrD54AAAfO.A1.flnews@WStation5.stz-e.de> <nlobd6$eij$1@news.albasani.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABXf8FmZmAAADMv.A1.flnews@WStation5.stz-e.de>
Subject: Re: Do we really need mime-version, content-type, and content-transfer-encoding headers?
Date: Fri, 8 Jul 2016 17:06:14 +0200
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
References: <nli1e8$hi6$1@news.mixmin.net> <AABXfqRQKo8AAEas.A1.flnews@WStation4.micha.freeshell.org> <nlmes8$oo3$2@news.albasani.net> <AABXf2MrD54AAAfO.A1.flnews@WStation5.stz-e.de> <nlobd6$eij$1@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Lines: 96
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net gqwandSP7I+m7jltmjnhAQ5Zg7tSKkk+V2vJV6iT0pYjmgMizZ
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:2ML6Po5dGKucEPaFhN2cc71JigY= sha1:6fqFNpPvCasYRy1X0XmkIHmErH8=
Injection-Date: Fri, 8 Jul 2016 15:06:14 -0000
User-Agent: flnews/0.14pre42 (for NetBSD)
X-Received-Bytes: 5204
X-Received-Body-CRC: 1458515638