Page MenuHomePhabricator

Make pipermail show RTL emails better by emitting dir=auto
Closed, DeclinedPublic

Description

If we could edit the pipermail archive template so that the <pre> tag was instead <pre dir="auto">, it would display RTL emails better.

Example: https://lists.wikimedia.org/pipermail/wikiar-l/2019-October/001085.html Change the pre to have dir=auto, and things work more correctly.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
crusnov subscribed.

I did a little digging but I don't immediately see where this is configured. Anyone more experienced with Mailman should look at this.

After discussing this a bit it looks like it's not currently possible with pipermail without uptsream changes (willing to be wrong here but afaict).

It was suggested that this be moved to the Mailman V3 column since pipermail will be superceded once that transition occurs and this could be revisited then.

Looking at puppet, it looks like we already have some customization in modules/mailman/files/templates/* - so at first glance, I assume we could just add an article.html. Unfortunately, it looks like we can't modify the <pre> tag as that's added outside the template (And CSS has no direction:auto attribute). In theory we could add a U+2068 FIRST-STRONG ISOLATE, but I think a better approach would be to just add a new surrounding div.

I'll write a patch to show what I mean

Change 543252 had a related patch set uploaded (by Brian Wolff; owner: Brian Wolff):
[operations/puppet@production] Customize article.html for better bidi support

https://gerrit.wikimedia.org/r/543252

Okay cool, like I said I'm not completely versed :)

Legoktm subscribed.

At this point we're not going to change the pipermail archives. I don't think this is an issue in hyperkitty because there are no <pre> tags anymore, but please re-open if I'm wrong.

Change 543252 abandoned by Brian Wolff:

[operations/puppet@production] Customize article.html for better bidi support

Reason:

We don't even use this anymore

https://gerrit.wikimedia.org/r/543252