From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Does shr support HTML directional attributes?
Date: Tue, 05 May 2015 02:59:43 +0200 [thread overview]
Message-ID: <m3wq0nltz4.fsf@gnus.org> (raw)
In-Reply-To: <83sibcs2ki.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 May 2015 19:57:33 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> I've just got a (spam) mail in Arabic whose portions were displayed
> left-aligned, which is not what the HTML payload wanted (it used
> dir=RTL and style='margin-right:.5in;text-align:right...'), which
> AFAIU should have caused the text rendered as right-to-left paragraph.
>
> Does shr support these attributes?
Nope; shr doesn't support the "dir" attribute in elements. I think
there used to be support for the text-align style attribute in <td>
cells, but looking at shr.el now, that seems to have been lost during
the variable-width font rewrite.
shr is a pretty minimal HTML renderer -- it tries to be fast enough for
most web pages, but it doesn't try very hard to be an accurate HTML
renderer. There's tons of stuff it doesn't support, because it'd be too
slow. If you find a way to support those two elements without affecting
the general rendering speed, please go ahead and add support for them.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2015-05-05 0:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 16:57 Does shr support HTML directional attributes? Eli Zaretskii
2015-05-05 0:59 ` Lars Magne Ingebrigtsen [this message]
2015-05-05 15:50 ` Eli Zaretskii
2015-05-06 20:57 ` Lars Magne Ingebrigtsen
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=m3wq0nltz4.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.