[mew-int 00383] Re: Korean on Mew

Kazu Yamamoto ( 山本和彦 ) kazu at example.com
Mon Jul 9 19:25:58 JST 2001


Choi, 

I can finally view all three messages you sent to me "inline".
# Japanese and Korean can co-exist, finally for HTML.

From: Kazu Yamamoto (山本和彦) <kazu at example.com>
Subject: [mew-int 00381] Korean on Mew

> (4) With w3m.el and w3m, HTML portions are displayed "inline". With
>     Emacs 21, imaged in Multipart/Related can be "inline".
> 
>     It seems to me that "w3m" supports only Japanese. I heard that
>     "w3mmee" is m17ned. I need to try this and will report it to you.

(a) Install "w3m" with two patches.

	- ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/w3m-0.2.1.tar.gz
	- http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/w3m-0.2.1-m17n-0.19.patch.gz
	- http://www.kame.net/~kazu/w3m-m17n.patch

(b) Install emacs-w3m

	% cvs -d :pserver:anonymous at example.com:/storage/cvsroot login
	% cvs -d :pserver:anonymous at example.com:/storage/cvsroot co emacs-w3m

In mew-w3m.el, replace the original with the following:

(defun mew-mime-text/html-w3m (begin end)
  "View Text/Html contents with w3m rendering output."
  (save-excursion
    (let ((w3m-display-inline-image mew-w3m-auto-insert-image)
	  w3m-force-redisplay	;; don't redraw
	  charset wcs)
      (mew-elet
       (setq charset (mew-charset-guess-region begin end))
       (if charset
	   (setq wcs (mew-charset-to-cs charset))
	 (setq wcs "ascii"))
       (let ((w3m-input-coding-system wcs)
	     (w3m-output-coding-system wcs)
	     (w3m-halfdump-command-arguments
	      (append (list "-I" charset "-O" charset
			    "-o" "ext_halfdump=1"
			    "-o" "pre_conv=1"
			    "-o" "strict_iso2022=0")
		      w3m-halfdump-command-arguments)))
	 (w3m-region begin end)))
      (put-text-property begin (1+ begin) 'w3m t))))

(c) Put the following to your .emacs

(condition-case nil
    (require 'mew-w3m)
  (file-error nil))
(setq mew-mime-multipart-alternative-list
      '("Text/Html" "Text/Plain" ".*"))

P.S.

You can view an HTML part by both netscape and "inline" at the same
time.

--Kazu



More information about the Mew-int mailing list