[O] bug#11710: 24.1.50; Bidi attributes are not exported in org-mode html output
On Thu, Jun 14, 2012 at 10:42 PM, Eli Zaretskii [stuff deleted] Did you customize Emacs to dynamically determine the paragraph direction in Org buffers? By default they are forced to be left-to-right. Yes, I changed that. Org-mode appears to me to work fine in dynamic Bidi mode, so I don't understand the reasoning that it was turned off by default. [stuff deleted] To the Org maintainers: the resolved paragraph direction at character position N in the current buffer can be retrieved like this: (save-excursion (goto-char N) (current-bidi-paragraph-direction)) Ok, thanks. Perhaps I'll have a go at it on my own. Regards, Dov
[O] bug#11710: 24.1.50; Bidi attributes are not exported in org-mode html output
Date: Fri, 15 Jun 2012 09:17:36 +0300 From: Dov Grobgeld dov.grobg...@gmail.com Cc: 11...@debbugs.gnu.org On Thu, Jun 14, 2012 at 10:42 PM, Eli Zaretskii [stuff deleted] Did you customize Emacs to dynamically determine the paragraph direction in Org buffers? By default they are forced to be left-to-right. Yes, I changed that. Org-mode appears to me to work fine in dynamic Bidi mode, so I don't understand the reasoning that it was turned off by default. 2 reasons: . If you maintain Org files with mixed L2R and R2L contents, having some items on the left and some on the right looks messed up, especially if the parent item is on the other side of the window. . Performance. Dynamic detection of paragraph direction can slow down redisplay, if you have long stretches of items without empty lines to separate them. When sub-trees are hidden, this could cause an annoying effect whereby moving cursor past one visible line causes a perceptible delay (because there are many hundreds of hidden lines Emacs needs to move through in the buffer). This punishes Org users who don't use bidirectional scripts, which are the majority of Org users. So in traditions of democracy, the majority wins... (save-excursion (goto-char N) (current-bidi-paragraph-direction)) Ok, thanks. Perhaps I'll have a go at it on my own. Please consider reporting here if you get it to work, because Org maintainers may wish to use your code. TIA
[O] bug#11710: 24.1.50; Bidi attributes are not exported in org-mode html output
Date: Thu, 14 Jun 2012 21:20:17 +0300 From: Dov Grobgeld dov.grobg...@gmail.com When using bidi (bi-direction) reordering together with org-mode, all paragraphs automatically become either RTL or LTR according to the emacs' Bidi heuristic algorithm. Did you customize Emacs to dynamically determine the paragraph direction in Org buffers? By default they are forced to be left-to-right. But when exporting to HTML, the resolved paragraph direction is not included. In HTML the paragraph directions must be set explicitly, e.g. by div dir=RTL.../div, and they should be set according to the directions resolved by emacs. To the Org maintainers: the resolved paragraph direction at character position N in the current buffer can be retrieved like this: (save-excursion (goto-char N) (current-bidi-paragraph-direction))