# Urdu 6 Dot Braille Grade 2 # Copyright (C) 2018, 2020, 2021, 2023 by Compass Braille # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. # # ---------------------------------------------------------------------------------------------- # GENERAL COMMENT REGARDING TESTS BELOW # You will see many cases where there is expected failure in backwards # direction. This is usually because in Urdu vowel signs are often optional # so the word may exist in print in alternative spellings but the Braille # reader expects it to be rendered the same in Grade 2 Braille. display: unicode.dis table: language: ur type: literary contraction: full __assert-match: ur-pk-g2.ctb flags: {testmode: forward} tests: - ["0", "⠼⠚"] - ["1", "⠼⠁"] - ["2", "⠼⠃"] - ["3", "⠼⠉"] - ["4", "⠼⠙"] - ["5", "⠼⠑"] - ["6", "⠼⠋"] - ["7", "⠼⠛"] - ["8", "⠼⠓"] - ["9", "⠼⠊"] # Arabic Digits - not usually used in Urdu - ["٠", "⠼⠚"] - ["١", "⠼⠁"] - ["٢", "⠼⠃"] - ["٣", "⠼⠉"] - ["٤", "⠼⠙"] - ["٥", "⠼⠑"] - ["٦", "⠼⠋"] - ["٧", "⠼⠛"] - ["٨", "⠼⠓"] - ["٩", "⠼⠊"] flags: {testmode: bothDirections} tests: # Extended Arabic Digits - usually used in Urdu - ["۰", "⠼⠚"] - ["۱", "⠼⠁"] - ["۲", "⠼⠃"] - ["۳", "⠼⠉"] - ["۴", "⠼⠙"] - ["۵", "⠼⠑"] - ["۶", "⠼⠋"] - ["۷", "⠼⠛"] - ["۸", "⠼⠓"] - ["۹", "⠼⠊"] # Aspirated digraphs followed by vowel signs Fatha, Kasra or Damma. # In the print text file the signs come before Heh Doachashmee # whereas in Braille they must come after. - ["جِھلّی", "⠚⠦⠑⠠⠇⠊"] - ["جِھینگر", "⠚⠦⠑⠊⠝⠛⠗"] - ["جُھوٹ", "⠚⠦⠥⠺⠪"] # Dot 4 used for SUPERSCRIPT ALEF (\x0670), for example at end of word for "Moses" - [مُوسیٰ,⠍⠥⠺⠎⠊⠈] # ARABIC LIGATURE ALLAH ISOLATED FORM (\xFDF2) - [ﷲ, ⠁⠠⠇⠈⠓] - [رُوحُ ﷲ, ⠗⠥⠺⠱⠁⠠⠇⠈⠓] - [رُوحُﷲ, ⠗⠥⠺⠱⠁⠠⠇⠈⠓, {xfail: {backward: Alternative spellings legitimate in print}}] - [رُوحُ اﷲ, ⠗⠥⠺⠱⠁⠠⠇⠈⠓, {xfail: {backward: Alternative spellings legitimate in print}}] # FEH (\x0641) with SHADDA (\x0651) - [صفّور, ⠯⠠⠋⠺⠗] # REH (\x0631), KASRA (\x0650) or DAMMA (\x064F), SHADDA (\x0651) - [زرِّین, ⠵⠠⠗⠑⠊⠝] - [کرُّوبی, ⠅⠠⠗⠥⠺⠃⠊] # Contraction dots 16 when vowel between TCHEH and HEH DOACHASHMEE - [چِھپایا, ⠡⠑⠏⠁⠽] # Contraction dots 15 used for اس and اِس at start of word except when followed by SHADDA - [اسرائیلیوں, ⠑⠗⠈⠊⠇⠐⠌] - [اِسرائیلِیوں,⠑⠗⠈⠊⠇⠑⠐⠌, {xfail: {backward: Alternative spellings legitimate in print}}] - [اسّی, ⠁⠠⠎⠊] # Contraction dots 135 no longer used for ٹھ - [بَیٹھکوں, ⠃⠂⠊⠪⠦⠅⠺⠰] # Contraction 35 used for ان and اِن whether as a whole word or within a word - [گھرانے, ⠛⠦⠗⠔⠌] - [ان, ⠔] - [اِن, ⠔, {xfail: {backward: Alternative spellings legitimate in print}}] - [انسان, ⠔⠎⠔] - [اِنسان, ⠔⠎⠔, {xfail: {backward: Alternative spellings legitimate in print}}] # Contraction 36 used for بے not for بی at the beginning of words. # Letters بے are usually spaced from the start of word in print but joined in Braille. - [بے شُمار, ⠤⠩⠥⠍⠁⠗] - [آفتابے, ⠜⠋⠞⠁⠃⠌] - [بیٹوں, ⠃⠊⠪⠺⠰] # Words for "unleavened" - [بے خمِیری, ⠤⠭⠍⠊⠗⠊] # Words for "innocent" - [بے گُناہ, ⠤⠛⠥⠢⠓] - [بے گُناہوں, ⠤⠛⠥⠢⠓⠺⠰] # Contraction 136 used for اَور and اور - [اور, ⠥] - [اَور, ⠥, {xfail: {backward: Alternative spellings legitimate in print}}] # Dots 3-3 used for repeated words (not 6-6 as in old table) - [ٹِھیک ٹِھیک, ⠕⠄⠄] - [عُضوعُضو, ⠷⠥⠫⠺⠄⠄] - [ڈبوڈبو, ⠬⠃⠺⠄⠄] # Contraction dots 25 is no longer used for با at start of word - [بادشاہ, ⠃⠁⠙⠩⠁⠓] - [باعث, ⠃⠹] - [باعِث, ⠃⠹, {xfail: {backward: Alternative spellings legitimate in print}}] - [بات, ⠃⠁⠞] - [بازُو, ⠃⠁⠵⠺] - [باپ, ⠃⠁⠏] - [بادل, ⠃⠁⠙⠇] - [باہر, ⠃⠁⠓⠗] - [باغ باغ, ⠃⠁⠣⠄⠄] - [باتیں, ⠃⠁⠞⠊⠰] - [باتوں, ⠃⠁⠞⠺⠰] - [بابت, ⠃⠁⠃⠞] - [باندھا, ⠃⠔⠙⠦⠁] # Contraction dots 34 is no longer used for ہو - [ہو,⠓⠺] - [ہو۔,⠓⠺⠲] - [ہوں, ⠓⠺⠰] - [ہُوئی,⠓⠰⠊] - [ہُوئی,⠓⠰⠊, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُوئی۔,⠓⠰⠊⠲] - [ہُوئی۔,⠓⠰⠊⠲, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُؤا,⠓⠺⠁] - [ہُؤا,⠓⠺⠁, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُؤا۔,⠓⠺⠁⠲] - [ہُؤا۔,⠓⠺⠁⠲, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُوئے,⠓⠰⠌] - [ہُوئے,⠓⠰⠌, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُوئے۔,⠓⠰⠌⠲] - [ہُوئے۔,⠓⠰⠌⠲, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُوئیں,⠓⠰⠊⠰] - [ہُوئیں,⠓⠰⠊⠰, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُوئِیں,⠓⠰⠊⠰, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہُوئِیں۔,⠓⠰⠊⠰⠲, {xfail: {backward: Alternative spellings legitimate in print}}] - [ہو گا, ⠓⠺⠀⠛⠁] - [ہو گی, ⠓⠺⠀⠛⠊] - [ہوتا, ⠓⠺⠞⠁] - [ہوتے, ⠓⠺⠞⠌] - [ہوتی, ⠓⠺⠞⠊] - [ہو تو, ⠓⠺⠀⠞] - [ہونے, ⠓⠺⠼] # Contraction 256 is no longer used for تا - [تارِیکی,⠞⠁⠗⠊⠅⠊] - [نفتالی,⠝⠋⠞⠁⠇⠊] - [تالابوں, ⠞⠁⠧⠃⠺⠰] - [بتانا, ⠃⠞⠁⠢] - [پچھتانے, ⠏⠡⠞⠔⠌] - [مُمتاز, ⠍⠥⠍⠞⠁⠵] - [بتاتا, ⠃⠞⠁⠞⠁] - [بتایا, ⠃⠞⠁⠽] - [تاکیداً, ⠞⠁⠅⠊⠙⠠] - [سُتاری, ⠎⠥⠞⠁⠗⠊] - [تاکِستان, ⠞⠁⠅⠑⠎⠞⠔] - [تازہ, ⠞⠁⠵⠓] - [ستّاون, ⠎⠠⠞⠁⠺⠝] # Contraction 46 is no longer used for کھ - [دیکھ, ⠙⠊⠅⠦] - [دیکھا, ⠙⠊⠅⠦⠁] - [کھیت, ⠅⠦⠊⠞] - [دِکھاؤُں, ⠙⠑⠅⠦⠈⠥⠺⠰] - [رکھنا, ⠗⠅⠦⠢] - [کھائی, ⠅⠦⠈⠊] - [کھانا, ⠅⠦⠔⠁] - [دِکھائی, ⠙⠑⠅⠦⠈⠊] - [آنکھوں, ⠜⠝⠅⠦⠺⠰] - [کھولتے, ⠅⠦⠺⠇⠞⠌] - [کِھلا, ⠅⠦⠑⠧] - [دِکھانے, ⠙⠅⠦⠔⠌] - [آنکھ, ⠜⠝⠅⠦] - [رکھّا, ⠗⠠⠅⠦⠁] - [کھڑے, ⠅⠦⠻⠌] - [سِکھایا, ⠎⠑⠅⠦⠁⠽] - [دیکھتے دیکھتے, ⠙⠊⠅⠦⠞⠌⠄⠄] - [دیکھنے, ⠙⠊⠅⠦⠼] - [رکھّو, ⠗⠠⠅⠦⠺] - [رکھتے, ⠗⠅⠦⠞⠌] - [رکھتا, ⠗⠅⠦⠞⠁] # DOT 5 CONTRACTIONS # دار DAL, ALEF, REH - 5-145 - [دار, ⠐⠙] - [داریاں, ⠐⠙⠽⠰] - [سردار, ⠎⠗⠐⠙] - [سرداروں, ⠎⠗⠐⠙⠺⠰] - [شبِیہدار, ⠩⠃⠑⠊⠓⠐⠙] - [ذِمّہداریاں, ⠮⠑⠠⠍⠓⠐⠙⠽⠰] # Join to previous word if spaced. Forward only. - [شبِیہ دار, ⠩⠃⠑⠊⠓⠐⠙, {xfail: {backward: Alternative spellings legitimate in print}}] - [ذِمّہ داریاں, ⠮⠑⠠⠍⠓⠐⠙⠽⠰, {xfail: {backward: Alternative spellings legitimate in print}}] # کار KEHEH, ALEF, REH - 5-13 only when middle or end of word - [کار, ⠅⠁⠗] - [اِشکار, ⠁⠑⠩⠐⠅] - [ترکارِیوں, ⠞⠗⠐⠅⠑⠐⠌] # Contraction dots 456-12 - [بالکل, ⠸⠃] - [بالکُل, ⠸⠃, {xfail: {backward: Alternative spellings legitimate in print}}] # ALEF (\x0627) followed by YEH WITH HAMZA ABOVE(\x0626) ائ # should be contracted to dot 4, overiding other possible contractions like 1236 for لا and 26 for نا. # but may be contained within a contraction like 456-124 - [اسرائیل, ⠑⠗⠈⠊⠇] - [بھائی, ⠆⠈⠊] - [جائیں, ⠚⠈⠊⠰] - [جائے, ⠚⠈⠌] - [ستائیں, ⠎⠞⠈⠊⠰] - [دائیوں, ⠙⠈⠐⠌] # لائ - [پِلائیں, ⠏⠑⠇⠈⠊⠰] - [بلائیں, ⠃⠇⠈⠊⠰] - [پَھیلائے, ⠖⠂⠊⠇⠈⠌] - [لاؤُں, ⠇⠈⠥⠺⠰] # نائ - [بنائے, ⠃⠝⠈⠌] - [بنائیں, ⠃⠝⠈⠊⠰] - [سُنائے, ⠎⠥⠝⠈⠌] # within longer contractions - [لائے, ⠇⠈⠌] - [فائدہ, ⠸⠋] - [بے فائدہ, ⠤⠸⠋] # Alef with Madda Above (\x0622) sometimes appears separately # as Alef then Madda Above(\x0627\x0653). Backtranslation will fail # in these cases. - [زمِین و آسمان,⠵⠍⠑⠊⠝⠤⠜⠎⠍⠔] - [زمِین و آسمان,⠵⠍⠑⠊⠝⠤⠜⠎⠍⠔, {xfail: {backward: Alternative spellings legitimate in print}}] - [آسمان,⠜⠎⠍⠔] - [آسمان,⠜⠎⠍⠔, {xfail: {backward: Alternative spellings legitimate in print}}] # Yeh with Hamza Above (\x0626) sometimes appears separately # as Yeh then Hamza above (\x064A\x0654). Backtranslation will fail # in these cases. - [جائے۔, ⠚⠈⠌⠲] - [جائے۔, ⠚⠈⠌⠲, {xfail: {backward: Alternative spellings legitimate in print}}] - [اِسرائیلیوں, ⠑⠗⠈⠊⠇⠐⠌, {xfail: {backward: Alternative spellings legitimate in print}}] - [گئی۔, ⠛⠄⠊⠲] - [گئی۔, ⠛⠄⠊⠲, {xfail: {backward: Alternative spellings legitimate in print}}] - [گئے, ⠛⠄⠌, {xfail: {backward: Alternative spellings legitimate in print}}] - [آئے, ⠜⠄⠌, {xfail: {backward: Alternative spellings legitimate in print}}] # Waw with Hamza Above (\x0624) sometimes appears separately # as Waw then Hamza above (\x0648\x0654). Backtranslation will fail # in these cases. - [گہراؤ,⠛⠓⠗⠈⠺] - [گہراؤ,⠛⠓⠗⠈⠺, {xfail: {backward: Alternative spellings legitimate in print}}] - [جناؤ, ⠚⠝⠈⠺] - [جناؤ, ⠚⠝⠈⠺, {xfail: {backward: Alternative spellings legitimate in print}}] - [پہناؤ, ⠏⠓⠝⠈⠺] - [پہناؤ, ⠏⠓⠝⠈⠺, {xfail: {backward: Alternative spellings legitimate in print}}] - [بناؤ, ⠃⠝⠈⠺] - [بناؤ, ⠃⠝⠈⠺, {xfail: {backward: Alternative spellings legitimate in print}}] - [بناؤُں, ⠃⠝⠈⠥⠺⠰] - [بناؤُں, ⠃⠝⠈⠥⠺⠰, {xfail: {backward: Alternative spellings legitimate in print}}] # wordsign 1245 - [اگر, ⠛] # wordsign 34 - [یہی, ⠌] - [یِہی, ⠌, {xfail: {backward: Alternative spellings legitimate in print}}] # wordsign 134 - [میں, ⠍] - [مَیں نے, ⠍⠀⠼] - [مَیں, ⠍⠂⠊⠰] # wordsign 14 - various spellings - [چاہیے, ⠉] - [چاہئے, ⠉, {xfail: {backward: Alternative spellings legitimate in print}}] - [چاہئے, ⠉, {xfail: {backward: Alternative spellings legitimate in print}}] - [چاہِئے, ⠉, {xfail: {backward: Alternative spellings legitimate in print}}] # words ending in ئے - [کِئے, ⠅⠊⠌] - [دِئے, ⠙⠊⠌] - [دئے, ⠙⠊⠌, {xfail: {backward: Alternative spellings legitimate in print}}] - [دئِے, ⠙⠊⠌, {xfail: {backward: Alternative spellings legitimate in print}}] # 46-125 contraction at end of word - [نِگاہ, ⠝⠨⠓] - [نگاہ, ⠝⠨⠓, {xfail: {backward: Alternative spellings legitimate in print}}] - [قُربان گاہ, ⠟⠥⠗⠃⠔⠨⠓] - [آرام گاہ, ⠜⠗⠁⠍⠨⠓] - [خَیمہ گاہ, ⠭⠂⠊⠍⠓⠨⠓] - [لشکر گاہ, ⠇⠩⠅⠗⠨⠓] # 5-34 contraction at end of word - [کیوں, ⠅⠐⠌] # wordsign 236 but not if attached to lower dot sign, eg. fullstop - [ہر, ⠦] - [ہر۔, ⠓⠗⠲] # wordsign 23 but not if attached to lower dot sign, eg. fullstop. - [بھی, ⠆] - [بھی۔, ⠆⠊⠲] # word 5-345 spelling variations - [آئندہ, ⠐⠜] - [آئندہ, ⠐⠜, {xfail: {backward: Alternative spellings legitimate in print}}] - [آئندہ, ⠐⠜, {xfail: {backward: Alternative spellings legitimate in print}}] - [آئندہ, ⠐⠜, {xfail: {backward: Alternative spellings legitimate in print}}] - [آیندہ, ⠐⠜, {xfail: {backward: Alternative spellings legitimate in print}}] - [آٔندہ, ⠐⠜, {xfail: {backward: Alternative spellings legitimate in print}}] - [آٔندہ, ⠐⠜, {xfail: {backward: Alternative spellings legitimate in print}}] # Shortform dots 134-12 spelling variations - [مُناسِب, ⠍⠃] - [مناسب, ⠍⠃, {xfail: {backward: Alternative spellings legitimate in print}}] - [مناسِب, ⠍⠃, {xfail: {backward: Alternative spellings legitimate in print}}] # ignore ُ (\x064F DAMMA) in these words - [زُبان, ⠵⠃⠔] - [ہارُون, ⠓⠁⠗⠺⠝] - [بےشُمار, ⠤⠩⠍⠁⠗] - [بُلند, ⠃⠇⠝⠙] - [پُوری, ⠏⠺⠗⠊] # ignore َ (\x064E FATHA) in these words - [عَمرام, ⠷⠍⠗⠁⠍] - [تَو, ⠞⠺] - [جَیسا, ⠚⠊⠎⠁] # ignore ِ (\x0650 KASRA) in these words - [عِبادت, ⠷⠃⠁⠙⠞] - [ہڈِّیوں, ⠓⠠⠬⠐⠌] - [چِکنا, ⠉⠅⠢] # Word for "shepherds" - [گڈریے,⠛⠬⠗⠊⠌] - [گڈرئے,⠛⠬⠗⠊⠌, {xfail: {backward: Alternative spellings legitimate in print}}] # Word for "forever" - [ابدُالآباد, ⠁⠃⠙⠥⠇⠜⠃⠁⠙] - [ابدُالآباد, ⠁⠃⠙⠥⠇⠜⠃⠁⠙, {xfail: {backward: Alternative spellings legitimate in print}}] # Word for "face to face" - [رُوبرُو, ⠗⠥⠺⠀⠃⠗⠥⠺] - [رُوبرو, ⠗⠥⠺⠀⠃⠗⠥⠺, {xfail: {backward: Alternative spellings legitimate in print}}] # Word for "sale" - [بیچ, ⠃⠊⠉] # Word for "favouritism" - [طرفداری, ⠐⠾⠐⠙⠊] # Word for "Exodus" - [خُرُوج, ⠭⠥⠗⠥⠺⠚] - [خرُوج, ⠭⠥⠗⠥⠺⠚, {xfail: {backward: Alternative spellings legitimate in print}}] # Word for "Emroidered" - [بُوٹے دار, ⠃⠥⠺⠪⠌⠐⠙] # Word including new character \x06C2 to go to dots 125-3 - [خَیمۂ, ⠭⠂⠊⠍⠓⠄] # Names ending in ALEF, YEH, LAM often have a space separating these letters from beginning # - remove this space - [سلُومی ایل, ⠎⠇⠥⠺⠍⠊⠁⠊⠇] # Same ending as above but with Urdu for "ites" on the end - [عُزّی ایلِیوں, ⠷⠥⠠⠵⠊⠁⠊⠇⠑⠐⠌] # List of words which work in both directions flags: {testmode: bothDirections} tests: - [بیابان, ⠃⠽⠃⠔] - [لگیں, ⠇⠛⠊⠰] - [خُدا,⠭⠥⠙⠁] - [نے,⠼] - [اِبتدا,⠁⠑⠃⠞⠙⠁] - [میں,⠍] - [کو,⠻] - [پَیدا,⠏⠂⠊⠙⠁] - [کِیا۔,⠅⠑⠽⠲] - [اور,⠥] - [زمِین,⠵⠍⠑⠊⠝] - [وِیران,⠺⠑⠊⠗⠔] - [سُنسان,⠎⠥⠝⠎⠔] - [تھی,⠳⠊] - [کے,⠅⠌] - [اُوپر,⠘⠥] - [اندھیرا,⠔⠙⠦⠊⠗⠁] - [تھا,⠳⠁] - [رُوح,⠗⠥⠺⠱] - [پانی,⠏⠔⠊] - [سطح,⠎⠾⠱] - [پر,⠏] - [جُنبِش,⠚⠥⠝⠃⠑⠩] - [کرتی,⠅⠗⠞⠊] - [تھی۔,⠳⠊⠲] - [کہا،,⠅⠓⠁⠂] - [کہ,⠅] - [رَوشنی,⠗⠂⠺⠩⠝⠊] - [جا,⠚⠁] - [جا,⠚⠁] - [اچھّی,⠁⠠⠡⠊] - [ہے,⠓] - [سے,⠎] - [جُدا,⠚⠥⠙⠁] - [تو,⠞] - [دِن,⠙⠑⠝] - [رات,⠗⠁⠞] - [شام,⠩⠁⠍] - [صُبح,⠯⠥⠃⠱] - [سو,⠎⠺] - [پہلا,⠸⠏⠁] - [پانیوں,⠏⠔⠐⠌] - [درمیان,⠙⠗⠍⠽⠝] - [فضا,⠋⠫⠁] - [تاکہ,⠠⠞] - [پس,⠏⠎] - [بنایا,⠃⠢⠽] - [نِیچے,⠝⠑⠊⠉⠌] - [دُوسرا,⠙⠥⠺⠎⠗⠁] - [پَیدایش,⠏⠂⠊⠙⠁⠊⠩] - [جگہ,⠚⠛⠓] - [جمع,⠚⠍⠷] - [خُشکی,⠭⠥⠩⠅⠊] - [نظر,⠐⠝]