Steps to replicate the issue (include links if applicable):
- Open https://www.wikifunctions.org/wiki/Z13667?action=edit&uselang=he
- Examine the input boxes and the chips in the English-language section.
- Delete everything from the function name field (שם) and type factorial!.
What happens?:
- The chip with the alias "n!" appears as "!n".
- In every chip, the end of every English string is too close to the chip's right edge.
- The name appears as "!factorial". (I'd love to give you an example of a function name that actually includes punctuation for easy testing of LTR/RTL issues, but I couldn't find such a function. It may get created some day...)
- The text in all the input boxes, as well as the chips, are all aligned to the right.
Screenshot (after):
Both things happen because the page's UI language is Hebrew, and all the input boxes are adapted to RTL by default, even though English is LTR.
What should have happened instead?:
- The chip with the alias in English must appear as "n1".
- The English text in the chip must not be too close to the edge.
- The punctuation must appear on the correct end of the text.
- Text in LTR languages must be aligned to the left and text in RTL languages must be aligned to the right, no matter what the UI language is.
(Also mentioning the Codex, because some of the issues may be there. I suspect that most of the fixes must be in Wikifunctions code, but I might be wrong.)