[FA] Default RTL
Atcold opened this issue · comments
Farsi should default to RTL.
@ebetica can you please take care of this?
@Alireza1044 can you please check if the Arabic version looks alright?
How did you apply RTL to your local repo?
Also, please circle what's wrong and add a screenshot with the English version, so that we better understand what's going on.
@Atcold The Arabic translation looks right because they didn't put math expressions in $$
in their markdown files.
I changed line 12 in pytorch-Deep-Learning/docs/jekyllbook/_layouts/default.html
file to apply RTL to Farsi in my local repo.
In the below screen shot you can see that the math expressions are messed up.
The image below is the English version. They are in the week06/06-2.md file.
Then, what do you suggest? Can you figure a way to fix this locally?
I don't know much about web developing and how to handle these things, But I think there's a way to render math expressions in LTR and the rest of the text in RTL.
As you can see below math expressions are not an exception and are rendered like the rest of the text:
After a slight change in the md
file (the <div dir="ltr">
tag which I added before $$
) to force this part to be rendered in LTR:
But this trick won't work with inline math expressions (As you can see in the picture below), But I suppose there is a way to make an exception for math expressions. I think an expert in web programming should help us here.