Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right-to-left languages #4968

Open
verhovsky opened this issue Jun 3, 2024 · 0 comments
Open

Right-to-left languages #4968

verhovsky opened this issue Jun 3, 2024 · 0 comments

Comments

@verhovsky
Copy link
Collaborator

verhovsky commented Jun 3, 2024

These pages are in languages written right-to-left (rtl) (instead of English's left-to-right, ltr)

https://learnxinyminutes.com/docs/ar-ar/html-ar/
https://learnxinyminutes.com/docs/ar-ar/python-ar/
https://learnxinyminutes.com/docs/ar-ar/sql-ar/
https://learnxinyminutes.com/docs/fa-ir/bf-fa/
https://learnxinyminutes.com/docs/fa-ir/css-fa/
https://learnxinyminutes.com/docs/fa-ir/html-fa/
https://learnxinyminutes.com/docs/fa-ir/javascript-fa/
https://learnxinyminutes.com/docs/fa-ir/vim-fa/
https://learnxinyminutes.com/docs/he-he/html-he/

First of all, we need to have a separate layout with the buttons on the left and the title on the right. But more importantly, the content in them is displayed incorrectly. The text needs to start from the right edge of the page and the text needs to actually be logically right to left. This is complicated by the fact that these pages need to mix rtl for comments and ltr for the actual code, which causes periods to be placed at the beginning of a line instead of at the end, unless we add ‏ and ‎ everywhere https://www.w3.org/International/questions/qa-html-dir

If you just write the rtl text in markdown like https://learnxinyminutes.com/docs/he-he/html-he/ does, the text begins on the left and the punctuation is wrong (you can also see this wrong punctuation in the code block). If you add <div dir="rtl"> tags to everything like https://learnxinyminutes.com/docs/ar-ar/sql-ar/ then the text starts on the right (correctly) but then markdown links []() don't work, they need to be HTML <a href=""></a> tags but that sucks.

https://rtl.wtf/intro/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant