From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: HTML rendering Date: Fri, 03 Jul 2015 09:24:19 +0300 Message-ID: <83zj3dzrl8.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435904680 19192 80.91.229.3 (3 Jul 2015 06:24:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 06:24:40 +0000 (UTC) Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 03 08:24:28 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZAuOh-00010O-DF for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2015 08:24:27 +0200 Original-Received: from localhost ([::1]:39515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAuOb-0003Pp-Qn for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2015 02:24:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAuOU-0003P0-IV for emacs-devel@gnu.org; Fri, 03 Jul 2015 02:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAuOP-0002IA-M0 for emacs-devel@gnu.org; Fri, 03 Jul 2015 02:24:14 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:52004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAuOP-0002GT-E5 for emacs-devel@gnu.org; Fri, 03 Jul 2015 02:24:09 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NQW00700EPLMC00@mtaout29.012.net.il> for emacs-devel@gnu.org; Fri, 03 Jul 2015 09:23:40 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQW007TRF3GHB10@mtaout29.012.net.il>; Fri, 03 Jul 2015 09:23:40 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187719 Archived-At: > Date: Fri, 03 Jul 2015 10:45:14 +0900 > From: Katsumi Yamaoka > Cc: Lars Magne Ingebrigtsen , > Stefan Monnier > > 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. Please in the future include in the example any libraries that need to be loaded for it to work, for the benefit of those who try the example in "emacs -Q". > 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. You are supposed to set shr-width to nil, I think. Did you try? Anyway, looking at the example, it sounds like some off-by-one error to me: always only one glyph exceeds the window width. I suggest to take a look at the filling calculations.