Open Natinux opened 9 years ago
+1
+1
RTL
and LTR
In One DocumentThis solution is not perfect but it can make the difference between using stackedit or not. There is still a lot room for improvements but still, In my opinion, stackedit is the best WYSIWYM word processor there is out there. This is why I think so:
RTL
as far as I know.RTL
language like Hebrew or Arabic, the editor doesn't detect it automatically and it's extremely uncomfortable to write text in that mode - It's one of those things that an English speaker might never understand.RTL
languages vs LTR
in the same file1, The viewer by stackedit doesn't actually distinguish from RTL
and LTR
.right to left
or vise versa, it won't matter for the browser if you export the document as template.RTL
by adding the dir="rtl"
attribute to the <body>
tag at the advanced settings at "Default Template". just like that: Instead of <body>
, use <body dir="rtl">
<p dir="rtl">
before every section you want to be in RTL
mode although the document's body is in LTR
or vise versa. That's how it is in html - the <body>
tag's attributes define the whole document unless you tell certain parts to act differently.LTR
or RTL
(with the settings or specific to the document with the <body>
tag inside it).<p dir="rtl">
or <p dir="ltr">
(according to the opposite direction)3 and close the tag with </p>
.LTR
as they should be, Do as follows:
<code>
html tag befor it all begins and add the attribute: dir="rtl"
.
- You can use a local editor on your computer and it will be synced to stackedit via a cloud storage service client on your computer. In addition, It's not exactly in the same manner, but it would have been great if there was a reload button to use for reloading the file from the cloud storage in viewer mode as well as in edit mode. Personally I prefer using gedit by Gnome for that.
- This works for MathJax and normal text but not for code blocks. @hkarti's solution presented in #904 it might be better than mine but it is a matter of taste.
- If you haven't changed the
<body>
tag in the settings, use<p dir="rtl">
for the opposite direction. If you did changed it to<body dir="rtl">
then use<p dir="ltr">
for the opposite direction.
This is really annoying, can we put some css into place ? via the template ?
Can we add LTR/RTL button to add the direction to the paragraph?
What about using dir="auto"
property for each node?
The issue refers more to RTL support in the editor as well as in the viewer. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
I don't think there be any better solution that dir="rtl"
for the viewer. This can be implemented till we find solution for editor. isn't it?
There are three open issues (one of them from 5 years ago) regarding RTL support it would be nice if you'd do something about it.
I have done several contribution to FLOSS projects and my solution works really well.
Gitlab does the same: add dir="auto"
to HTML elements. I even have made a simple Firefox add-on called Add Bidi Support which does the same and works really amazing.
I don't understand why there is resistance against it!
I just share what is done by my Firefox addon plus little more manual modification to the live MD editor:
It works perfectly as far as I see.
I just share what is done by my Firefox addon plus little more manual modification to the live MD editor:
It works perfectly as far as I see.
Thanks. Great work. But in your screenshot, both sides seems good and in my browser, left side (editor view) not well applied. What can I do?
Add dir="auto"
to all <div class="cledit-section">
.
Hi, It seems the markdown supports RTL or LTR languages, but only one at a time. Is it possible to mix the two? Writing English and Hebrew in the same line working fine. On one line to write English and Hebrew in the other, the English sentence are float to the right (like it was Hebrew).
For example: If I want to explain some code in Hebrew, then to show an example, see what happens:
Thank you.