Module:fa-translit/documentation
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ānam / nemi-dânam
- Example 2
- Input:
خَانَگِی//خَانِگِی
- Output: xānagī / xânegi
- Example 3
- Input:
موز//مَوْز
- Output: mōz / mowz
Tests
[edit]All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
![]() | گویَا کِه | gōyā ki / guyâ ke | gōyā ki / guyâ ke |
![]() | حُقُوق | huqūq / hoğuğ | huqūq / hoğuğ |
![]() | دَقِیقَه | daqīqa / dağiğe | daqīqa / dağiğe |
![]() | خْوَرَاسَان | xwarāsān / xorâsân | xwarāsān / xorâsân |
![]() | خْویش | xwēš / xiš | xwēš / xiš |
![]() | روز | rōz / ruz | rōz / ruz |
![]() | وَلیکِن | walēkin / valiken | walēkin / valiken |
![]() | شُویْ | šūy / šuy | šūy / šuy |
![]() | شویْ | šōy / šuy | šōy / šuy |
![]() | شِیر | šīr / šir | šīr / šir |
![]() | شیر | šēr / šir | šēr / šir |
![]() | شَوْهَر | šawhar / šowhar | šawhar / šowhar |
![]() | کَسی | kasē / kasi | kasē / kasi |
![]() | گویِش | gōyiš / guyeš | gōyiš / guyeš |
![]() | بَیْنُالمِلَلِی | baynu-l-milalī / beyno-l-melali | baynu-l-milalī / beyno-l-melali |
![]() | شَوِی | šawī / šavi | šawī / šavi |
![]() | شِوِی | šiwī / ševi | šiwī / ševi |
![]() | شُوی | šuwē / šovi | šuwē / šovi |
![]() | خْوَدْرَو | xwadraw / xodrow | xwadraw / xodrow |
![]() | حقوق | (nil) | (nil) |
![]() | عشق | (nil) | (nil) |
![]() | نَمیدَانَم / نِمیدَانَم | namē-dānam / nemi-dânam | namē-dānam / nemi-dânam |
![]() | خَانَگِی / خَانِگِی | xānagī / xânegi | xānagī / xânegi |
![]() | موز / مَوْز | mōz / mowz | mōz / mowz |