This is mostly useful for various quotations, but may be also needed for single words or expressions (like //faux pas//). There are actually two things to mark, usually very closely related: the language and the direction of the text. The latter can be usually guessed from the script and language used.

The very same markup could be reused for translations on multilingual wikis, see http://www.communitywiki.org/MultilingualExperiment