ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.77k stars 197 forks source link

Right to Left Text Entry #264

Open ghost opened 10 years ago

ghost commented 10 years ago

I need to mix normal Left to Right English with a couple of Right to Left languages. I know that nvALT has no problem with the individual characters when I change my unicode keyboard, but the Right to Left setting is a problem and I can't find a setting to change. How can I shift from Right to Left (the default when I'm using Hebrew) to left to right in the same paragraph?

ttscoff commented 10 years ago

Given that nvALT is primarily focused on Markdown, making that happen would be futile as it has no effect on plain text.

It sounds like you need a more advanced word processing tool than nvALT is every planning to be.

On 15 Mar 2014, at 16:06, ccozier wrote:

I need to mix normal Left to Right English with a couple of Right to Left languages. I know that nvALT has no problem with the individual characters when I change my unicode keyboard, but the Right to Left setting is a problem and I can't find a setting to change. How can I shift from Right to Left (the default when I'm using Hebrew) to left to right in the same paragraph?


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/nv/issues/264

ghost commented 10 years ago

I'm an academic (Biblical Studies) with lots of mixing of Hebrew, Greek and of our course Latin scripts. I would love to find a plain text solution for notes. Given that unicode can give me the characters I need, I'm hoping to find a way to force left to right orientation when working with Hebrew. I assumed (incorrectly?) that orientation could be controlled.

ttscoff commented 10 years ago

nvALT can only set the text direction for the entire text field, not on a per-paragraph basis. It would be easy to accomplish with a bit of extra markup...

If you just put a div with a class around RTL paragraphs, you can style it in any preview with CSS.

  <div markdown="1" class="rtl">
  All your _Markdown_ should be rendered because of the 

"markdown=1".

Then you just need a style:

  .rtl { direction: rtl }

-Brett

15 Mar 2014, at 16:33, ccozier wrote:

I'm an academic (Biblical Studies) with lots of mixing of Hebrew, Greek and of our course Latin scripts. I would love to find a plain text solution for notes. Given that unicode can give me the characters I need, I'm hoping to find a way to force left to right orientation when working with Hebrew. I assumed (incorrectly?) that orientation could be controlled.


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/nv/issues/264#issuecomment-37738663