From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73119 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Truncating lines in the article buffer Date: Thu, 14 Oct 2010 12:00:19 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87lj60vhek.fsf@lifelogs.com> References: <87zkuh3gfb.fsf@blah.blah> <87hbgox141.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287075651 19582 80.91.229.12 (14 Oct 2010 17:00:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 17:00:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21491@lists.math.uh.edu Thu Oct 14 19:00:49 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 1P6RAf-0002QN-1U for ding-account@gmane.org; Thu, 14 Oct 2010 19:00:49 +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 1P6RAT-0000XR-AS; Thu, 14 Oct 2010 12:00:37 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P6RAR-0000X5-Gi for ding@lists.math.uh.edu; Thu, 14 Oct 2010 12:00:35 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P6RAN-0003mP-Bv for ding@lists.math.uh.edu; Thu, 14 Oct 2010 12:00:35 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P6RAM-0004Tq-00 for ; Thu, 14 Oct 2010 19:00:30 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P6RAM-0002HT-FY for ding@gnus.org; Thu, 14 Oct 2010 19:00:30 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Oct 2010 19:00:30 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Oct 2010 19:00:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:oBQvwSipqR2xPI6pi4U/YjXANms= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73119 Archived-At: On Thu, 14 Oct 2010 18:24:35 +0200 Lars Magne Ingebrigtsen wrote: LMI> Ted Zlatanov writes: >> Consider using SVG to render the tables. It's scalable (including the >> fonts) so the image will look good at any resolution (if the pixel count >> allows it). It's really easy to insert PNG and JPEG images too. See >> this for some good examples: LMI> You mean render the entire table as a picture? No, I don't want that. LMI> Emacs is about text, and if you can't display the HTML as text, it's not LMI> Emacs. (Kill/yank/click links, etc.) LMI> Besides, Emacs totally, utterly sucks at displaying images, and tables LMI> used for layout are usually big. As in, the entire page is inside LMI> nested tables. Then you can't render HTML accurately with the current approach. You're fighting Emacs at every step: the text layout is hard, you can't flow around images, displaying images is a pain, etc. Maybe we're approaching this wrong because we think a table should be displayed like HTML does. How about unwrapping tables into lists? So this (a 2x2 table with headers H1 and H2): H1 H2 [aaa|bbb] [ccc|ddd] gets rendered as * H1 ** aaa ** ccc * H2 ** bbb ** ddd (I've skipped out the obvious nesting example since it's simply a nested list.) That gives you a lot more horizontal space and laying out the text even in nested situations becomes trivial (you always have a full line for the table cell). The image-text flow problem is eliminated. We'll need a keybinding to flip columns/rows I think, but otherwise this is a pretty good *view* of the table, even if it's not an accurate *rendering*. More importantly, it provides something usable right now and as the Emacs display engine gets improved it can be improved too. Ted