Module:he-translit/old/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
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:
Passedבַּיִתbayiṯbayiṯ
Passedבֵּיתbēṯbēṯ
Failedעַכּוֹ‎ʿakkō‎1
Passedבָּתִּיםbāttīmbāttīm
Passedמַחֲנֶהmaḥănemaḥăne
Passedבָּרָאbārābārā
Passedרֶגֶלreḡelreḡel
Passedכֹּהֵןkōhēnkōhēn
Passedמֶלֶךְmeleḵmeleḵ
Passedמַמְלָכָהmamlāḵāmamlāḵā
Passedהַמַּמְלָכָהhammamlāḵāhammamlāḵā
Passedהַלְּלוּיָהּhalləlūyāhhalləlūyāh
Passedהַלְלוּיָהּhaləlūyāhhaləlūyāh
Passedיָדַעyāḏaʿyāḏaʿ
Passedשָׁבוּעַšāḇūaʿšāḇūaʿ
Passedרוּחַrūaḥrūaḥ
Passedגָּבֹהַּgāḇōahgāḇōah
Passedמָשִׁיחַmāšīaḥmāšīaḥ
Passedרֵיחַrēaḥrēaḥ
Passedשָׂדֶהśāḏeśāḏe
Passedשְׂדֵהśəḏēśəḏē
Passedבָּנַיbānaybānay
Passedבְּנֵיbənēbənē
Passedצָרְכִּיṣorkīṣorkī
Passedחָכְמָהḥāḵəmāḥāḵəmāambiguous case: could be ḥāḵəmā or ḥoḵmā, but I think ḥāḵəmā is the preferred default
Passedשִׁפְרָהšip̄rāšip̄rā
Passedשָׁכְבְּךָšoḵbəḵāšoḵbəḵā
Passedהָפְכָּהhop̄kāhop̄kāmade-up word, but a particular potentially problematic Unicode situation
Passedקָטְבּוֹqoṭbōqoṭbōanother particular potentially problematic Unicode situation
Passedנִשְׂרְפָהniśrəp̄āniśrəp̄ā
Passedבָּנָיוbānāwbānāw
Passedבָּנֶיהָbānehābānehā
Passedמִצְוֹתmiṣwōṯmiṣwōṯ
Passedזִוּוּגziwwūḡziwwūḡ
Passedרֹאשׁrōšrōš
Passedרֵאשִׁיתrēšīṯrēšīṯ
Passedרִאשׁוֹןrīšōnrīšōn
Passedמְלָאכָהməlāḵāməlāḵā
Passedמְלֶאכֶתməleḵeṯməleḵeṯ
Passedחֵטְאḥēṭḥēṭ
Passedבָּרָאתָbārāṯābārāṯā
Passedחַטֹּאותḥaṭṭōṯḥaṭṭōṯ
Passedיְראוּyərūyərū
Passedוַיֶּאְסֹרwayyeʾsōrwayyeʾsōr
Passedהָחְלַטhoḥlaṭhoḥlaṭ
Passedוַיֵּבְךְּwayyēḇkwayyēḇk
Passedאַרְאֶךָּʾarʾekkāʾarʾekkā
Passedוַיַּשְׁקְwayyašqwayyašq
Passedאַתְּʾattʾatt
Passedוּוָווֹūwāwōūwāwō
Passedוָוwāwwāw
Passedתָּוtāwtāw
Passedקַוqawqaw
Passedלָאוlāwlāw
Passedחַיḥayḥay
Passedחָיḥāyḥāypausal
Passedפִּיוpīwpīw
Passedכִּסְלֵוkislēwkislēw
Passedגּוֹיgōygōy
Passedגֹּיgōygōy
Passedגֹּיִיםgōyīmgōyīm
Passedרָאוּיrāʾūyrāʾūy
Passedקִיא
Failedיָבִיאוּyāḇīʾūyāḇīū5
Failedיְבִיאוּןyəḇīʾūnyəḇīūn5
Passedמֵאוּןmēʾūnmēʾūn
Failedמֵיאוּןmēʾūnmēyūn3
Passedבּוֹאוּbōʾūbōʾū
Passedבֹּאוּbōʾūbōʾū
Passedבּוּאוּbūʾūbūʾūmade-up word, but may help identify the issue
Passedאָבִיאָהʾāḇīʾāʾāḇīʾā
Passedמֵאָהmēʾāmēʾā
Passedגֵּיאָהּgēʾāhgēʾāh
Passedאָבוֹאָהʾāḇōʾāʾāḇōʾā
Passedאָבֹאָהʾāḇōʾāʾāḇōʾā
Passedנְשׂוּאָהnəśūʾānəśūʾā
Failedקִיאוֹqīʾōqīō3
Passedגֵּאוֹgēʾōgēʾō
Passedגֵּיאוֹgēʾōgēʾō
Passedבּוֹאוֹbōʾōbōʾō
Passedבֹּאוֹbōʾōbōʾō
Passedמִלּוּאוֹmillūʾōmillūʾō
Passedמִי
Passedאִיִּיםʾiyyīmʾiyyīm
Passedאִיּוֹבʾiyyōḇʾiyyōḇ
Passedאִיּוּןʾiyyūnʾiyyūn
Passedאַיִןʾayinʾayin
Passedבּוֹא
Passedיְפֵהפֶהyəp̄ēp̄eyəp̄ēp̄e
Passedאֹהֶלʾōhelʾōhel
Passedהָאֹהֱלָהhāʾōhĕlāhāʾōhĕlā
Failedאָהֳלוֹʾohŏlōʾāhŏlō2
Failedאָהָלְךָʾoholəḵāʾāhāləḵā2
PassedיִשָּׂשכָרyiśśāḵāryiśśāḵārStill undecided if this actually needs to be handled
Passedהוֹשִׁיעָה נָּאhōšīʿā nnāhōšīʿā nnā
Passedעַד בֹּאֲךָʿaḏ bōʾăḵāʿaḏ bōʾăḵā
Passedוַיַּשְׁקְ אֶת הַצֹּאןwayyašq ʾeṯ haṣṣōnwayyašq ʾeṯ haṣṣōn
Passedבְּנֵי בְרָקbənē ḇərāqbənē ḇərāq
Passedבְרָקḇərāqḇərāq
Passedאִישׁ יְהוּדִי הָיָה בְּשׁוּשַׁן הַבִּירָה וּשְׁמוֹ מָרְדֳּכַי בֶּן יָאִיר בֶּן־שִׁמְעִי בֶּן־קִישׁ אִישׁ יְמִינִי׃ʾīš 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ī.
Failedאִ֣ישׁ יְהוּדִ֔י הָיָ֖ה בְּשׁוּשַׁ֣ן הַבִּירָ֑ה וּשְׁמ֣וֹ מָרְדֳּכַ֗י בֶּ֣ן יָאִ֧יר בֶּן־שִׁמְעִ֛י בֶּן־קִ֖ישׁ אִ֥ישׁ יְמִינִֽי׃ʾīš 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
Failedוַיְהִי הַמַּבּוּל אַרְבָּעִים יוֹם עַל־הָאָרֶץ וַיִּרְבּוּ הַמַּיִם וַיִּשְׂאוּ אֶת־הַתֵּבָה וַתָּרָם מֵעַל הָאָרֶץ׃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
Failedוַיְהִ֧י הַמַּבּ֛וּל אַרְבָּעִ֥ים י֖וֹם עַל־הָאָ֑רֶץ וַיִּרְבּ֣וּ הַמַּ֗יִם וַיִּשְׂאוּ֙ אֶת־הַתֵּבָ֔ה וַתָּ֖רָם מֵעַ֥ל הָאָֽרֶץ׃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
Passedהִוא
Passedיְרוּשָׁלִַםyərūšālayimyərūšālayim
Passedיְרוּשָׁלִָםyərūšālāyimyərūšālāyimpausal form
Passedיְרוּשָׁלְַמָהyərūšālaymāyərūšālaymā
Passedיְרוּשָׁלְָמָהyərūšālāymāyərūšālāymā
ktiv male tests
Passedחַיָּיבḥayyāḇḥayyāḇ
Passedחַוָּוהḥawwāḥawwā
Passedהֱוֵוהhĕwēhĕwē
Passedהַיְינוּhaynūhaynū
Passedהִתְכַּוְּונוּhiṯkawwənūhiṯkawwənū
Passedגַּוְונָאgawnāgawnā
Passedמְייוּחָד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
Passedכְּדַאיkəḏaykəḏay
Passedכּוּלָּםkullāmkullāmshuruk does not necessarily imply a long vowel
Passedקִידּוּשׁqiddūšqiddūšchiriq male does not necessarily imply a long vowel
TextExpectedActualDiffers atComments
test_translit_hebrew:
Passedמַקְלֵעַmaklea'maklea'
Passedאַבְּסוּרְד'ab'sur'd'ab'sur'dnot sure about what should be expected here
Passedבִּיּוֹמֶטְרִיָּהbiyometriyabiyometriya
Passedקַפְרִיסִיןkafrisinkafrisin
Passedחֹרֶףkhorefkhoref
Failedטוּרְקִיזturkiztur'kiz4
Passedטַחַבtakhavtakhav
Passedיִוָּלֵדyivaledyivaled
Passedיָקִינְתּוֹןyakintonyakinton
Passedכֻּתְנָהkutnakutna
Passedנַגָּרִיָּהnagariyanagariya
Passedנַעֲלֶהna'alena'ale
Passedמִצְווֹתmitsvotmitsvot
Passedמָקוֹםmakommakom
Passedפֶּרוּאָנִיperu'aniperu'ani
Passedצִדְפָּהtsidpatsidpa
Passedתׇּכְנָהtokhnatokhna
Passedרְאוּr'ur'u
Passedגּ׳וּקjukjuk
Passedג׳וּקjukjuk
Passedגִּ׳ירָאפָהjirafajirafa
Passedגִ׳ירָאפָהjirafajirafa
Passedזַ׳רְגוֹןzhargonzhargon
Passedקַפּוּצִ׳ינוֹkapuchinokapuchino
Passedסְקוֹץ׳s'kochs'koch
Passedסְתוֹם תַּ׳פֶּהs'tom ta′pes'tom ta′pe
Passedאִמָּא׳לֶה'ima′le'ima′le
Passedחָזָ״לkhaza″lkhaza″l
Passedנַחַ״לnakha″lnakha″l
Passedרה״מrh″mrh″m
Passedב״הb″hb″h
Passedת״אt″'t″'