From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Rendering HTML Date: Sat, 18 Sep 2010 22:06:18 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284840398 19506 80.91.229.12 (18 Sep 2010 20:06:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 20:06:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 22:06:37 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox3gC-0004QO-Rq for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 22:06:37 +0200 Original-Received: from localhost ([127.0.0.1]:40286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox3gC-0006Qc-BA for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 16:06:36 -0400 Original-Received: from [140.186.70.92] (port=57589 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox3g7-0006QX-0K for emacs-devel@gnu.org; Sat, 18 Sep 2010 16:06:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox3g3-0006pe-E9 for emacs-devel@gnu.org; Sat, 18 Sep 2010 16:06:30 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36341) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox3g3-0006pY-3C for emacs-devel@gnu.org; Sat, 18 Sep 2010 16:06:27 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ox3g2-0004MM-IK for emacs-devel@gnu.org; Sat, 18 Sep 2010 22:06:26 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 22:06:26 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 22:06:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVBS1UmKjAvO0kLDxSk nogcHSMa6Z2PAAACUklEQVQ4jV2TwdLaMAyEFf/hbiX13TblTurmbhj3jkn1/q/SlZwynWqGAPmi lbRWiDRcji7nzLxQZpEuwjRAzNlATKLBHSCOlJyUOA6soSBbTh6Bb9WcRFRmpBiL7F0SliDjcbC5 NX0Wv/LaUV1L4Ibeb+QYCX4K0pExSlCzSNYZ70UUzNTqPMBzSaEv1rGCVuu432oKwgG3e9DCUK+n ls4RDpFdBmjTt78AtuCjXTnVf5xFXE4cwqhhGW2A+lRf5B8pnQKwPtUoNGAZuX3i+TALQ5eurlmK dVxJSwS2GurpJ8Ultp5swJzrB0za7QIS0G72dZ5P5paUOGF+lVq+10bmu3oyqgerMc8ANnuFv1ZE vQLAEJS6utnqMARnrk1RFjYQ53ZmMPGSI56j229I+flsOCzEnrREDRCcMJCZgiAs0Iye6ntuj40+ fTG9XFTg3kRf23weCSemvnoDHeCloNpZBRKv09EEyYufT1s6C71b1VW8YfUe3sZ/2pHQq9ICENZl fqIONglauol3DI0S5fCYRnMVqIne61pfynFvj55sK5EBr2Ii5+m6HT8B0E/EBoceYKIoOHy5Y0F7 5xjTcDeUF2XXL2W7iK55hlmhY46jbJQmv677r85l7wtWTlgHLAUv0fTjWh67lF2PQjeRaS9IcYzM XbdD7ehahArizfEK8AqyA9y6vugGCgdc9pccqG5KRxlgxFaK4IVSxfI/6DwyPlKrXvtalkWX7dgH 2MmhqXJsV4l0Q0v4Y+AF476KzsA09cWkrIaez5dpRddzDib1BzNqsw2oD/iOAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Joni Mitchell's _Both Sides Now_: "Don't Worry 'Bout Me" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ARuOLvOuNdgbMhboCJpISfnlIn4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130450 Archived-At: The next think I thought I'd tackle (after a couple more weeks of polishing up the recent changes to Gnus) is writing a very simple HTML renderer for Emacs. I'm not very ambitious here at all -- just something that will make simple, non-CSS-ey HTML (like what you find in emails and RSS entries) look OK. Since we have the HTML parser in Emacs, most of the HTML rendering is trivial (I mean, doing stuff like , ,
, etc). The one challenging (well, challenging to me) thing is actually how to do tables. You have stuff like
... So you have all these boxes inside of boxes, with some constraints that are absolute, and others that are relative (% and getting the width of a box depending on what it contains and how you break the text in the box), and so on. So before I give my brain a strain trying to think about this, has anybody else done something like this? Either code that can be included in Emacs, or other Lisp code that I can peek at, or, failing all that, just somebody who has written something about how to approach this? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen