From: Robin Tarsiger <rtt@dasyatidae.com>
To: emacs-devel@gnu.org
Subject: Re: [RFC] MIME attachments for comint
Date: Tue, 28 Sep 2021 11:29:13 -0500 [thread overview]
Message-ID: <3d379fc9-553f-ad15-5b05-6a3c4729d9b0@dasyatidae.com> (raw)
In-Reply-To: <87sfxolm12.fsf@gmail.com>
Augusto Stoffel wrote:
> The following example
>
> <table style="text-align: right">
> <tr style="text-align: right"><td>A</td><td>1.0</td></tr>
> <tr><td style="text-align: right">AA</td><td>10.0</td></tr>
> <tr><td>AAA</td><td>100.0</td></tr>
> </table>
>
> renders like this:
>
> A 1.0
> AA 10.0
> AAA 100.0
>
> Is there any other syntax for text alignment in HTML?
There's the pre-CSS align="right" property style. Also valign for
vertical-align.
I notice that shr doesn't have anything close to a full CSS parser
to start with, which is understandable given the complexity of such
a thing. However, note that in a full document, it's also reasonable
in an HTML context to do something like
<style>
table.foo td.bar { text-align: right }
table.foo td.baz { text-align: center }
</style>
<!-- ... -->
<table class="foo">
<tr><td class="bar">A</td><td class="baz">III</td><td class="baz">XII</td></tr>
<tr><td class="bar">B</td><td class="baz">XIV</td><td class="baz">VII</td></tr>
</table>
where the alignments cannot be inferred from a purely local
traversal. I don't know how many people do this, but I do when
I'm outputting HTML tables with known record formats, because
it makes it much easier to restyle the types/columns as needed
(that being the purpose of CSS in the first place).
I'm curious what your likely HTML sources are going to be for this,
since if you try to subset the above at all then what you need to
support becomes very dependent on what the generators are like.
-RTT
next prev parent reply other threads:[~2021-09-28 16:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 19:00 [RFC] MIME attachments for comint Augusto Stoffel
2021-09-27 20:37 ` Stefan Monnier
2021-09-28 16:05 ` Augusto Stoffel
2021-09-28 19:26 ` Stefan Monnier
2021-09-30 6:02 ` Richard Stallman
2021-09-30 7:09 ` Augusto Stoffel
2021-10-02 23:17 ` Richard Stallman
2021-10-03 7:48 ` Augusto Stoffel
2021-10-04 22:23 ` Richard Stallman
2021-09-30 8:49 ` Gregory Heytings
2021-10-04 22:25 ` Richard Stallman
2021-09-30 7:34 ` Colin Baxter
2021-09-28 5:36 ` Lars Ingebrigtsen
2021-09-28 16:09 ` Augusto Stoffel
2021-09-28 16:29 ` Robin Tarsiger [this message]
2021-09-28 18:22 ` Augusto Stoffel
2021-09-29 5:35 ` Lars Ingebrigtsen
2021-10-17 16:20 ` Stefan Monnier
2021-10-17 16:32 ` Stefan Monnier
2021-10-18 8:22 ` Augusto Stoffel
2021-10-18 16:44 ` comint-mime and loccur update (was: [RFC] MIME attachments for comint) Stefan Monnier
2021-10-20 12:17 ` Alexey Veretennikov
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=3d379fc9-553f-ad15-5b05-6a3c4729d9b0@dasyatidae.com \
--to=rtt@dasyatidae.com \
--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.