Giter VIP home page Giter VIP logo

Comments (5)

Alireza1044 avatar Alireza1044 commented on May 19, 2024

I've tried to apply RTL to farsi in my local repo and everything was fine except that inline math is not rendered correctly, I'm not sure if this is something that should be handled in MD file or in html.
image

from nyu-dlsp20.

Atcold avatar Atcold commented on May 19, 2024

@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.

from nyu-dlsp20.

Alireza1044 avatar Alireza1044 commented on May 19, 2024

@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.
image
In the below screen shot you can see that the math expressions are messed up.
photo_2020-09-23 20 48 49

The image below is the English version. They are in the week06/06-2.md file.
Screen Shot 2020-09-23 at 20 50 54

from nyu-dlsp20.

Atcold avatar Atcold commented on May 19, 2024

Then, what do you suggest? Can you figure a way to fix this locally?

from nyu-dlsp20.

Alireza1044 avatar Alireza1044 commented on May 19, 2024

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:
image

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:
image

The output is like this:
image

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.
94335850-3af8c200-ffeb-11ea-891e-1ac0c0f49921

image

from nyu-dlsp20.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.