In the example below the the degree sign is displayed in the wrong position.
Adding the dir=ltr attribute fixes this issue.
We should also add the lang attribute given that we know in which language the text is being displayed.
| AAlhazwani-WMF | |
| Jul 25 2023, 2:51 PM |
| F41534713: image.png | |
| Nov 24 2023, 9:56 PM |
| F37157061: CleanShot 2023-07-31 at 15.25.11@2x.png | |
| Jul 31 2023, 1:25 PM |
| F37149455: CleanShot 2023-07-25 at 16.50.32@2x.png | |
| Jul 25 2023, 2:51 PM |
| F37149454: CleanShot 2023-07-25 at 16.48.18@2x.png | |
| Jul 25 2023, 2:51 PM |
In the example below the the degree sign is displayed in the wrong position.
Adding the dir=ltr attribute fixes this issue.
We should also add the lang attribute given that we know in which language the text is being displayed.
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Add dir and lang to HTML elements that differ from global uselang | mediawiki/extensions/WikiLambda | master | +929 -710 |
A bug-report in Telegram provided this example, which I believe is part of this task. Adding here in case live-examples are useful:
Screenshot from https://www.wikifunctions.org/wiki/Z11938?uselang=pnb versus https://www.wikifunctions.org/wiki/Z11938?uselang=en
where the text should display as +e Python but shows as e Python+ in RTL.
Change #1032417 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):
[mediawiki/extensions/WikiLambda@master] [WIP] Add dir and lang to HTML elements that differ from global uselang
Change #1032417 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Add dir and lang to HTML elements that differ from global uselang