Does Org-mode support RTL Languages like arabic ?
The objective is to prepare and typeset a book in arabic script and export it as PDF for print.
For a correct RTL display you can add the following snippet to your init file:
(defun set-bidi-env ()
"interactive"
(setq bidi-paragraph-direction 'nil))
(add-hook 'org-mode-hook 'set-bidi-env)
From Emacs Manual:
The variable
bidi-paragraph-direction
, ifnon-nil
, disables the dynamic determination of the base direction, and instead forces all paragraphs in the buffer to have the direction specified by its buffer-local value. The value can be eitherright-to-left
orleft-to-right
. Any other value is interpreted asnil
.
As for pdf export, orgmode handles this using latex. Latex have a rich language support and you can easily makes this work. You can read more about that here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With