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

Notebook - Add RTL (Right-To-Left) Support #3278

Closed
amitkot opened this issue May 5, 2013 · 4 comments
Closed

Notebook - Add RTL (Right-To-Left) Support #3278

amitkot opened this issue May 5, 2013 · 4 comments
Milestone

Comments

@amitkot
Copy link

amitkot commented May 5, 2013

Currently, it is hard to prepare a notebook that is written in a right-to-left language (Hebrew, in my case, but also Arabic and Farsi), as the text is always formatted in a left-to-right manner.

The way this is implemented in Gmail is that according to the first letter of each line, the line is automatically LTR or RTL.

If this is implemented, the IPython Notebook will become a viable method for preparing python documentation and training material in Arabic, Farsi and Hebrew.

@Carreau
Copy link
Member

Carreau commented May 5, 2013

Codemirror seem to support RTL and LTR mode.
Anything that is possible with codemirror should be with IPython.

Could you have a look at how codemirror behaves, and tell us if it this works for you, and/or which option of codemirror you need. We might be able to do something for it.

@amitkot
Copy link
Author

amitkot commented May 5, 2013

I am thinking about something along the line of this PO - codemirror/codemirror5#1103
I mean that the whole paragraph will be right-justified when it's in the LTR language.

It looks like CodeMirror supports including arabic/hebrew just fine, but I couldn't get it to right-justify the paragraph.

I can see it's also one of the issues raised here - https://bugzilla.mozilla.org/show_bug.cgi?id=816756
So maybe as it's a WIP it might improve, but for now I couldn't get it to right-align\right-justify the lines starting with hebrew letters.

@ronenabr
Copy link

Not a real solution, but here an hacky IPython notebook extension for RTL enabled display of markdown cells.
https://github.com/ronenabr/ipython_bidi_markdown

@gnestor
Copy link
Contributor

gnestor commented Jan 16, 2018

This was implemented in the notebook: jupyter/notebook#2357

@takluyver takluyver modified the milestones: wishlist, not ipython Jan 16, 2018
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

5 participants