Gnus development mailing list
 help / color / mirror / Atom feed
From: Leo <sdl.web@gmail.com>
To: ding@gnus.org
Subject: Re: inline viewing can't display CJK characters
Date: Mon, 04 Jun 2007 10:17:13 +0100	[thread overview]
Message-ID: <m2lkf0qdt2.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: <b4mira4qtg6.fsf@jpl.org>

----- Katsumi Yamaoka (2007-06-04) wrote:-----

>> To see the problem, go to the attachment in this post, hit 'E' and you
>> will see garbled characters.
>
> Because the supertype of that part is `application', not `text', Gnus
> considers there is no human readable text in it.  It is decoded only
> by base64, as the part specifies.

Ah, thanks for the explanation. TeX files have a mimetype
"application/x-tex" and "elisp" files have a mimetype
"application/emacs-lisp" as defined in /etc/mime.types. So when I
attached test.el Gnus automatically picked up "application/emacs-lisp".

>> Content-Type: application/emacs-lisp
>> Content-Disposition: attachment; filename=test.el
>> Content-Transfer-Encoding: base64
>> Content-Description: test.el
>
> OTOH, `2 K i' or `i' on the button shows the decoded Chinese
> text, because the `i' command is for the use of ``View As Text,
> In This Buffer''.

Command `K i' exists in article buffer, but does not work properly.
Try to use this command in article buffer will cause an error:

,----
| Debugger entered--Lisp error: (error "No article is displayed")
|   signal(error ("No article is displayed"))
|   error("No article is displayed")
|   gnus-article-part-wrapper(3 gnus-mime-inline-part)
|   gnus-article-inline-part(3)
|   call-interactively(gnus-article-inline-part)
|   gnus-article-read-summary-keys(3)
|   call-interactively(gnus-article-read-summary-keys)
`----

> Only with No Gnus, you can add the coding cookie to such a file
> in order to specify the charset MIME parameter.  For examples:
> 
> What handles such a parameter of an `application' MIME part
> might be only No Gnus, though.
>
> Or it might be better to use `text/emacs-lisp' instead, though
> I'm not sure such a type is widely known, either.

It appears that mailcap does not define such mimetype. A bug in mailcap?

>
> Regards,

Thanks,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)




  reply	other threads:[~2007-06-04  9:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04  1:10 Leo
2007-06-04  2:06 ` ssSslang
2007-06-04  2:42   ` Leo
2007-06-04  3:02     ` ssSslang
2007-06-04  3:39 ` Katsumi Yamaoka
2007-06-04  9:17   ` Leo [this message]
2007-06-04 10:03     ` Katsumi Yamaoka
2007-06-05  9:32       ` Katsumi Yamaoka
2007-06-05 10:01         ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2lkf0qdt2.fsf@sl392.st-edmunds.cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).