Gnus development mailing list
 help / color / mirror / Atom feed
From: Julien Danjou <julien@danjou.info>
To: ding@gnus.org
Subject: A little idea for shr and table
Date: Mon, 11 Oct 2010 18:59:36 +0200	[thread overview]
Message-ID: <sa3k4lor7gn.fsf@cigue.easter-eggs.fr> (raw)

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

Hi there,

I've used mm-shr for the last couple of days and I'm happy with it.

I'm just sad to see that there's no images in the tables. But i've got
a little idea that could work.

I heard that Ted had some code to create SVG images on the fly. That
could be used to just draw a couple of fixed size images to build the
table (equivalent to the current |, -, +). Since we can't know the size
of a char, we would know the size of the image we draw here to build the
table borders.

Then, it'd be possible to build table with the right column width and
line height to match all embedded images, and therefore draw a cute
table.

Using something like (propertize "" 'display '(space . (:width 100))),
we may be able to even draw borderless tables for free.

Yeah, I could probably give it a try, but I think that if Lars like the
idea he might want to play with it himself or just say "that won't
work". ;-)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

             reply	other threads:[~2010-10-11 16:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11 16:59 Julien Danjou [this message]
2010-10-11 18:39 ` Lars Magne Ingebrigtsen
2010-10-11 19:07   ` David Engster
2010-10-11 19:10     ` Lars Magne Ingebrigtsen
2010-10-11 19:18       ` David Engster
2010-10-11 19:21       ` Lars Magne Ingebrigtsen
2010-10-11 19:25         ` David Engster
2010-10-11 19:35   ` Julien Danjou
2010-10-11 19:38     ` Lars Magne Ingebrigtsen
2010-10-12 14:10       ` Ted Zlatanov
2010-10-12 14:27         ` Lars Magne Ingebrigtsen
2010-10-11 19:07 ` Ted Zlatanov
2010-10-12 12:48 ` Štěpán Němec
2010-10-12 20:44   ` James Cloos

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=sa3k4lor7gn.fsf@cigue.easter-eggs.fr \
    --to=julien@danjou.info \
    --cc=ding@gnus.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).