For the [[ https://meta.wikimedia.org/wiki/Grants:Project/PanLex/Balinese_palm-leaf_transcription_platform_on_Wikisource | Balinese palm-leaf project grant ]] I'm working on, I will need the ability to transliterate text in Balinese script to Latin script. The output will look something like this [[ https://palmleaf.org/wiki/carcan-kucing | Palmleaf.org page ]].
The transliteration rules will be implemented in the new Balinese LanguageConverter class (under review). However, the existing LanguageConverter facilities are not sufficient, because I don't want to convert whole pages into either Balinese or Latin script. Rather, I want the Latin transliteration to //supplement// the Balinese original and appear below it. This means that I need a way to convert particular chunks of wikitext from one Balinese variant to another, and insert the result in a flexible manner.
To do this, I propose adding a `#transliterate` function to CoreParserFunctions.php to allow flexible access to LanguageConverter. It takes three arguments: language variant from, language variant to, and the wikitext to transliterate. For example, `{{#transliterate:sr-el|sr-ec|zdravo}}` would return "здраво" (Latin Serbian to Cyrillic Serbian).