Module:he-translit/old/documentation

Documentation for Module:he-translit/old. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.
This module documentation page is still being disputed.
Do not use this module. This module was designed to follow WT:HE TR, which does not have consensus among the Hebrew editors; moreover, it does not follow WT:HE TR strictly.

This module will transliterate Hebrew language text per WT:HE 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:he-translit/old/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.

Test cases

edit

11 of 150 tests failed. (refresh)

TextExpectedActualDiffers atComments
test_biblical:
 בַּיִתbayiṯbayiṯ
 בֵּיתbēṯbēṯ
 עַכּוֹ‎ʿakkō‎1
 בָּתִּיםbāttīmbāttīm
 מַחֲנֶהmaḥănemaḥăne
 בָּרָאbārābārā
 רֶגֶלreḡelreḡel
 כֹּהֵןkōhēnkōhēn
 מֶלֶךְmeleḵmeleḵ
 מַמְלָכָהmamlāḵāmamlāḵā
 הַמַּמְלָכָהhammamlāḵāhammamlāḵā
 הַלְּלוּיָהּhalləlūyāhhalləlūyāh
 הַלְלוּיָהּhaləlūyāhhaləlūyāh
 יָדַעyāḏaʿyāḏaʿ
 שָׁבוּעַšāḇūaʿšāḇūaʿ
 רוּחַrūaḥrūaḥ
 גָּבֹהַּgāḇōahgāḇōah
 מָשִׁיחַmāšīaḥmāšīaḥ
 רֵיחַrēaḥrēaḥ
 שָׂדֶהśāḏeśāḏe
 שְׂדֵהśəḏēśəḏē
 בָּנַיbānaybānay
 בְּנֵיbənēbənē
 צָרְכִּיṣorkīṣorkī
 חָכְמָהḥāḵəmāḥāḵəmāambiguous case: could be ḥāḵəmā or ḥoḵmā, but I think ḥāḵəmā is the preferred default
 שִׁפְרָהšip̄rāšip̄rā
 שָׁכְבְּךָšoḵbəḵāšoḵbəḵā
 הָפְכָּהhop̄kāhop̄kāmade-up word, but a particular potentially problematic Unicode situation
 קָטְבּוֹqoṭbōqoṭbōanother particular potentially problematic Unicode situation
 נִשְׂרְפָהniśrəp̄āniśrəp̄ā
 בָּנָיוbānāwbānāw
 בָּנֶיהָbānehābānehā
 מִצְוֹתmiṣwōṯmiṣwōṯ
 זִוּוּגziwwūḡziwwūḡ
 רֹאשׁrōšrōš
 רֵאשִׁיתrēšīṯrēšīṯ
 רִאשׁוֹןrīšōnrīšōn
 מְלָאכָהməlāḵāməlāḵā
 מְלֶאכֶתməleḵeṯməleḵeṯ
 חֵטְאḥēṭḥēṭ
 בָּרָאתָbārāṯābārāṯā
 חַטֹּאותḥaṭṭōṯḥaṭṭōṯ
 יְראוּyərūyərū
 וַיֶּאְסֹרwayyeʾsōrwayyeʾsōr
 הָחְלַטhoḥlaṭhoḥlaṭ
 וַיֵּבְךְּwayyēḇkwayyēḇk
 אַרְאֶךָּʾarʾekkāʾarʾekkā
 וַיַּשְׁקְwayyašqwayyašq
 אַתְּʾattʾatt
 וּוָווֹūwāwōūwāwō
 וָוwāwwāw
 תָּוtāwtāw
 קַוqawqaw
 לָאוlāwlāw
 חַיḥayḥay
 חָיḥāyḥāypausal
 פִּיוpīwpīw
 כִּסְלֵוkislēwkislēw
 גּוֹיgōygōy
 גֹּיgōygōy
 גֹּיִיםgōyīmgōyīm
 רָאוּיrāʾūyrāʾūy
 קִיא
 יָבִיאוּyāḇīʾūyāḇīū5
 יְבִיאוּןyəḇīʾūnyəḇīūn5
 מֵאוּןmēʾūnmēʾūn
 מֵיאוּןmēʾūnmēyūn3
 בּוֹאוּbōʾūbōʾū
 בֹּאוּbōʾūbōʾū
 בּוּאוּbūʾūbūʾūmade-up word, but may help identify the issue
 אָבִיאָהʾāḇīʾāʾāḇīʾā
 מֵאָהmēʾāmēʾā
 גֵּיאָהּgēʾāhgēʾāh
 אָבוֹאָהʾāḇōʾāʾāḇōʾā
 אָבֹאָהʾāḇōʾāʾāḇōʾā
 נְשׂוּאָהnəśūʾānəśūʾā
 קִיאוֹqīʾōqīō3
 גֵּאוֹgēʾōgēʾō
 גֵּיאוֹgēʾōgēʾō
 בּוֹאוֹbōʾōbōʾō
 בֹּאוֹbōʾōbōʾō
 מִלּוּאוֹmillūʾōmillūʾō
 מִי
 אִיִּיםʾiyyīmʾiyyīm
 אִיּוֹבʾiyyōḇʾiyyōḇ
 אִיּוּןʾiyyūnʾiyyūn
 אַיִןʾayinʾayin
 בּוֹא
 יְפֵהפֶהyəp̄ēp̄eyəp̄ēp̄e
 אֹהֶלʾōhelʾōhel
 הָאֹהֱלָהhāʾōhĕlāhāʾōhĕlā
 אָהֳלוֹʾohŏlōʾāhŏlō2
 אָהָלְךָʾoholəḵāʾāhāləḵā2
 יִשָּׂשכָרyiśśāḵāryiśśāḵārStill undecided if this actually needs to be handled
 הוֹשִׁיעָה נָּאhōšīʿā nnāhōšīʿā nnā
 עַד בֹּאֲךָʿaḏ bōʾăḵāʿaḏ bōʾăḵā
 וַיַּשְׁקְ אֶת הַצֹּאןwayyašq ʾeṯ haṣṣōnwayyašq ʾeṯ haṣṣōn
 בְּנֵי בְרָקbənē ḇərāqbənē ḇərāq
 בְרָקḇərāqḇərāq
 אִישׁ יְהוּדִי הָיָה בְּשׁוּשַׁן הַבִּירָה וּשְׁמוֹ מָרְדֳּכַי בֶּן יָאִיר בֶּן־שִׁמְעִי בֶּן־קִישׁ אִישׁ יְמִינִי׃ʾīš yəhūḏī hāyā bəšūšan habbīrā ūšəmō mordŏḵay ben yāʾīr ben-šimʿī ben-qīš ʾīš yəmīnī.ʾīš yəhūḏī hāyā bəšūšan habbīrā ūšəmō mordŏḵay ben yāʾīr ben-šimʿī ben-qīš ʾīš yəmīnī.
 אִ֣ישׁ יְהוּדִ֔י הָיָ֖ה בְּשׁוּשַׁ֣ן הַבִּירָ֑ה וּשְׁמ֣וֹ מָרְדֳּכַ֗י בֶּ֣ן יָאִ֧יר בֶּן־שִׁמְעִ֛י בֶּן־קִ֖ישׁ אִ֥ישׁ יְמִינִֽי׃ʾīš yəhūḏī hāyā bəšūšan habbīrā ūšəmō mordŏḵay ben yāʾīr ben-šimʿī ben-qīš ʾīš yəmīnī.ʾi֣yš yəhūḏi֔y hāyā֖h bəšūša֣n habbīrā֑h ūšəm֣ō mordŏḵa֗y be֣n yāʾi֧yr ben-šimʿi֛y ben-qi֖yš ʾi֥yš yəmīniֽy.2fully accented verse; stress should not be indicated in the final syllable
 וַיְהִי הַמַּבּוּל אַרְבָּעִים יוֹם עַל־הָאָרֶץ וַיִּרְבּוּ הַמַּיִם וַיִּשְׂאוּ אֶת־הַתֵּבָה וַתָּרָם מֵעַל הָאָרֶץ׃wayəhī hammabbūl ʾarbāʿīm yōm ʿal-hāʾā́reṣ wayyirbū hammáyim wayyiśəʾū ʾeṯ-hattēḇā wattā́rom mēʿal hāʾāreṣ.wayhī hammabbūl ʾarbāʿīm yōm ʿal-hāʾāreṣ wayyirbū hammayim wayyiśʾū ʾeṯ-hattēḇā wattārām mēʿal hāʾāreṣ.4a reminder of why this is hard
 וַיְהִ֧י הַמַּבּ֛וּל אַרְבָּעִ֥ים י֖וֹם עַל־הָאָ֑רֶץ וַיִּרְבּ֣וּ הַמַּ֗יִם וַיִּשְׂאוּ֙ אֶת־הַתֵּבָ֔ה וַתָּ֖רָם מֵעַ֥ל הָאָֽרֶץ׃wayəhī hammabbūl ʾarbāʿīm yōm ʿal-hāʾā́reṣ wayyirbū hammáyim wayyiśəʾū ʾeṯ-hattēḇā wattā́rom mēʿal hāʾāreṣ.wayhi֧y hammabb֛ūl ʾarbāʿi֥ym y֖ōm ʿal-hāʾā֑reṣ wayyirb֣ū hamma֗yim wayyiśʾū֙ ʾeṯ-hattēḇā֔h wattā֖rām mēʿa֥l hāʾāֽreṣ.4fully accented verse version of the above
implicit ktiv/qre that would be nice to have
 הִוא
 יְרוּשָׁלִַםyərūšālayimyərūšālayim
 יְרוּשָׁלִָםyərūšālāyimyərūšālāyimpausal form
 יְרוּשָׁלְַמָהyərūšālaymāyərūšālaymā
 יְרוּשָׁלְָמָהyərūšālāymāyərūšālāymā
ktiv male tests
 חַיָּיבḥayyāḇḥayyāḇ
 חַוָּוהḥawwāḥawwā
 הֱוֵוהhĕwēhĕwē
 הַיְינוּhaynūhaynū
 הִתְכַּוְּונוּhiṯkawwənūhiṯkawwənū
 גַּוְונָאgawnāgawnā
 מְייוּחָדməyūḥāḏməyūḥāḏthere is no way to tell that it really should be məyuḥāḏ, but anyway this test is for the double yod
 כְּדַאיkəḏaykəḏay
 כּוּלָּםkullāmkullāmshuruk does not necessarily imply a long vowel
 קִידּוּשׁqiddūšqiddūšchiriq male does not necessarily imply a long vowel
TextExpectedActualDiffers atComments
test_translit_hebrew:
 מַקְלֵעַmaklea'maklea'
 אַבְּסוּרְד'ab'sur'd'ab'sur'dnot sure about what should be expected here
 בִּיּוֹמֶטְרִיָּהbiyometriyabiyometriya
 קַפְרִיסִיןkafrisinkafrisin
 חֹרֶףkhorefkhoref
 טוּרְקִיזturkiztur'kiz4
 טַחַבtakhavtakhav
 יִוָּלֵדyivaledyivaled
 יָקִינְתּוֹןyakintonyakinton
 כֻּתְנָהkutnakutna
 נַגָּרִיָּהnagariyanagariya
 נַעֲלֶהna'alena'ale
 מִצְווֹתmitsvotmitsvot
 מָקוֹםmakommakom
 פֶּרוּאָנִיperu'aniperu'ani
 צִדְפָּהtsidpatsidpa
 תׇּכְנָהtokhnatokhna
 רְאוּr'ur'u
 גּ׳וּקjukjuk
 ג׳וּקjukjuk
 גִּ׳ירָאפָהjirafajirafa
 גִ׳ירָאפָהjirafajirafa
 זַ׳רְגוֹןzhargonzhargon
 קַפּוּצִ׳ינוֹkapuchinokapuchino
 סְקוֹץ׳s'kochs'koch
 סְתוֹם תַּ׳פֶּהs'tom ta′pes'tom ta′pe
 אִמָּא׳לֶה'ima′le'ima′le
 חָזָ״לkhaza″lkhaza″l
 נַחַ״לnakha″lnakha″l
 רה״מrh″mrh″m
 ב״הb″hb″h
 ת״אt″'t″'