[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BEGIN_SRC..END_SRC
From: |
Stephen J. Turnbull |
Subject: |
Re: BEGIN_SRC..END_SRC |
Date: |
Thu, 10 May 2012 22:05:37 +0900 |
René Kyllingstad writes:
> What is the MIME approach to handling text that is perfectly fine to
> display plainly, but can be optionally enhanced with for example syntax
> highlighting?
The MIME approach is to *define* "text" as "content that is perfectly
fine to display plainly"!
>From RFC 2046:
Beyond plain text, there are many formats for representing what might
be known as "rich text". An interesting characteristic of many such
representations is that they are to some extent readable even without
the software that interprets them. It is useful, then, to
distinguish them, at the highest level, from such unreadable data as
images, audio, or text represented in an unreadable form. In the
absence of appropriate interpretation software, it is reasonable to
show subtypes of "text" to the user, while it is not reasonable to do
so with most nontextual data.
Later it defines text/plain, and imposes the requirement that if the
MUA encounters a text/whatever it doesn't understand, it should treat
it as text/plain (unless it can't determine the character set).
This is exactly what you said, translated to RFC-ese. Unusually sane
for an RFC. ;-)
> Are MUAs supposed to have a list of all of them?
Yes! In the sense that if the MUA wants to do something special with
the subtypes of text, then it needs to know what they all are. If it
doesn't care, it should treat them all as text/plain.
> Wouldn't it be better with "Content-type: text/plain/elisp" or some such?
The "plain" is redundant, because all subtypes of text fall back to
text/plain anyway.
- Re: BEGIN_SRC..END_SRC, (continued)
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Yann Hodique, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Yann Hodique, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Miles Bader, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/14
- Re: BEGIN_SRC..END_SRC, Davis Herring, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/14
- Re: BEGIN_SRC..END_SRC, René Kyllingstad, 2012/05/10
- Re: BEGIN_SRC..END_SRC,
Stephen J. Turnbull <=
- Re: BEGIN_SRC..END_SRC, René Kyllingstad, 2012/05/10
- Re: BEGIN_SRC..END_SRC, Stephen J. Turnbull, 2012/05/14
- Re: BEGIN_SRC..END_SRC, Ted Zlatanov, 2012/05/16
- Re: BEGIN_SRC..END_SRC, Tassilo Horn, 2012/05/09
- Re: BEGIN_SRC..END_SRC, Tassilo Horn, 2012/05/09
- Re: BEGIN_SRC..END_SRC, Stefan Monnier, 2012/05/09
- Re: BEGIN_SRC..END_SRC, Eli Zaretskii, 2012/05/09
- Re: BEGIN_SRC..END_SRC, Tassilo Horn, 2012/05/09
- Re: BEGIN_SRC..END_SRC, Peter Münster, 2012/05/09
- Re: BEGIN_SRC..END_SRC, Stefan Monnier, 2012/05/09