Module:fa-ira-translit/documentation

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

This module will transliterate Iranian Persian text. The module should preferably not be called directly from templates or other modules. To use it from a template, use {{xlit}}. Within a module, use Module:languages#Language:transliterate.

For testcases, see Module:fa-ira-translit/testcases.

Functions

tr(text, lang, sc)
Transliterates a given piece of text written in the script specified by the code sc, and language specified by the code lang.
When the transliteration fails, returns nil.

Notes

edit

THIS MODULE SHOULD NOT BE USED FOR CLASSICAL PERSIAN OR DARI Due to pronunciation differences between modern Iranian Persian from other varieties of Persian, as well ans differences in vowel notation, Iranian Persian cannot be transliterated the same way as other varieties of Persian. If you need to transliterate a variety of Persian other than modern Iranian Persian, use Module:fa-cls-translit.

This module uses Module:fa-cls-translit as a backend.

Test cases

edit

2 of 38 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_persian:
 سَرْاَنْجامsar-anjâmsar-anjâm
 کُروزkoruzkoruz
 کُرُوزkorowzkorowz
 واوvâvvâv
 نُوروزnowruznowruz
 قَهْوِه‌ایğahve-iğahve-i
 خوانْدَنxândanxândan
 خویشxišxiš
 خوَدxodxod
 چامِه‌سَراییčâme-sarâyičâme-sarâyi
 چامه‌سَرایی(nil)(nil)N/A
 طَنینtanintanin
 طَنِینtaneyntaneyn
 لِهٰذاlehâzâlehâzâ
 عَصاًasanasan
 خانه(nil)(nil)N/A
 خانِهxânexâne
 کُرِهٔ شُمالیkore-ye šomâlikore-ye šomâli
 ضَمّه(nil)(nil)N/A
 ضَمِّهzammezamme
 وُدْکاvodkâvodkâ
 اَرْمَنِسْتانarmanestânarmanestân
 باکوbâkubâku
 بَرادَرِ بُزُرْگbarâdar-e bozorgbarâdar-e bozorg
 قُرونِ وُسْطیٰğorun-e vostâğorun-e vostâ
 دَرْ-آمَدdar-âmaddar-âmad
 بازیِ شَطْرَنْجbâzi-ye šatranjbâzi-ye šatranj
 متعلق(nil)(nil)N/A
 مُتَعَلِّقmota'alleğmota'alleğ
 اِتِّحادِیِهٔ اُروپاettehâdiye-ye orupâettehâdiye-ye orupâ
 آیَتُ‌اللّٰهâyato-llâhâyato-llâh
 شِیْخšeyxšeyx
 نُوْروزnowruznowruz
 پَیامpayâmpeyâm2
 اَیّوبayyubeyّub1
 شِبْهِ‌جَزیرِهšebh-e-jazirešebh-e-jazire
 پایْگاهِ‌دادِهpâygâh-e-dâdepâygâh-e-dâde
 صَحْرایِ غَرْبیsahrâ-ye ğarbisahrâ-ye ğarbi