Module:fa-translit/documentation

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.

Functions[edit]

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]

7 tests failed. (refresh)

Text Expected Actual Differs at
test_translit_persian:
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
Failed طَنِین taneyn tanin 4
Passed عَصاً ’asan ’asan
Failed خانه xâne xânh 4
Passed خانِه xâne xâne
Passed کُرِۀ شُمالی kore-ye šomâli kore-ye šomâli
Failed ضَمّه zamme zammh 5
Passed ضَمِّه zamme zamme
Passed وُدکا vodkâ vodkâ
Passed اَرمَنِستان armanestân armanestân
Passed باکو bâku bâku