One approach is to create custom role ( https://docutils.sourceforge.io/docs/ref/rst/directives.html#raw-directive):
.. role:: raw-html(raw) :format: html And use it as: Blaah blaah :raw-html:`<span lang="ar" dir="rtl">fooo</span>` blah. (Similar for LaTeX.) It's tedious. So if nobody else will suggest better answer, you should consider writing own role inherited from builtin literal role that adds your attributes. Usage in your RST will look simple like e.g. :literal-arabic:`fooo`. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAB-x1G%2BJ_siaP8Cd9zFYtWp-qc7WTTbRnXxUE3rpamwj156PBg%40mail.gmail.com.