x/tools/cmd/present: enable support for right-to-left languages #11479
Labels
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
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:
Expected output:
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:
<body>
tag.<pre>
tags so code remains correctly formatted.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: