all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: emacs-devel@gnu.org
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: HTML rendering
Date: Fri, 03 Jul 2015 10:45:14 +0900	[thread overview]
Message-ID: <b4mvbe2rp3o.fsf@jpl.org> (raw)
In-Reply-To: jwvegkqv99o.fsf-monnier+emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

On Thu, 02 Jul 2015 12:03:20 -0400, Stefan Monnier wrote:
> I don't use EWW very much, but I often use SHR via Gnus and I must say,
> I really like the new proportional-font rendering.

> Thanks Lars,

I've set shr-use-fonts to nil unwillingly because mm-shr fills
Japanese text into lines that are always longer than the window
width.  An example reproducing it is below.  Even for English
text (filled shorter than the window width), lines can get too
long depending on the font Emacs chooses.  Is there a way to help
it?  Setting shr-width is helpless since mm-shr overrides it.

Thanks.


[-- Attachment #2: Type: application/emacs-lisp, Size: 732 bytes --]

(let ((shr-use-fonts t)
      (temp (get-buffer-create "*shr-temp*"))
      (test (get-buffer-create "*shr-test*"))
      handle)
  (with-current-buffer temp
    (erase-buffer)
    (set-buffer-multibyte nil)
    (insert (encode-coding-string
	     "寿限無寿限無五劫の擦り切れ海砂利水魚の水行末雲来末風来末食う寝る処に住む処やぶら小路の藪柑子パイポパイポパイポのシューリンガンシューリンガンのグーリンダイグーリンダイのポンポコピーのポンポコナーの長久命の長助\n"
	     'utf-8)))
  (setq handle `(,temp ("text/html" (charset . "utf-8"))
		       nil nil nil nil nil nil))
  (pop-to-buffer test)
  (erase-buffer)
  (mm-shr handle))

  reply	other threads:[~2015-07-03  1:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-02 16:03 HTML rendering Stefan Monnier
2015-07-03  1:45 ` Katsumi Yamaoka [this message]
2015-07-03  6:24   ` Eli Zaretskii
2015-07-06  0:54     ` Katsumi Yamaoka
2015-07-06  2:38       ` Eli Zaretskii
2015-07-06  4:37         ` Katsumi Yamaoka
2015-07-06 16:56           ` Eli Zaretskii
2015-08-30 11:44             ` Lars Magne Ingebrigtsen
2015-07-06 12:32   ` Michael Heerdegen
2015-07-06 17:05     ` Eli Zaretskii
2015-07-06 20:35       ` Michael Heerdegen
2015-07-08 18:19       ` Michael Heerdegen
2015-08-30 11:47   ` Lars Magne Ingebrigtsen
2015-08-30 14:51     ` Eli Zaretskii
2015-08-30 15:45       ` Michael Heerdegen
2015-08-30 16:40         ` Eli Zaretskii
2015-08-30 11:42 ` Lars Magne Ingebrigtsen

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=b4mvbe2rp3o.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.