Module:fa-translit/documentation

Documentation for Module:fa-translit. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

Generates both the Classical romanization and the Iranian romanization, from the classical vocalization, using module:fa-cls-translit as a backend. Still a work-in-progress. To transliterate Classical Persian and Iranian Persian text independently use their independent transliteration modules listed below:

Override Iranian romanization

edit

The outputted Iranian romanization can be overwritten by vocalizing the word twice (using classical vocalization) with both vocalizations separated by //. This will cause the text to the left of the // to be the outputted classical romanization and the text on the right to be the outputted Iranian romanization. Be aware that, due to how MediaWiki processes bidirectional text, the vocalizations may appear to switch sides when viewed from the Wikitext editor.

Example 1
Input: نَمی‌دَانَم//نِمی‌دَانَم
Output: namē-dānamnemi-dânam
Example 2
Input: خَانَگِی//خَانِگِی
Output: xānagīxânegi
Example 3
Input: موز//مَوْز
Output: mōzmowz

Tests

edit

All tests passed. (refresh)

TextExpectedActual
test_translit_persian:
 گویَا کِهgōyā kiguyâ kegōyā kiguyâ ke
 حُقُوقhuqūqhoğuğhuqūqhoğuğ
 دَقِیقَهdaqīqadağiğedaqīqadağiğe
 خْوَرَاسَانxwarāsānxorâsânxwarāsānxorâsân
 خْویشxwēšxišxwēšxiš
 روزrōzruzrōzruz
 وَلیکِنwalēkinvalikenwalēkinvaliken
 شُویْšūyšuyšūyšuy
 شویْšōyšuyšōyšuy
 شِیرšīrširšīršir
 شیرšērširšēršir
 شَوْهَرšawharšowharšawharšowhar
 کَسیkasēkasikasēkasi
 گویِشgōyišguyešgōyišguyeš
 بَیْنُ‌المِلَلِیbaynu-l-milalībeyno-l-melalibaynu-l-milalībeyno-l-melali
 شَوِیšawīšavišawīšavi
 شِوِیšiwīševišiwīševi
 شُویšuwēšovišuwēšovi
 خْوَدْرَوxwadrawxodrowxwadrawxodrow
 حقوق(nil)(nil)
 عشق(nil)(nil)
 نَمی‌دَانَمنِمی‌دَانَمnamē-dānamnemi-dânamnamē-dānamnemi-dânam
 خَانَگِیخَانِگِیxānagīxânegixānagīxânegi
 موزمَوْزmōzmowzmōzmowz