Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search
Edit-copy green.svg Documentation for Module:fa-translit. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.
This module is in beta stage.
Do not use this module yet. It's used for testing only. It is impossible to transliterate unvocalised Persian with vowels and vocalised Persian may not always be accurate.

This module will transliterate Persian language text per WT:FA TR.

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-translit/testcases.


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.

Test cases[edit]

4 tests failed. (refresh)

Text Expected Actual Differs at
Failed سَرانجام saranjâm sarânjâm 4
Failed سَرانْجام saranjâm sarânjâm 4
Failed سَرَانْجَام saranjâm sarânjâm 4
Passed کُروز koruz koruz
Failed کُرُوز korouz koruz 4
Passed طَنین tanin tanin
Passed طَنِین taneyn taneyn
Passed عَصاً ’asan ’asan
Passed خانه xâne xâne
Passed خانِه xâne xâne
Passed کُرِۀ شُمالی kore-ye šomâli kore-ye šomâli
Passed ضَمّه zamme zamme
Passed ضَمِّه zamme zamme
Passed وُدکا vodkâ vodkâ
Passed اَرمَنِستان armanestân armanestân
Passed باکو bâku bâku