From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72954 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: A little idea for shr and table Date: Mon, 11 Oct 2010 21:18:09 +0200 Message-ID: <87eibwczda.fsf@randomsample.de> References: <87iq18czvi.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286824743 2791 80.91.229.12 (11 Oct 2010 19:19:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2010 19:19:03 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21326@lists.math.uh.edu Mon Oct 11 21:19:02 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P5Ntk-0002EC-CG for ding-account@gmane.org; Mon, 11 Oct 2010 21:19:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P5NtR-000464-67; Mon, 11 Oct 2010 14:18:41 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P5NtP-00045j-Nn for ding@lists.math.uh.edu; Mon, 11 Oct 2010 14:18:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P5NtK-0000Nq-Gz for ding@lists.math.uh.edu; Mon, 11 Oct 2010 14:18:39 -0500 Original-Received: from v3-1008.vxen.de ([79.140.41.8]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P5NtJ-0006Ho-00 for ; Mon, 11 Oct 2010 21:18:33 +0200 Original-Received: from dslc-082-082-178-139.pools.arcor-ip.net ([82.82.178.139] helo=spaten) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1P5NtI-0005Zh-JE for ding@gnus.org; Mon, 11 Oct 2010 21:18:32 +0200 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 11 Oct 2010 21:10:53 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72954 Archived-At: Lars Magne Ingebrigtsen writes: > David Engster writes: >> I've played around with it to get a nicer image display and smoother >> scrolling for emacs-w3m, but I gave up (the funny thing is that w3m is >> using exactly this technique when running in a terminal). But it is >> very difficult to do right in Emacs since you have to take into >> account the font height, line-spacing, etc. > > But slicing the images will probably always give a better result in > shr, since we're not actually displaying images side-by-side with text. > I'll try playing with this... Note that insert-sliced-image will give you gaps with a line-spacing>1. You don't have to override the line-spacing for the whole buffer, though; you can set the line-height text property on the newlines in the sliced-image area instead (I've written a small function for this; see http://www.randomsample.de/dru5/node/24). -David