Re: Hebrew in markup

2015-04-05 Thread Dov Grobgeld
Great! Does this mean that a major mode can now modify a markup like tag so that it is rendered as FSI;tagPDI; and thus have no influence on the chosen paragraph direction? If this works and you write h1שלום!/h1 it would be shown in emacs as an RTL paragraph as the tags would be ignored. Dov

Re: Hebrew in markup

2015-04-05 Thread Dov Grobgeld
Thanks for the explanation, Eli. The idea of making tags not influence the reordering of the surrounding text nor the base direction was one of the first use case I thought of when I heard about the Isolation characters the first time. I believe it would make editing BiDi HTML much easier. I'll

Re: Hebrew in markup

2015-04-05 Thread Dov Grobgeld
I admit that I have very little knowledge about how font selection and reordering logic works in emacs. One way of carrying out reordering of h1שלום!/h1 would be if the emacs major mode was be able to inject the FSI...PDI characters before the text is passed to the paragraph direction determining

Re: Hebrew in markup

2015-04-05 Thread Eli Zaretskii
Date: Sun, 5 Apr 2015 09:46:50 +0300 From: Dov Grobgeld dov.grobg...@gmail.com Cc: Nadav Har'El n...@math.technion.ac.il, Dotan Cohen dotanco...@gmail.com, linux-il linux-il@cs.huji.ac.il Great! Does this mean that a major mode can now modify a markup like tag so that it is

Re: Hebrew in markup

2015-04-05 Thread Eli Zaretskii
Date: Sun, 5 Apr 2015 11:20:41 +0300 From: Dov Grobgeld dov.grobg...@gmail.com Cc: Nadav Har'El n...@math.technion.ac.il, Dotan Cohen dotanco...@gmail.com, linux-il linux-il@cs.huji.ac.il I admit that I have very little knowledge about how font selection and reordering logic works

Re: Hebrew in markup

2015-04-01 Thread Nadav Har'El
On Sat, Mar 07, 2015, Tzafrir Cohen wrote about Hebrew in markup: But I could not figure a simple way with any of those to get decent control of bidi. Or specifically: * Make the whole document RTL * Make various paragraphs LTR I guess I need to override some styles. With asciidoc I could

Re: Hebrew in markup

2015-04-01 Thread Dotan Cohen
, Mar 07, 2015, Tzafrir Cohen wrote about Hebrew in markup: But I could not figure a simple way with any of those to get decent control of bidi. Or specifically: * Make the whole document RTL * Make various paragraphs LTR I guess I need to override some styles. With asciidoc I could not find

Re: Hebrew in markup

2015-04-01 Thread Nadav Har'El
On Wed, Apr 01, 2015, Dotan Cohen wrote about Re: Hebrew in markup: If your markup interpreter supports HTML entities, then LRM is lrm; and you can guess what the RLM is. Even more useful is the Right-To-Left Embedding character which is HTML entity #8235; Very nice! I tried this magic

Re: Hebrew in markup

2015-04-01 Thread Dov Grobgeld
, 2015, Dotan Cohen wrote about Re: Hebrew in markup: If your markup interpreter supports HTML entities, then LRM is lrm; and you can guess what the RLM is. Even more useful is the Right-To-Left Embedding character which is HTML entity #8235; Very nice! I tried this magic incantation

Re: Hebrew in markup

2015-04-01 Thread Eli Zaretskii
Date: Wed, 1 Apr 2015 11:49:34 +0300 From: Nadav Har'El n...@math.technion.ac.il 15 years ago, I approached the same problem in pure-text documents (such as emails) by inventing my own conventions (embodied in the bidiv program) which automatically determines each paragraph's direction in

Re: Hebrew in markup

2015-04-01 Thread Eli Zaretskii
Date: Wed, 1 Apr 2015 13:57:13 +0300 From: Dov Grobgeld dov.grobg...@gmail.com Cc: Dotan Cohen dotanco...@gmail.com, Linux-IL linux-il@cs.huji.ac.il Does emacs already support the relatively new UniCode isolate characters LRI, RLI, FSI, PDI? The development version in the Emacs Git

Re: Hebrew in markup

2015-03-07 Thread Tzafrir Cohen
On Sat, Mar 07, 2015 at 03:16:42PM +0200, Eli Zaretskii wrote: Date: Sat, 7 Mar 2015 13:39:08 +0100 From: Tzafrir Cohen tzaf...@cohens.org.il On Sat, Mar 07, 2015 at 02:21:06PM +0200, Eli Zaretskii wrote: You also leave the overall direction dynamic and control each

Re: Hebrew in markup

2015-03-07 Thread Eli Zaretskii
Date: Sat, 7 Mar 2015 13:39:08 +0100 From: Tzafrir Cohen tzaf...@cohens.org.il On Sat, Mar 07, 2015 at 02:21:06PM +0200, Eli Zaretskii wrote: You also leave the overall direction dynamic and control each paragraph's direction with the first strong directional character of the

Re: Hebrew in markup

2015-03-07 Thread Eli Zaretskii
Date: Sat, 07 Mar 2015 16:10:19 +0200 From: Eli Zaretskii e...@gnu.org Cc: linux-il@cs.huji.ac.il IOW, my suggestion only solves the issue of editing the source file, while having it displayed correctly as far as the visual order is concerned. My suggestion doesn't solve the issue of

Re: Hebrew in markup

2015-03-07 Thread Tzafrir Cohen
Thanks for your answer, On Sat, Mar 07, 2015 at 11:14:39AM +0200, Eli Zaretskii wrote: Date: Sat, 7 Mar 2015 02:42:48 +0100 From: Tzafrir Cohen tzaf...@cohens.org.il I'd like to write a Heberw document, get a nice result HTML and still be able to save the source in proper version

Re: Hebrew in markup

2015-03-07 Thread Eli Zaretskii
Date: Sat, 7 Mar 2015 02:42:48 +0100 From: Tzafrir Cohen tzaf...@cohens.org.il I'd like to write a Heberw document, get a nice result HTML and still be able to save the source in proper version control. I could use raw HTML, but there are better options nowadays - asciidoc, markdown

Re: Hebrew in markup

2015-03-07 Thread Tzafrir Cohen
On Sat, Mar 07, 2015 at 02:21:06PM +0200, Eli Zaretskii wrote: You also leave the overall direction dynamic and control each paragraph's direction with the first strong directional character of the paragraph, or with LRM/RLM if the first character is not what you need. For

Re: Hebrew in markup

2015-03-07 Thread Eli Zaretskii
Date: Sat, 7 Mar 2015 13:08:50 +0100 From: Tzafrir Cohen tzaf...@cohens.org.il You can make the whole document RTL by setting a buffer-local variable. How do I make this variable part of the document? With file-local variables. For example, put this at the end of the file: ;;;

Hebrew in markup

2015-03-06 Thread Tzafrir Cohen
Hi I'd like to write a Heberw document, get a nice result HTML and still be able to save the source in proper version control. I could use raw HTML, but there are better options nowadays - asciidoc, markdown (various implementations), reSt, and such. But I could not figure a simple way with any