The present tool is currently unusable with right-to-left scripts. Text is left-aligned, and punctuation and English words appear at the wrong end of sentences (see screenshot). This can be fixed by setting the right HTML attributes.
Current output for a slide with Arabic text:
Adding RTL support would enable slides to be written in Arabic (incl. Farsi & Urdu) and Hebrew
I would implement this by adding a function (e.g. ".rtl") that when invoked would set the RTL mode for the entire presentation. The effects of this would be:
add the "dir=rtl" attribute to the <body> tag.
add "dir=ltr" to all <pre> tags so code remains correctly formatted.
invert the slide switch animation so that the "next" slide is on the left and the "past" slide is on the right.
Adding a special function to set a rarely used mode isn't ideal. I'm open to suggestions of alternatives. Automatically setting it based on the language of the first word might work but isn't "least-surprise".
The text was updated successfully, but these errors were encountered:
I hacked this into present but I wasn't particularly pleased with it. The other dot-actions translate to local HTML elements, while something like this modifies the document globally (the body tag, all pre tags, css, etc.).