Ability to specify text language in ReST
Feature request
It would be great to be able to specify text language for blocks of text in ReST.
This could for example be achieved with .. role:: language(nb) to set the language to Norwegian Bokmål (ISO code nb). An inline version of this would also be great. Maybe Example in Norwegian is :language(nb):`eksempel`
Thanks for your request. I do not fully understand what is need in the output. Why would one set the language of a text? How would this reflect in the output?
In HTML, it would change the lang attribute of the surrounding tag. For example, it would change the language of text readers (for accessibility) and change the language interpreted by search engines, so homonymous keywords are not mixed up.