Debian Codegraph @

tests/braille-specs/hbo.yaml

raw symbols SCIP
1 # Test for Classical / Biblical Hebrew
2
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved. This file is offered as-is,
6 # without any warranty.
7
8 display: unicode-without-blank.dis
9 table: {language: hbo, system: IHBC, __assert-match: hbo.utb}
10 flags: { testmode: forward }
11 tests:
12 # Unvocalized text tests
13 - ['אבגדהוזחטיכלמנסעפצקרשת', '⠁⠧⠛⠙⠓⠺⠵⠭⠞⠚⠡⠇⠍⠝⠎⠫⠋⠮⠟⠗⠩⠹']
14 ## Yiddish ligatures (forward-only)
15 - ['גױם', '⠛⠺⠚⠍']
16 - ['חײם', '⠭⠚⠚⠍']
17 - ['װ', '⠺⠺']
18 - ['בך בם בן בף בץ', '⠧⠡ ⠧⠍ ⠧⠝ ⠧⠋ ⠧⠮']
19 - ['בך. בם, בן; בף: בץ', '⠧⠡⠲ ⠧⠍⠂ ⠧⠝⠆ ⠧⠋⠒ ⠧⠮']
20 - ['בך׃ בם׃ בן׃ בף׃ בץ׃', '⠧⠡⠲ ⠧⠍⠲ ⠧⠝⠲ ⠧⠋⠲ ⠧⠮⠲']
21
22 # Cantillated text with uncantillated output
23 ## Initial tests
24 - ["שְׁמַ֖ע", "⠩⠄⠍⠉⠫"]
25 - ["יִשְׂרָאֵ֑ל", "⠚⠊⠱⠄⠗⠣⠁⠌⠇⠆"]
26 - ["יְהוָ֥ה", "⠚⠄⠓⠺⠣⠓"]
27 - ["אֱלֹהֵ֖ינוּ", "⠁⠢⠇⠕⠓⠼⠝⠬"]
28 - ["יְהוָ֥ה׀", "⠚⠄⠓⠺⠣⠓⠸"]
29 - ["אֶחָֽד׃", "⠁⠑⠭⠣⠙⠲"]
30 - ["וְאָ֣הַבְתָּ֔", "⠺⠄⠁⠣⠓⠉⠧⠄⠳⠣⠂"]
31 - ["אֵ֖ת", "⠁⠌⠹"]
32 - ["יְהוָ֣ה", "⠚⠄⠓⠺⠣⠓"]
33 - ["אֱלֹהֶ֑יךָ", "⠁⠢⠇⠕⠓⠑⠚⠡⠣⠆"]
34 - ["בְּכָל־לְבָבְךָ֥", "⠃⠄⠡⠣⠇⠤⠇⠄⠧⠣⠧⠄⠡⠣"]
35 - ["וּבְכָל־נַפְשְׁךָ֖", "⠬⠧⠄⠡⠣⠇⠤⠝⠉⠋⠄⠩⠄⠡⠣"]
36 - ["וּבְכָל־מְאֹדֶֽךָ׃", "⠬⠧⠄⠡⠣⠇⠤⠍⠄⠁⠕⠙⠑⠡⠣⠲"]
37
38 ## Final letters with dagesh
39 - ['אַל־תּ֥וֹסְףְּ', '⠁⠉⠇⠤⠳⠪⠎⠄⠏⠄']
40 - ['אַל־תּ֥וֹסְףְּ ', '⠁⠉⠇⠤⠳⠪⠎⠄⠏⠄ ']
41 - ['וַתֵּבְךְּ', '⠺⠉⠳⠌⠧⠄⠅⠄']
42 - ['וַתֵּבְךְּ ', '⠺⠉⠳⠌⠧⠄⠅⠄ ']
43
44 ## BFKT followed by shuruq
45 - ['רְדָפוּךָ', '⠗⠄⠙⠣⠋⠬⠡⠣']
46
47 ## Mappiq
48 - ['וַיֹּ֣אמְרוּ לָ֔הּ', '⠺⠉⠐⠚⠕⠁⠍⠄⠗⠬ ⠇⠣⠘⠓⠂']
49
50 ## Tests of shuruq and dagesh waw
51 # Consonantal waw with dagesh forte followed by a vowel: חַוָּה (Eve),
52 # Genesis 3:20. The waw is a doubled consonant, not a shuruq (⠬).
53 - ['חַוָּ֑ה', '⠭⠉⠐⠺⠣⠓⠆']
54 - ['צִוָּ֥ה', '⠮⠊⠐⠺⠣⠓']
55 - ['צִוִּיתִ֔ים', '⠮⠊⠐⠺⠔⠹⠔⠍⠂']
56 - ['מִֽי־יָשׂ֣וּם אִלֵּ֔ם א֣וֹ חֵרֵ֔שׁ א֥וֹ פִקֵּ֖חַ א֣וֹ עִוֵּ֑ר', '⠍⠔⠤⠚⠣⠱⠬⠍ ⠁⠊⠐⠇⠌⠍⠂ ⠁⠪ ⠭⠌⠗⠌⠩⠂ ⠁⠪ ⠋⠊⠐⠟⠌⠭⠉ ⠁⠪ ⠫⠊⠐⠺⠌⠗⠆']
57
58 ## Alternate holam-waw character orders
59 - ['23 1 ‮מִזְמֹ֥ור', '⠼⠃⠉ ⠼⠁ ⠍⠊⠵⠄⠍⠪⠗']
60 - ['מִזְמ֥וֹר', '⠍⠊⠵⠄⠍⠪⠗']
61
62 ## Test of consonantal waw followed by holam
63 - ['עֲוֹנִ֖י', '⠫⠒⠺⠕⠝⠔']
64 - ['צַוֹּתוֹ', '⠮⠉⠐⠺⠕⠹⠪']
65 - ['בְּצַוֹּ֥ת', '⠃⠄⠮⠉⠐⠺⠕⠹']
66
67 ## Tests of sin and shin with dagesh and vowels
68 - ['אַשּׁ֑וּר', '⠁⠉⠐⠩⠬⠗⠆']
69 - ['לְאִשָּׁ֑ה', '⠇⠄⠁⠊⠐⠩⠣⠓⠆']
70 - ['מִשֹּׂנְאָ֑י', '⠍⠊⠐⠱⠕⠝⠄⠁⠣⠚⠆']
71
72 ## Tests of longer text
73 - ['וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֙הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃', '⠺⠄⠓⠣⠁⠣⠗⠑⠮ ⠓⠣⠚⠄⠹⠣⠓ ⠹⠕⠓⠬ ⠺⠣⠧⠕⠓⠬⠂ ⠺⠄⠭⠕⠩⠑⠡⠄ ⠫⠉⠇⠤⠏⠄⠝⠼ ⠹⠄⠓⠪⠍⠆ ⠺⠄⠗⠬⠭⠉ ⠁⠢⠇⠕⠓⠔⠍⠂ ⠍⠄⠗⠉⠭⠑⠋⠑⠹ ⠫⠉⠇⠤⠏⠄⠝⠼ ⠓⠉⠐⠍⠣⠚⠊⠍⠲']
74 - ['לָכֵ֤ן חַכּוּ־לִי֙ נְאֻם־יְהֹוָ֔ה לְי֖וֹם קוּמִ֣י לְעַ֑ד', '⠇⠣⠡⠌⠝ ⠭⠉⠅⠬⠤⠇⠔ ⠝⠄⠁⠥⠍⠤⠚⠄⠓⠕⠺⠣⠓⠂ ⠇⠄⠚⠪⠍ ⠟⠬⠍⠔ ⠇⠄⠫⠉⠙⠆']
75 - ['כִּ֣י מִשְׁפָּטִי֩ לֶאֱסֹ֨ף גּוֹיִ֜ם לְקׇבְצִ֣י מַמְלָכ֗וֹת לִשְׁפֹּ֨ךְ עֲלֵיהֶ֤ם זַעְמִי֙ כֹּ֚ל חֲר֣וֹן אַפִּ֔י', '⠅⠔ ⠍⠊⠩⠄⠏⠣⠞⠔ ⠇⠑⠁⠢⠎⠕⠋ ⠐⠛⠪⠚⠊⠍ ⠇⠄⠟⠣⠧⠄⠮⠔ ⠍⠉⠍⠄⠇⠣⠡⠪⠹ ⠇⠊⠩⠄⠏⠕⠡⠄ ⠫⠒⠇⠼⠓⠑⠍ ⠵⠉⠫⠄⠍⠔ ⠅⠕⠇ ⠭⠒⠗⠪⠝ ⠁⠉⠏⠔⠂']
76 - ['כִּ֚י בְּאֵ֣שׁ קִנְאָתִ֔י תֵּאָכֵ֖ל כׇּל־הָאָֽרֶץ׃', '⠅⠔ ⠃⠄⠁⠌⠩ ⠟⠊⠝⠄⠁⠣⠹⠔⠂ ⠳⠌⠁⠣⠡⠌⠇ ⠅⠣⠇⠤⠓⠣⠁⠣⠗⠑⠮⠲']
77
78 # Bilingual Hebrew text with Roman reference (taken from Accordance)
79 - ['Gen. 1:3 וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃', '⠠⠛⠑⠝⠲ ⠼⠁⠒⠼⠉ ⠺⠉⠐⠚⠕⠁⠍⠑⠗ ⠁⠢⠇⠕⠓⠔⠍ ⠚⠄⠓⠔ ⠁⠪⠗⠆ ⠺⠉⠚⠄⠓⠔⠤⠁⠪⠗⠲']
80
81 # Tests with broken and reconstructed text (from Accordance)
82 - ['Psa. 115:1‏ ‎ (4Q96 f1:2) •‏ [ לוא] לנו יהוה ולוא [לנו כיא לשמכה', '⠠⠏⠎⠁⠲ ⠼⠁⠁⠑⠒⠼⠁ ⠐⠣⠼⠙⠠⠟⠼⠊⠋ ⠋⠼⠁⠒⠼⠃⠐⠜ ⠸⠲ ⠨⠣ ⠇⠺⠁⠨⠜ ⠇⠝⠺ ⠚⠓⠺⠓ ⠺⠇⠺⠁ ⠨⠣⠇⠝⠺ ⠡⠚⠁ ⠇⠩⠍⠡⠓']
83 - ['תן כבוד על חסדכה על]‎ (4Q96 f1:3) ‏[אמתכה ].', '⠹⠝ ⠡⠧⠺⠙ ⠫⠇ ⠭⠎⠙⠡⠓ ⠫⠇⠨⠜ ⠐⠣⠼⠙⠠⠟⠼⠊⠋ ⠋⠼⠁⠒⠼⠉⠐⠜ ⠨⠣⠁⠍⠹⠡⠓ ⠨⠜⠲']
84
85 # Sample bilingual instructional material
86 - ['3b. Qal impf. 3ms יַעֲזֹ֣ב “he will leave”', '⠼⠉⠰⠃⠲ ⠠⠟⠁⠇ ⠊⠍⠏⠋⠲ ⠼⠉⠍⠎ ⠚⠉⠫⠒⠵⠕⠧ ⠦⠓⠑ ⠺⠊⠇⠇ ⠇⠑⠁⠧⠑⠴']
87
88 # Tests from Mechon Mamre, a popular site for Hebrew scriptures.
89 - ["יוֹתָם", "⠚⠪⠹⠣⠍"]
90 - ["אָחָז", "⠁⠣⠭⠣⠵"]
91 - ["יְחִזְקִיָּהוּ", "⠚⠄⠭⠊⠵⠄⠟⠊⠐⠚⠣⠓⠬"]
92 - ["מַלְכֵי", "⠍⠉⠇⠄⠡⠼"]
93 - ["יְהוּדָה", "⠚⠄⠓⠬⠙⠣⠓"]
94 - ["שִׁמְעוּ", "⠩⠊⠍⠄⠫⠬"]
95 - ["שָׁמַיִם", "⠩⠣⠍⠉⠚⠊⠍"]
96 - ["וְהַאֲזִינִי", "⠺⠄⠓⠉⠁⠒⠵⠔⠝⠔"]
97 - ["אֶרֶץ", "⠁⠑⠗⠑⠮"]
98 - ["כִּי", "⠅⠔"]
99 - ["יְהוָה", "⠚⠄⠓⠺⠣⠓"]
100 - ["דִּבֵּר", "⠐⠙⠊⠃⠌⠗"]
101 - ["בָּנִים", "⠃⠣⠝⠔⠍"]
102 - ["גִּדַּלְתִּי", "⠐⠛⠊⠐⠙⠉⠇⠄⠳⠔"]
103 - ["וְרוֹמַמְתִּוְהֵם", "⠺⠄⠗⠪⠍⠉⠍⠄⠳⠊⠺⠄⠓⠌⠍"]
104 - ["פָּשְׁעוּ", "⠏⠣⠩⠄⠫⠬"]
105 - ["בִי", "⠧⠔"]
106
107 # These are tests which are taken from Tractate Peah from Sefaria.org.
108 - ["אֵלּוּ", "⠁⠌⠐⠇⠬"]
109 - ["דְבָרִים", "⠙⠄⠧⠣⠗⠔⠍"]
110 - ["שֶׁאֵין", "⠩⠑⠁⠼⠝"]
111 - ["לָהֶם", "⠇⠣⠓⠑⠍"]
112 - ["שִׁעוּר", "⠩⠊⠫⠬⠗"]
113 - ["הַפֵּאָה", "⠓⠉⠏⠌⠁⠣⠓"]
114 - ["וְהַבִּכּוּרִים", "⠺⠄⠓⠉⠃⠊⠅⠬⠗⠔⠍"]
115 - ["וְהָרֵאָיוֹן", "⠺⠄⠓⠣⠗⠌⠁⠣⠚⠪⠝"]
116 - ["וּגְמִילוּת", "⠬⠛⠄⠍⠔⠇⠬⠹"]
117
118 # Tests for latin characters and punctuation
119 - [",test", "⠂⠞⠑⠎⠞"]
120 - [";test", "⠆⠞⠑⠎⠞"]
121
122 # Bi-directional tests
123 flags: { testmode: bothDirections }
124 tests:
125
126 # Alphabet
127 - ['אבגדהוזחטיכלמנסעפצקרשׂשׁת', '⠁⠧⠛⠙⠓⠺⠵⠭⠞⠚⠡⠇⠍⠝⠎⠫⠋⠮⠟⠗⠱⠩⠹']
128 - ['בך בם בן בף בץ', '⠧⠡ ⠧⠍ ⠧⠝ ⠧⠋ ⠧⠮']
129 - ['בך׃ בם׃ בן׃ בף׃ בץ׃', '⠧⠡⠲ ⠧⠍⠲ ⠧⠝⠲ ⠧⠋⠲ ⠧⠮⠲']
130 - ['כ מ נ פ צ', '⠡ ⠍ ⠝ ⠋ ⠮']
131
132 # Vocalized text
133 # If characters are typed in the correct order, bi-directional translation is possible.
134 # However, braille input can be back-translated and then unicode
135 # normalization will standardize order (see back translation below).
136 - ["אֱלֹהֵינוּ", "⠁⠢⠇⠕⠓⠼⠝⠬"]
137 - ["אֶחָד׃", "⠁⠑⠭⠣⠙⠲"]
138 - ["וְאָהַבְתָּ", "⠺⠄⠁⠣⠓⠉⠧⠄⠳⠣"]
139 - ["אֵת", "⠁⠌⠹"]
140 - ["יְהוָה", "⠚⠄⠓⠺⠣⠓"]
141 - ["אֱלֹהֶיךָ", "⠁⠢⠇⠕⠓⠑⠚⠡⠣"]
142 - ["בְּכָל־לְבָבְךָ", "⠃⠄⠡⠣⠇⠤⠇⠄⠧⠣⠧⠄⠡⠣"]
143 - ["וּבְכָל־נַפְשְׁךָ", "⠬⠧⠄⠡⠣⠇⠤⠝⠉⠋⠄⠩⠄⠡⠣"]
144 - ["וּבְכָל־מְאֹדֶךָ׃", "⠬⠧⠄⠡⠣⠇⠤⠍⠄⠁⠕⠙⠑⠡⠣⠲"]
145 - ["גִּדַּלְתִּי", "⠐⠛⠊⠐⠙⠉⠇⠄⠳⠔"]
146
147 ## Non-contracting dagesh followed by a vowel
148 ### Dagesh + qamats (dots 5-126)
149 - ["הַדָּבָר", "⠓⠉⠐⠙⠣⠧⠣⠗"]
150 - ["הַמָּיִם", "⠓⠉⠐⠍⠣⠚⠊⠍"]
151 - ["צִוָּה", "⠮⠊⠐⠺⠣⠓"]
152 - ["כֻּלָּם", "⠅⠥⠐⠇⠣⠍"]
153 - ["אֻמָּה", "⠁⠥⠐⠍⠣⠓"]
154 - ["חַטָּאת", "⠭⠉⠐⠞⠣⠁⠹"]
155 - ["גָּדוֹל", "⠐⠛⠣⠙⠪⠇"]
156 - ["וַיָּקָם", "⠺⠉⠐⠚⠣⠟⠣⠍"]
157 - ["עִמָּהֶם", "⠫⠊⠐⠍⠣⠓⠑⠍"]
158 ### Dagesh + tsere (dots 5-34)
159 - ["אִלֵּם", "⠁⠊⠐⠇⠌⠍"]
160 - ["וַיַּבְדֵּל", "⠺⠉⠐⠚⠉⠧⠄⠐⠙⠌⠇"]
161 - ["מִקֵּץ", "⠍⠊⠐⠟⠌⠮"]
162 - ["וַיֵּרֶד", "⠺⠉⠐⠚⠌⠗⠑⠙"]
163 - ["הִנֵּנִי׃", "⠓⠊⠐⠝⠌⠝⠔⠲"]
164 ### Shin and sin with dagesh and a vowel
165 - ["הַשָּׁמַיִם", "⠓⠉⠐⠩⠣⠍⠉⠚⠊⠍"]
166 - ["לְאִשָּׁה", "⠇⠄⠁⠊⠐⠩⠣⠓"]
167 - ["מִשֹּׂנְאָי", "⠍⠊⠐⠱⠕⠝⠄⠁⠣⠚"]
168 ### Contracting dagesh
169 - ["בָּתִּים", "⠃⠣⠳⠔⠍"]
170
171 ## Mappiq he at the end of a word
172 - ["וּלְשָׁמְרָהּ׃", "⠬⠇⠄⠩⠣⠍⠄⠗⠣⠘⠓⠲"]
173 - ["גָּבֹהַּ", "⠐⠛⠣⠧⠕⠘⠓⠉"]
174
175 ## Consonantal waw with holam haser for vav (U+05BA)
176 - ["עֲוֺנִי", "⠫⠒⠺⠕⠝⠔"]
177
178 ## Unpointed waw-yod, yod-yod and waw-waw sequences
179 - ['גוים', '⠛⠺⠚⠍']
180 - ['ויאמר', '⠺⠚⠁⠍⠗']
181 - ['דויד', '⠙⠺⠚⠙']
182 - ['חיים', '⠭⠚⠚⠍']
183 - ['מצוות', '⠍⠮⠺⠺⠹']
184
185 # One vocalization phenomenon per word. The expected text uses the
186 # back-translator's character order: consonant, shin/sin dot, dagesh,
187 # vowel.
188 ## BGDKPT letters with a contracting dagesh
189 - ["בְּרֵאשִׁית", "⠃⠄⠗⠌⠁⠩⠔⠹"]
190 - ["תּוֹרָה", "⠳⠪⠗⠣⠓"]
191 - ["בַּיִת", "⠃⠉⠚⠊⠹"]
192
193 ## Non-contracting dagesh
194 - ["גּוֹיִם", "⠐⠛⠪⠚⠊⠍"]
195
196 ## Dagesh followed by other vowels
197 - ["שַׁבָּת", "⠩⠉⠃⠣⠹"]
198 - ["אַפִּי", "⠁⠉⠏⠔"]
199 - ["הַמַּיִם", "⠓⠉⠐⠍⠉⠚⠊⠍"]
200 - ["עִזִּים", "⠫⠊⠐⠵⠔⠍"]
201 - ["סֻכָּה", "⠎⠥⠅⠣⠓"]
202
203 ## Mappiq
204 - ["לָהּ", "⠇⠣⠘⠓"]
205 - ["בָּהּ", "⠃⠣⠘⠓"]
206 - ["אַרְצָהּ", "⠁⠉⠗⠄⠮⠣⠘⠓"]
207
208 ## Shuruq
209 - ["הוּא", "⠓⠬⠁"]
210 - ["קוּמִי", "⠟⠬⠍⠔"]
211
212 ## Holam male and haser
213 - ["אוֹר", "⠁⠪⠗"]
214 - ["טוֹב", "⠞⠪⠧"]
215 - ["לֹא", "⠇⠕⠁"]
216 - ["כֹּל", "⠅⠕⠇"]
217
218 ## Furtive patah
219 - ["רוּחַ", "⠗⠬⠭⠉"]
220 - ["מָשִׁיחַ", "⠍⠣⠩⠔⠭⠉"]
221 - ["נֹחַ", "⠝⠕⠭⠉"]
222 - ["שָׁמֵעַ", "⠩⠣⠍⠌⠫⠉"]
223
224 ## Hataf vowels
225 - ["חֲלוֹם", "⠭⠒⠇⠪⠍"]
226 - ["הָאֱלֹהִים", "⠓⠣⠁⠢⠇⠕⠓⠔⠍"]
227 - ["אֳנִיָּה", "⠁⠜⠝⠊⠐⠚⠣⠓"]
228 - ["אֲשֶׁר", "⠁⠒⠩⠑⠗"]
229
230 ## Final letters
231 - ["מֶלֶךְ", "⠍⠑⠇⠑⠡⠄"]
232 - ["דֶּרֶךְ", "⠐⠙⠑⠗⠑⠡⠄"]
233 - ["כָּנָף", "⠅⠣⠝⠣⠋"]
234 - ["קֵץ", "⠟⠌⠮"]
235 - ["לְךָ", "⠇⠄⠡⠣"]
236 - ["בָּךְ", "⠃⠣⠡⠄"]
237 - ["גַּן", "⠐⠛⠉⠝"]
238 - ["יוֹמָם", "⠚⠪⠍⠣⠍"]
239
240 ## Maqaf compounds with final letters
241 - ["אִם־כֵּן", "⠁⠊⠍⠤⠅⠌⠝"]
242 - ["אֶל־הָעִיר", "⠁⠑⠇⠤⠓⠣⠫⠔⠗"]
243 - ["מִן־הָאָרֶץ", "⠍⠊⠝⠤⠓⠣⠁⠣⠗⠑⠮"]
244
245 ## Paseq
246 - ["אָמַר ׀ לוֹ", "⠁⠣⠍⠉⠗ ⠸ ⠇⠪"]
247
248 # Verses from the Westminster Leningrad Codex (public domain, J. Alan
249 # Groves Center, via openscriptures/morphhb), with cantillation marks
250 # and metegs removed.
251 ## Genesis 1:1
252 - ["בְּרֵאשִׁית בָּרָא אֱלֹהִים אֵת הַשָּׁמַיִם וְאֵת הָאָרֶץ׃", "⠃⠄⠗⠌⠁⠩⠔⠹ ⠃⠣⠗⠣⠁ ⠁⠢⠇⠕⠓⠔⠍ ⠁⠌⠹ ⠓⠉⠐⠩⠣⠍⠉⠚⠊⠍ ⠺⠄⠁⠌⠹ ⠓⠣⠁⠣⠗⠑⠮⠲"]
253 ## Genesis 1:2
254 - ["וְהָאָרֶץ הָיְתָה תֹהוּ וָבֹהוּ וְחֹשֶׁךְ עַל־פְּנֵי תְהוֹם וְרוּחַ אֱלֹהִים מְרַחֶפֶת עַל־פְּנֵי הַמָּיִם׃", "⠺⠄⠓⠣⠁⠣⠗⠑⠮ ⠓⠣⠚⠄⠹⠣⠓ ⠹⠕⠓⠬ ⠺⠣⠧⠕⠓⠬ ⠺⠄⠭⠕⠩⠑⠡⠄ ⠫⠉⠇⠤⠏⠄⠝⠼ ⠹⠄⠓⠪⠍ ⠺⠄⠗⠬⠭⠉ ⠁⠢⠇⠕⠓⠔⠍ ⠍⠄⠗⠉⠭⠑⠋⠑⠹ ⠫⠉⠇⠤⠏⠄⠝⠼ ⠓⠉⠐⠍⠣⠚⠊⠍⠲"]
255 ## Genesis 1:3
256 - ["וַיֹּאמֶר אֱלֹהִים יְהִי אוֹר וַיְהִי־אוֹר׃", "⠺⠉⠐⠚⠕⠁⠍⠑⠗ ⠁⠢⠇⠕⠓⠔⠍ ⠚⠄⠓⠔ ⠁⠪⠗ ⠺⠉⠚⠄⠓⠔⠤⠁⠪⠗⠲"]
257 ## Genesis 1:4
258 - ["וַיַּרְא אֱלֹהִים אֶת־הָאוֹר כִּי־טוֹב וַיַּבְדֵּל אֱלֹהִים בֵּין הָאוֹר וּבֵין הַחֹשֶׁךְ׃", "⠺⠉⠐⠚⠉⠗⠄⠁ ⠁⠢⠇⠕⠓⠔⠍ ⠁⠑⠹⠤⠓⠣⠁⠪⠗ ⠅⠔⠤⠞⠪⠧ ⠺⠉⠐⠚⠉⠧⠄⠐⠙⠌⠇ ⠁⠢⠇⠕⠓⠔⠍ ⠃⠼⠝ ⠓⠣⠁⠪⠗ ⠬⠧⠼⠝ ⠓⠉⠭⠕⠩⠑⠡⠄⠲"]
259 ## Genesis 1:5
260 - ["וַיִּקְרָא אֱלֹהִים ׀ לָאוֹר יוֹם וְלַחֹשֶׁךְ קָרָא לָיְלָה וַיְהִי־עֶרֶב וַיְהִי־בֹקֶר יוֹם אֶחָד׃", "⠺⠉⠐⠚⠊⠟⠄⠗⠣⠁ ⠁⠢⠇⠕⠓⠔⠍ ⠸ ⠇⠣⠁⠪⠗ ⠚⠪⠍ ⠺⠄⠇⠉⠭⠕⠩⠑⠡⠄ ⠟⠣⠗⠣⠁ ⠇⠣⠚⠄⠇⠣⠓ ⠺⠉⠚⠄⠓⠔⠤⠫⠑⠗⠑⠧ ⠺⠉⠚⠄⠓⠔⠤⠧⠕⠟⠑⠗ ⠚⠪⠍ ⠁⠑⠭⠣⠙⠲"]
261 ## Deuteronomy 6:4
262 - ["שְׁמַע יִשְׂרָאֵל יְהוָה אֱלֹהֵינוּ יְהוָה ׀ אֶחָד׃", "⠩⠄⠍⠉⠫ ⠚⠊⠱⠄⠗⠣⠁⠌⠇ ⠚⠄⠓⠺⠣⠓ ⠁⠢⠇⠕⠓⠼⠝⠬ ⠚⠄⠓⠺⠣⠓ ⠸ ⠁⠑⠭⠣⠙⠲"]
263 ## Deuteronomy 6:5
264 - ["וְאָהַבְתָּ אֵת יְהוָה אֱלֹהֶיךָ בְּכָל־לְבָבְךָ וּבְכָל־נַפְשְׁךָ וּבְכָל־מְאֹדֶךָ׃", "⠺⠄⠁⠣⠓⠉⠧⠄⠳⠣ ⠁⠌⠹ ⠚⠄⠓⠺⠣⠓ ⠁⠢⠇⠕⠓⠑⠚⠡⠣ ⠃⠄⠡⠣⠇⠤⠇⠄⠧⠣⠧⠄⠡⠣ ⠬⠧⠄⠡⠣⠇⠤⠝⠉⠋⠄⠩⠄⠡⠣ ⠬⠧⠄⠡⠣⠇⠤⠍⠄⠁⠕⠙⠑⠡⠣⠲"]
265 ## Psalm 23:1
266 - ["מִזְמוֹר לְדָוִד יְהוָה רֹעִי לֹא אֶחְסָר׃", "⠍⠊⠵⠄⠍⠪⠗ ⠇⠄⠙⠣⠺⠊⠙ ⠚⠄⠓⠺⠣⠓ ⠗⠕⠫⠔ ⠇⠕⠁ ⠁⠑⠭⠄⠎⠣⠗⠲"]
267 ## Psalm 23:2
268 - ["בִּנְאוֹת דֶּשֶׁא יַרְבִּיצֵנִי עַל־מֵי מְנֻחוֹת יְנַהֲלֵנִי׃", "⠃⠊⠝⠄⠁⠪⠹ ⠐⠙⠑⠩⠑⠁ ⠚⠉⠗⠄⠃⠔⠮⠌⠝⠔ ⠫⠉⠇⠤⠍⠼ ⠍⠄⠝⠥⠭⠪⠹ ⠚⠄⠝⠉⠓⠒⠇⠌⠝⠔⠲"]
269 ## Psalm 23:3
270 - ["נַפְשִׁי יְשׁוֹבֵב יַנְחֵנִי בְמַעְגְּלֵי־צֶדֶק לְמַעַן שְׁמוֹ׃", "⠝⠉⠋⠄⠩⠔ ⠚⠄⠩⠪⠧⠌⠧ ⠚⠉⠝⠄⠭⠌⠝⠔ ⠧⠄⠍⠉⠫⠄⠐⠛⠄⠇⠼⠤⠮⠑⠙⠑⠟ ⠇⠄⠍⠉⠫⠉⠝ ⠩⠄⠍⠪⠲"]
271 ## Genesis 4:13
272 - ["וַיֹּאמֶר קַיִן אֶל־יְהוָה גָּדוֹל עֲוֺנִי מִנְּשֹׂא׃", "⠺⠉⠐⠚⠕⠁⠍⠑⠗ ⠟⠉⠚⠊⠝ ⠁⠑⠇⠤⠚⠄⠓⠺⠣⠓ ⠐⠛⠣⠙⠪⠇ ⠫⠒⠺⠕⠝⠔ ⠍⠊⠐⠝⠄⠱⠕⠁⠲"]
273 ## Genesis 2:15
274 - ["וַיִּקַּח יְהוָה אֱלֹהִים אֶת־הָאָדָם וַיַּנִּחֵהוּ בְגַן־עֵדֶן לְעָבְדָהּ וּלְשָׁמְרָהּ׃", "⠺⠉⠐⠚⠊⠐⠟⠉⠭ ⠚⠄⠓⠺⠣⠓ ⠁⠢⠇⠕⠓⠔⠍ ⠁⠑⠹⠤⠓⠣⠁⠣⠙⠣⠍ ⠺⠉⠐⠚⠉⠐⠝⠊⠭⠌⠓⠬ ⠧⠄⠛⠉⠝⠤⠫⠌⠙⠑⠝ ⠇⠄⠫⠣⠧⠄⠙⠣⠘⠓ ⠬⠇⠄⠩⠣⠍⠄⠗⠣⠘⠓⠲"]
275 ## Genesis 6:9
276 - ["אֵלֶּה תּוֹלְדֹת נֹחַ נֹחַ אִישׁ צַדִּיק תָּמִים הָיָה בְּדֹרֹתָיו אֶת־הָאֱלֹהִים הִתְהַלֶּךְ־נֹחַ׃", "⠁⠌⠐⠇⠑⠓ ⠳⠪⠇⠄⠙⠕⠹ ⠝⠕⠭⠉ ⠝⠕⠭⠉ ⠁⠔⠩ ⠮⠉⠐⠙⠔⠟ ⠳⠣⠍⠔⠍ ⠓⠣⠚⠣⠓ ⠃⠄⠙⠕⠗⠕⠹⠣⠚⠺ ⠁⠑⠹⠤⠓⠣⠁⠢⠇⠕⠓⠔⠍ ⠓⠊⠹⠄⠓⠉⠐⠇⠑⠡⠄⠤⠝⠕⠭⠉⠲"]
277 ## Jonah 1:3
278 - ["וַיָּקָם יוֹנָה לִבְרֹחַ תַּרְשִׁישָׁה מִלִּפְנֵי יְהוָה וַיֵּרֶד יָפוֹ וַיִּמְצָא אָנִיָּה ׀ בָּאָה תַרְשִׁישׁ וַיִּתֵּן שְׂכָרָהּ וַיֵּרֶד בָּהּ לָבוֹא עִמָּהֶם תַּרְשִׁישָׁה מִלִּפְנֵי יְהוָה׃", "⠺⠉⠐⠚⠣⠟⠣⠍ ⠚⠪⠝⠣⠓ ⠇⠊⠧⠄⠗⠕⠭⠉ ⠳⠉⠗⠄⠩⠔⠩⠣⠓ ⠍⠊⠐⠇⠊⠋⠄⠝⠼ ⠚⠄⠓⠺⠣⠓ ⠺⠉⠐⠚⠌⠗⠑⠙ ⠚⠣⠋⠪ ⠺⠉⠐⠚⠊⠍⠄⠮⠣⠁ ⠁⠣⠝⠊⠐⠚⠣⠓ ⠸ ⠃⠣⠁⠣⠓ ⠹⠉⠗⠄⠩⠔⠩ ⠺⠉⠐⠚⠊⠳⠌⠝ ⠱⠄⠡⠣⠗⠣⠘⠓ ⠺⠉⠐⠚⠌⠗⠑⠙ ⠃⠣⠘⠓ ⠇⠣⠧⠪⠁ ⠫⠊⠐⠍⠣⠓⠑⠍ ⠳⠉⠗⠄⠩⠔⠩⠣⠓ ⠍⠊⠐⠇⠊⠋⠄⠝⠼ ⠚⠄⠓⠺⠣⠓⠲"]
279 ## Exodus 20:2
280 - ["אָנֹכִי יְהוָה אֱלֹהֶיךָ אֲשֶׁר הוֹצֵאתִיךָ מֵאֶרֶץ מִצְרַיִם מִבֵּית עֲבָדִים׃", "⠁⠣⠝⠕⠡⠔ ⠚⠄⠓⠺⠣⠓ ⠁⠢⠇⠕⠓⠑⠚⠡⠣ ⠁⠒⠩⠑⠗ ⠓⠪⠮⠌⠁⠹⠔⠡⠣ ⠍⠌⠁⠑⠗⠑⠮ ⠍⠊⠮⠄⠗⠉⠚⠊⠍ ⠍⠊⠃⠼⠹ ⠫⠒⠧⠣⠙⠔⠍⠲"]
281 ## Isaiah 40:1
282 - ["נַחֲמוּ נַחֲמוּ עַמִּי יֹאמַר אֱלֹהֵיכֶם׃", "⠝⠉⠭⠒⠍⠬ ⠝⠉⠭⠒⠍⠬ ⠫⠉⠐⠍⠔ ⠚⠕⠁⠍⠉⠗ ⠁⠢⠇⠕⠓⠼⠡⠑⠍⠲"]
283 ## 1 Samuel 9:2
284 - ["וְלוֹ־הָיָה בֵן וּשְׁמוֹ שָׁאוּל בָּחוּר וָטוֹב וְאֵין אִישׁ מִבְּנֵי יִשְׂרָאֵל טוֹב מִמֶּנּוּ מִשִּׁכְמוֹ וָמַעְלָה גָּבֹהַּ מִכָּל־הָעָם׃", "⠺⠄⠇⠪⠤⠓⠣⠚⠣⠓ ⠧⠌⠝ ⠬⠩⠄⠍⠪ ⠩⠣⠁⠬⠇ ⠃⠣⠭⠬⠗ ⠺⠣⠞⠪⠧ ⠺⠄⠁⠼⠝ ⠁⠔⠩ ⠍⠊⠃⠄⠝⠼ ⠚⠊⠱⠄⠗⠣⠁⠌⠇ ⠞⠪⠧ ⠍⠊⠐⠍⠑⠐⠝⠬ ⠍⠊⠐⠩⠊⠡⠄⠍⠪ ⠺⠣⠍⠉⠫⠄⠇⠣⠓ ⠐⠛⠣⠧⠕⠘⠓⠉ ⠍⠊⠅⠣⠇⠤⠓⠣⠫⠣⠍⠲"]
285 ## Genesis 22:11
286 - ["וַיִּקְרָא אֵלָיו מַלְאַךְ יְהוָה מִן־הַשָּׁמַיִם וַיֹּאמֶר אַבְרָהָם ׀ אַבְרָהָם וַיֹּאמֶר הִנֵּנִי׃", "⠺⠉⠐⠚⠊⠟⠄⠗⠣⠁ ⠁⠌⠇⠣⠚⠺ ⠍⠉⠇⠄⠁⠉⠡⠄ ⠚⠄⠓⠺⠣⠓ ⠍⠊⠝⠤⠓⠉⠐⠩⠣⠍⠉⠚⠊⠍ ⠺⠉⠐⠚⠕⠁⠍⠑⠗ ⠁⠉⠧⠄⠗⠣⠓⠣⠍ ⠸ ⠁⠉⠧⠄⠗⠣⠓⠣⠍ ⠺⠉⠐⠚⠕⠁⠍⠑⠗ ⠓⠊⠐⠝⠌⠝⠔⠲"]
287 ## Psalm 150:1
288 - ["הַלְלוּ יָהּ ׀ הַלְלוּ־אֵל בְּקָדְשׁוֹ הַלְלוּהוּ בִּרְקִיעַ עֻזּוֹ׃", "⠓⠉⠇⠄⠇⠬ ⠚⠣⠘⠓ ⠸ ⠓⠉⠇⠄⠇⠬⠤⠁⠌⠇ ⠃⠄⠟⠣⠙⠄⠩⠪ ⠓⠉⠇⠄⠇⠬⠓⠬ ⠃⠊⠗⠄⠟⠔⠫⠉ ⠫⠥⠐⠵⠪⠲"]
289
290 # Backward tests
291 flags: { testmode: backward }
292 tests:
293 #Vocalized text
294 - ["⠩⠄⠍⠉⠫", "שְׁמַע"]
295 - ["⠚⠊⠱⠄⠗⠣⠁⠌⠇", "יִשְׂרָאֵל"]
296 - ['⠺⠄⠁⠣⠓⠉⠧⠄⠳⠣', 'וְאָהַבְתָּ']
297
298 # Input with contracted hiriq-yod
299 - ['⠐⠛⠊⠐⠙⠉⠇⠄⠳⠔', 'גִּדַּלְתִּי']
300 # Same with uncontracted hiriq-yod
301 - ['⠐⠛⠊⠐⠙⠉⠇⠄⠳⠊⠚', 'גִּדַּלְתִּי']
302
303 # Input with contracted tsere-yod
304 - ["⠁⠢⠇⠕⠓⠼⠝⠬", "אֱלֹהֵינוּ"]
305 # Same with uncontracted tsere-yod
306 - ["⠁⠢⠇⠕⠓⠌⠚⠝⠬", "אֱלֹהֵינוּ"]
307
308 # Eric J. Harvey says: I don't think back translation of zaqef and
309 # etnahta can be automated. These marks are placed after the word in braille,
310 # but under the last accented syllable in print/script. When typing
311 # in braille, these can be placed proplerly by typing them after
312 # the desired consonant. However, a properly formatted IHBC document
313 # will not place them properly in back translation.
314 - ["⠚⠊⠱⠄⠗⠣⠁⠌⠆⠇", "יִשְׂרָאֵ֑ל"]
315 - ["⠚⠊⠱⠄⠗⠣⠁⠆⠌⠇", "יִשְׂרָאֵ֑ל"]
316
317 # Dots 126 back-translates to qamats (U+05B8), never qamats qatan (U+05C7)
318 - ["⠅⠣⠇⠤⠓⠣⠁⠣⠗⠑⠮⠲", "כָּל־הָאָרֶץ׃"]
319
320 table: {language: hbo, system: IHBC-McAllister, __assert-match: hbo-cantillated.utb}
321 table: ancient-languages-borger.utb
322 table: ancient-languages-us.utb
323 flags: { testmode: forward }
324 tests:
325
326 - ["שְׁמַ֖ע", "⠩⠄⠍⠉⠨⠞⠫"]
327 - ["יִשְׂרָאֵ֑ל", "⠚⠊⠱⠄⠗⠣⠁⠌⠆⠇"]
328 - ["יְהוָ֥ה", "⠚⠄⠓⠺⠣⠨⠍⠓"]
329 - ["אֱלֹהֵ֖ינוּ", "⠁⠢⠇⠕⠓⠨⠞⠼⠝⠬"]
330 - ["יְהוָ֥ה׀", "⠚⠄⠓⠺⠣⠨⠍⠓⠸"]
331 - ["אֶחָֽד׃", "⠁⠑⠭⠣⠈⠙⠲"]
332 - ["וְאָ֣הַבְתָּ֔", "⠺⠄⠁⠣⠨⠥⠓⠉⠧⠄⠳⠣⠂"]
333 - ["אֵ֖ת", "⠁⠌⠨⠞⠹"]
334 - ["יְהוָ֣ה", "⠚⠄⠓⠺⠣⠨⠥⠓"]
335 - ["אֱלֹהֶ֑יךָ", "⠁⠢⠇⠕⠓⠑⠆⠚⠡⠣"]
336 - ["בְּכָל־לְבָבְךָ֥", "⠃⠄⠡⠣⠇⠤⠇⠄⠧⠣⠧⠄⠡⠣⠨⠍"]
337 - ["וּבְכָל־נַפְשְׁךָ֖", "⠬⠧⠄⠡⠣⠇⠤⠝⠉⠋⠄⠩⠄⠡⠣⠨⠞"]
338 - ["וּבְכָל־מְאֹדֶֽךָ׃", "⠬⠧⠄⠡⠣⠇⠤⠍⠄⠁⠕⠙⠑⠈⠡⠣⠲"]
339 - ['קוֹלֽוֹ׃', '⠟⠪⠇⠈⠪⠲']
340 - ['וְנ֣וֹטֵיהֶ֔ם', '⠺⠄⠝⠨⠥⠪⠞⠼⠓⠑⠂⠍']
341 - ['אַסִּ֔יר', '⠁⠉⠐⠎⠂⠔⠗']
342 - ["֯֯בָּרָ֣א", "⠸⠍⠸⠍⠃⠣⠗⠣⠨⠥⠁"]
343 - ["֯֯אֱלֹהִ֑ים", "⠸⠍⠸⠍⠁⠢⠇⠕⠓⠆⠔⠍"]
344 - ["אֵ֥ת", "⠁⠌⠨⠍⠹"]
345 - ["֯֯הַשָּׁמַ֖יִם", "⠸⠍⠸⠍⠓⠉⠐⠩⠣⠍⠉⠨⠞⠚⠊⠍"]
346 - ["֯֯וְאֵ֥ת", "⠸⠍⠸⠍⠺⠄⠁⠌⠨⠍⠹"]
347 - ["הָאָֽרֶץ׃", "⠓⠣⠁⠣⠈⠗⠑⠮⠲"]
348 - ["הָיְתָ֥ה", "⠓⠣⠚⠄⠹⠣⠨⠍⠓"]
349 - ["תֹ֨הוּ֙", "⠹⠕⠨⠏⠓⠬⠨⠏"]
350 - ["וָבֹ֔ה֯וּ", "⠺⠣⠧⠕⠂⠓⠸⠍⠬"]
351 - ["עַל־פְּנֵ֣י", "⠫⠉⠇⠤⠏⠄⠝⠨⠥⠼"]
352 - ["תְה֑וֹם", "⠹⠄⠓⠆⠪⠍"]
353 - ["וְר֣וּחַ", "⠺⠄⠗⠨⠥⠬⠭⠉"]
354 - ["֯֯אֱלֹהִ֔ים", "⠸⠍⠸⠍⠁⠢⠇⠕⠓⠂⠔⠍"]
355 - ["מְרַחֶ֖֯פֶת", "⠍⠄⠗⠉⠭⠑⠨⠞⠸⠍⠋⠑⠹"]
356 - ["עַל־פְּנֵ֥י", "⠫⠉⠇⠤⠏⠄⠝⠨⠍⠼"]
357 - ["הַמָּֽיִם.", "⠓⠉⠐⠍⠣⠈⠚⠊⠍⠲"]
358
359 # Exodus 4.11 from Sefaria
360 - ['וַיֹּ֨אמֶר יְהֹוָ֜ה אֵלָ֗יו', '⠺⠉⠐⠚⠕⠨⠏⠁⠍⠑⠗ ⠚⠄⠓⠕⠺⠣⠨⠁⠓ ⠁⠌⠇⠣⠨⠗⠚⠺']
361 - ['מִ֣י שָׂ֣ם פֶּה֮ לָֽאָדָם֒', '⠍⠨⠥⠔ ⠱⠣⠨⠥⠍ ⠏⠑⠓⠨⠵ ⠇⠣⠈⠁⠣⠙⠣⠍⠨⠎']
362 - ['א֚וֹ מִֽי־יָשׂ֣וּם אִלֵּ֔ם א֣וֹ חֵרֵ֔שׁ א֥וֹ פִקֵּ֖חַ א֣וֹ עִוֵּ֑ר', '⠁⠨⠚⠪ ⠍⠈⠔⠤⠚⠣⠱⠨⠥⠬⠍ ⠁⠊⠐⠇⠌⠂⠍ ⠁⠨⠥⠪ ⠭⠌⠗⠌⠂⠩ ⠁⠨⠍⠪ ⠋⠊⠐⠟⠌⠨⠞⠭⠉ ⠁⠨⠥⠪ ⠫⠊⠐⠺⠌⠆⠗']
363 - ['הֲלֹ֥א אָנֹכִ֖י יְהֹוָֽה׃', '⠓⠒⠇⠕⠨⠍⠁ ⠁⠣⠝⠕⠡⠨⠞⠔ ⠚⠄⠓⠕⠺⠣⠈⠓⠲']
364 - ['וְשַׂמְתָּ֥ אֶת־הַדְּבָרִ֖ים בְּפִ֑יו', '⠺⠄⠱⠉⠍⠄⠳⠣⠨⠍ ⠁⠑⠹⠤⠓⠉⠐⠙⠄⠧⠣⠗⠨⠞⠔⠍ ⠃⠄⠋⠆⠔⠺']
365
366 # Tests from Mechon Mamre
367 - ["יוֹתָם", "⠚⠪⠹⠣⠍"]
368 - ["אָחָז", "⠁⠣⠭⠣⠵"]
369 - ["יְחִזְקִיָּהוּ", "⠚⠄⠭⠊⠵⠄⠟⠊⠐⠚⠣⠓⠬"]
370 - ["מַלְכֵי", "⠍⠉⠇⠄⠡⠼"]
371 - ["יְהוּדָה", "⠚⠄⠓⠬⠙⠣⠓"]
372 - ["שִׁמְעוּ", "⠩⠊⠍⠄⠫⠬"]
373 - ["שָׁמַיִם", "⠩⠣⠍⠉⠚⠊⠍"]
374 - ["וְהַאֲזִינִי", "⠺⠄⠓⠉⠁⠒⠵⠔⠝⠔"]
375 - ["אֶרֶץ", "⠁⠑⠗⠑⠮"]
376 - ["כִּי", "⠅⠔"]
377 - ["יְהוָה", "⠚⠄⠓⠺⠣⠓"]
378 - ["דִּבֵּר", "⠐⠙⠊⠃⠌⠗"]
379 - ["בָּנִים", "⠃⠣⠝⠔⠍"]
380 - ["גִּדַּלְתִּי", "⠐⠛⠊⠐⠙⠉⠇⠄⠳⠔"]
381 - ["וְרוֹמַמְתִּוְהֵם", "⠺⠄⠗⠪⠍⠉⠍⠄⠳⠊⠺⠄⠓⠌⠍"]
382 - ["פָּשְׁעוּ", "⠏⠣⠩⠄⠫⠬"]
383 - ["בִי", "⠧⠔"]
384
385 # Tests from Tractate Peah from Sefaria.org.
386 - ["אֵלּוּ", "⠁⠌⠐⠇⠬"]
387 - ["דְבָרִים", "⠙⠄⠧⠣⠗⠔⠍"]
388 - ["שֶׁאֵין", "⠩⠑⠁⠼⠝"]
389 - ["לָהֶם", "⠇⠣⠓⠑⠍"]
390 - ["שִׁעוּר", "⠩⠊⠫⠬⠗"]
391 - ["הַפֵּאָה", "⠓⠉⠏⠌⠁⠣⠓"]
392 - ["וְהַבִּכּוּרִים", "⠺⠄⠓⠉⠃⠊⠅⠬⠗⠔⠍"]
393 - ["וְהָרֵאָיוֹן", "⠺⠄⠓⠣⠗⠌⠁⠣⠚⠪⠝"]
394 - ["וּגְמִילוּת", "⠬⠛⠄⠍⠔⠇⠬⠹"]
395
396 ## Final letters with dagesh
397 - ['אַל־תּ֥וֹסְףְּ', '⠁⠉⠇⠤⠳⠨⠍⠪⠎⠄⠏⠄']
398 - ['אַל־תּ֥וֹסְףְּ ', '⠁⠉⠇⠤⠳⠨⠍⠪⠎⠄⠏⠄ ']
399 - ['וַתֵּבְךְּ', '⠺⠉⠳⠌⠧⠄⠅⠄']
400 - ['וַתֵּבְךְּ ', '⠺⠉⠳⠌⠧⠄⠅⠄ ']
401
402 ## BFKT followed by shuruq
403 - ['רְדָפוּךָ', '⠗⠄⠙⠣⠋⠬⠡⠣']
404
405 ## Mappiq
406 - ['וַיֹּ֣אמְרוּ לָ֔הּ', '⠺⠉⠐⠚⠕⠨⠥⠁⠍⠄⠗⠬ ⠇⠣⠂⠘⠓']
407
408 ## Tests of shuruq and dagesh waw
409 - ['חַוָּ֑ה', '⠭⠉⠐⠺⠣⠆⠓']
410 - ['צִוָּ֥ה', '⠮⠊⠐⠺⠣⠨⠍⠓']
411 - ['צִוִּיתִ֔ים', '⠮⠊⠐⠺⠔⠹⠂⠔⠍']
412 - ['מִֽי־יָשׂ֣וּם אִלֵּ֔ם א֣וֹ חֵרֵ֔שׁ א֥וֹ פִקֵּ֖חַ א֣וֹ עִוֵּ֑ר', '⠍⠈⠔⠤⠚⠣⠱⠨⠥⠬⠍ ⠁⠊⠐⠇⠌⠂⠍ ⠁⠨⠥⠪ ⠭⠌⠗⠌⠂⠩ ⠁⠨⠍⠪ ⠋⠊⠐⠟⠌⠨⠞⠭⠉ ⠁⠨⠥⠪ ⠫⠊⠐⠺⠌⠆⠗']
413
414 ## Test of consonantal waw followed by holam
415 - ['עֲוֹנִ֖י', '⠫⠒⠺⠕⠝⠨⠞⠔']
416 - ['צַוֹּתוֹ', '⠮⠉⠐⠺⠕⠹⠪']
417 - ['בְּצַוֹּ֥ת', '⠃⠄⠮⠉⠐⠺⠕⠨⠍⠹']
418
419 ## Tests of sin and shin with dagesh and vowels
420 - ['אַשּׁ֑וּר', '⠁⠉⠐⠩⠆⠬⠗']
421 - ['לְאִשָּׁ֑ה', '⠇⠄⠁⠊⠐⠩⠣⠆⠓']
422 - ['מִשֹּׂנְאָ֑י', '⠍⠊⠐⠱⠕⠝⠄⠁⠣⠆⠚']
423
424 # Alternate holam-waw character orders
425 - ['23 1 ‮מִזְמֹ֥ור', '⠼⠃⠉ ⠼⠁ ⠍⠊⠵⠄⠍⠨⠍⠪⠗']
426 - ['מִזְמ֥וֹר', '⠍⠊⠵⠄⠍⠨⠍⠪⠗']
427
428 ## Tests of longer text
429 - ['וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֙הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃', '⠺⠄⠓⠣⠁⠣⠨⠗⠗⠑⠮ ⠓⠣⠚⠄⠹⠣⠨⠍⠓ ⠹⠕⠨⠏⠓⠬⠨⠏ ⠺⠣⠧⠕⠂⠓⠬ ⠺⠄⠭⠕⠨⠞⠩⠑⠡⠄ ⠫⠉⠇⠤⠏⠄⠝⠨⠥⠼ ⠹⠄⠓⠆⠪⠍ ⠺⠄⠗⠨⠥⠬⠭⠉ ⠁⠢⠇⠕⠓⠂⠔⠍ ⠍⠄⠗⠉⠭⠑⠨⠞⠋⠑⠹ ⠫⠉⠇⠤⠏⠄⠝⠨⠍⠼ ⠓⠉⠐⠍⠣⠈⠚⠊⠍⠲']
430 - ['לָכֵ֤ן חַכּוּ־לִי֙ נְאֻם־יְהֹוָ֔ה לְי֖וֹם קוּמִ֣י לְעַ֑ד', '⠇⠣⠡⠌⠨⠓⠝ ⠭⠉⠅⠬⠤⠇⠔⠨⠏ ⠝⠄⠁⠥⠍⠤⠚⠄⠓⠕⠺⠣⠂⠓ ⠇⠄⠚⠨⠞⠪⠍ ⠟⠬⠍⠨⠥⠔ ⠇⠄⠫⠉⠆⠙']
431 - ['כִּ֣י מִשְׁפָּטִי֩ לֶאֱסֹ֨ף גּוֹיִ֜ם לְקׇבְצִ֣י מַמְלָכ֗וֹת לִשְׁפֹּ֨ךְ עֲלֵיהֶ֤ם זַעְמִי֙ כֹּ֚ל חֲר֣וֹן אַפִּ֔י', '⠅⠨⠥⠔ ⠍⠊⠩⠄⠏⠣⠞⠔⠨⠟ ⠇⠑⠁⠢⠎⠕⠨⠏⠋ ⠐⠛⠪⠚⠊⠨⠁⠍ ⠇⠄⠟⠣⠧⠄⠮⠨⠥⠔ ⠍⠉⠍⠄⠇⠣⠡⠨⠗⠪⠹ ⠇⠊⠩⠄⠏⠕⠨⠏⠡⠄ ⠫⠒⠇⠼⠓⠑⠨⠓⠍ ⠵⠉⠫⠄⠍⠔⠨⠏ ⠅⠕⠨⠚⠇ ⠭⠒⠗⠨⠥⠪⠝ ⠁⠉⠏⠂⠔']
432 - ['כִּ֚י בְּאֵ֣שׁ קִנְאָתִ֔י תֵּאָכֵ֖ל כׇּל־הָאָֽרֶץ׃', '⠅⠨⠚⠔ ⠃⠄⠁⠌⠨⠥⠩ ⠟⠊⠝⠄⠁⠣⠹⠂⠔ ⠳⠌⠁⠣⠡⠌⠨⠞⠇ ⠅⠣⠇⠤⠓⠣⠁⠣⠈⠗⠑⠮⠲']
433
434 # Bilingual Hebrew text with Roman reference (taken from Accordance)
435 - ['Gen. 1:3 וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃', '⠠⠛⠑⠝⠲ ⠼⠁⠒⠼⠉ ⠺⠉⠐⠚⠕⠨⠍⠁⠍⠑⠗ ⠁⠢⠇⠕⠓⠨⠞⠔⠍ ⠚⠄⠓⠨⠥⠔ ⠁⠆⠪⠗ ⠺⠉⠈⠚⠄⠓⠔⠤⠁⠈⠪⠗⠲']
436
437 # Tests with broken and reconstructed text (from Accordance)
438 - ['Psa. 115:1‏ ‎ (4Q96 f1:2) •‏ [ לוא] לנו יהוה ולוא [לנו כיא לשמכה', '⠠⠏⠎⠁⠲ ⠼⠁⠁⠑⠒⠼⠁ ⠐⠣⠼⠙⠠⠟⠼⠊⠋ ⠋⠼⠁⠒⠼⠃⠐⠜ ⠸⠲ ⠨⠣ ⠇⠺⠁⠨⠜ ⠇⠝⠺ ⠚⠓⠺⠓ ⠺⠇⠺⠁ ⠨⠣⠇⠝⠺ ⠡⠚⠁ ⠇⠩⠍⠡⠓']
439 - ['תן כבוד על חסדכה על]‎ (4Q96 f1:3) ‏[אמתכה ].', '⠹⠝ ⠡⠧⠺⠙ ⠫⠇ ⠭⠎⠙⠡⠓ ⠫⠇⠨⠜ ⠐⠣⠼⠙⠠⠟⠼⠊⠋ ⠋⠼⠁⠒⠼⠉⠐⠜ ⠨⠣⠁⠍⠹⠡⠓ ⠨⠜⠲']
440
441 # Sample bilingual instructional material
442 - ['3b. Qal impf. 3ms יַעֲזֹ֣ב “he will leave”', '⠼⠉⠰⠃⠲ ⠠⠟⠁⠇ ⠊⠍⠏⠋⠲ ⠼⠉⠍⠎ ⠚⠉⠫⠒⠵⠕⠨⠥⠧ ⠦⠓⠑ ⠺⠊⠇⠇ ⠇⠑⠁⠧⠑⠴']
443
444 #Tests for the Katz Standard
445 table: {language: hbo, system: Katz, __assert-match: hbo-slim.utb}
446 flags: { testmode: forward }
447 tests:
448
449 # Cantillated text with uncantillated output
450 ## Initial tests
451 - ["שְׁמַ֖ע", "⠩⠍⠉⠫"]
452 - ["יִשְׂרָאֵ֑ל", "⠚⠊⠱⠗⠣⠁⠌⠇⠆"]
453 - ["יְהוָ֥ה", "⠚⠓⠺⠣⠓"]
454 - ["אֱלֹהֵ֖ינוּ", "⠁⠢⠇⠕⠓⠼⠝⠬"]
455 - ["יְהוָ֥ה׀", "⠚⠓⠺⠣⠓⠸"]
456 - ["אֶחָֽד׃", "⠁⠑⠭⠣⠙⠲"]
457 - ["וְאָ֣הַבְתָּ֔", "⠺⠁⠣⠓⠉⠧⠳⠣"]
458 - ["אֵ֖ת", "⠁⠌⠹"]
459 - ["יְהוָ֣ה", "⠚⠓⠺⠣⠓"]
460 - ["אֱלֹהֶ֑יךָ", "⠁⠢⠇⠕⠓⠑⠚⠡⠣⠆"]
461 - ["בְּכָל־לְבָבְךָ֥", "⠃⠡⠣⠇⠤⠇⠧⠣⠧⠡⠣"]
462 - ["וּבְכָל־נַפְשְׁךָ֖", "⠬⠧⠡⠣⠇⠤⠝⠉⠋⠩⠡⠣"]
463 - ["וּבְכָל־מְאֹדֶֽךָ׃", "⠬⠧⠡⠣⠇⠤⠍⠁⠕⠙⠑⠡⠣⠲"]
464
465 ## Final letters with dagesh
466 - ['אַל־תּ֥וֹסְףְּ', '⠁⠉⠇⠤⠳⠪⠎⠏']
467 - ['אַל־תּ֥וֹסְףְּ ', '⠁⠉⠇⠤⠳⠪⠎⠏ ']
468 - ['וַתֵּבְךְּ', '⠺⠉⠳⠌⠧⠅']
469 - ['וַתֵּבְךְּ ', '⠺⠉⠳⠌⠧⠅ ']
470
471 ## BFKT followed by shuruq
472 - ['רְדָפוּךָ', '⠗⠙⠣⠋⠬⠡⠣']
473
474 ## Mappiq (deleted)
475 - ['וַיֹּ֣אמְרוּ לָ֔הּ', '⠺⠉⠚⠕⠁⠍⠗⠬ ⠇⠣⠓']
476
477 ## Tests of shuruq and dagesh waw
478 - ['חַוָּ֑ה', '⠭⠉⠺⠣⠓⠆']
479 - ['צִוָּ֥ה', '⠮⠊⠺⠣⠓']
480 - ['צִוִּיתִ֔ים', '⠮⠊⠺⠔⠹⠔⠍']
481 - ['מִֽי־יָשׂ֣וּם אִלֵּ֔ם א֣וֹ חֵרֵ֔שׁ א֥וֹ פִקֵּ֖חַ א֣וֹ עִוֵּ֑ר', '⠍⠔⠤⠚⠣⠱⠬⠍ ⠁⠊⠇⠌⠍ ⠁⠪ ⠭⠌⠗⠌⠩ ⠁⠪ ⠋⠊⠟⠌⠭⠉ ⠁⠪ ⠫⠊⠺⠌⠗⠆']
482
483 ## Alternate holam-waw character orders
484 - ['23 1 ‮מִזְמֹ֥ור', '⠼⠃⠉ ⠼⠁ ⠍⠊⠵⠍⠪⠗']
485 - ['מִזְמ֥וֹר', '⠍⠊⠵⠍⠪⠗']
486
487 ## Test of consonantal waw followed by holam
488 - ['עֲוֹנִ֖י', '⠫⠒⠺⠕⠝⠔']
489
490 ## Tests of sin and shin with dagesh and vowels
491 - ['אַשּׁ֑וּר', '⠁⠉⠩⠬⠗⠆']
492 - ['לְאִשָּׁ֑ה', '⠇⠁⠊⠩⠣⠓⠆']
493 - ['מִשֹּׂנְאָ֑י', '⠍⠊⠱⠕⠝⠁⠣⠚⠆']
494
495 ## Tests of longer text
496 - ['וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֙הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃', '⠺⠓⠣⠁⠣⠗⠑⠮ ⠓⠣⠚⠹⠣⠓ ⠹⠕⠓⠬ ⠺⠣⠧⠕⠓⠬ ⠺⠭⠕⠩⠑⠡ ⠫⠉⠇⠤⠏⠝⠼ ⠹⠓⠪⠍⠆ ⠺⠗⠬⠭⠉ ⠁⠢⠇⠕⠓⠔⠍ ⠍⠗⠉⠭⠑⠋⠑⠹ ⠫⠉⠇⠤⠏⠝⠼ ⠓⠉⠍⠣⠚⠊⠍⠲']
497 - ['לָכֵ֤ן חַכּוּ־לִי֙ נְאֻם־יְהֹוָ֔ה לְי֖וֹם קוּמִ֣י לְעַ֑ד', '⠇⠣⠡⠌⠝ ⠭⠉⠅⠬⠤⠇⠔ ⠝⠁⠥⠍⠤⠚⠓⠕⠺⠣⠓ ⠇⠚⠪⠍ ⠟⠬⠍⠔ ⠇⠫⠉⠙⠆']
498 - ['כִּ֣י מִשְׁפָּטִי֩ לֶאֱסֹ֨ף גּוֹיִ֜ם לְקׇבְצִ֣י מַמְלָכ֗וֹת לִשְׁפֹּ֨ךְ עֲלֵיהֶ֤ם זַעְמִי֙ כֹּ֚ל חֲר֣וֹן אַפִּ֔י', '⠅⠔ ⠍⠊⠩⠏⠣⠞⠔ ⠇⠑⠁⠢⠎⠕⠋ ⠛⠪⠚⠊⠍ ⠇⠟⠣⠧⠮⠔ ⠍⠉⠍⠇⠣⠡⠪⠹ ⠇⠊⠩⠏⠕⠡ ⠫⠒⠇⠼⠓⠑⠍ ⠵⠉⠫⠍⠔ ⠅⠕⠇ ⠭⠒⠗⠪⠝ ⠁⠉⠏⠔']
499 - ['כִּ֚י בְּאֵ֣שׁ קִנְאָתִ֔י תֵּאָכֵ֖ל כׇּל־הָאָֽרֶץ׃', '⠅⠔ ⠃⠁⠌⠩ ⠟⠊⠝⠁⠣⠹⠔ ⠳⠌⠁⠣⠡⠌⠇ ⠅⠣⠇⠤⠓⠣⠁⠣⠗⠑⠮⠲']
500
501 # Test for common Hebrew characters
502 #
503 # he-common-consonants.uti includes character definitions for consonants,
504 # which are identical between modern and biblical Hebrew.
505 # he-common-vowels-ihbc.uti defines vowels and cantillation marks
506 # that are shared by all biblical Hebrew tables but not by modern Hebrew.
507
508 table: he-common-consonants.uti
509 table: {language: hbo, system: IHBC, __assert-match: hbo.utb}
510 table: {language: hbo, system: IHBC-McAllister, __assert-match: hbo-cantillated.utb}
511 table: {language: hbo, system: Katz, __assert-match: hbo-slim.utb}
512 table: ancient-languages-borger.utb
513 table: ancient-languages-us.utb
514 flags: { testmode: forward }
515 tests:
516 - ["בראשית", "⠧⠗⠁⠩⠚⠹"]
517 - ["אלהים", "⠁⠇⠓⠚⠍"]
518 - ["הארץ", "⠓⠁⠗⠮"]
519 - ["היתה", "⠓⠚⠹⠓"]
520 - ["והארץ", "⠺⠓⠁⠗⠮"]
521 - ["המים", "⠓⠍⠚⠍"]
522
523 table: hbo-common-rules.uti # includes he-common-vowels-ihbc.uti, but he-common-vowels-ihbc.uti does not function on its own
524 table: {language: hbo, system: IHBC, __assert-match: hbo.utb}
525 table: {language: hbo, system: IHBC-McAllister, __assert-match: hbo-cantillated.utb}
526 table: ancient-languages-borger.utb
527 table: ancient-languages-us.utb
528 flags: { testmode: forward }
529 tests:
530 - ["בְּרֵאשִׁית", "⠃⠄⠗⠌⠁⠩⠔⠹"]
531 - ["אֱלֹהִים", "⠁⠢⠇⠕⠓⠔⠍"]
532 - ["הָאָרֶץ", "⠓⠣⠁⠣⠗⠑⠮"]
533 - ["הָיְתָה", "⠓⠣⠚⠄⠹⠣⠓"]
534 - ["וְהָאָרֶץ", "⠺⠄⠓⠣⠁⠣⠗⠑⠮"]
535 - ["הַמָּיִם", "⠓⠉⠐⠍⠣⠚⠊⠍"]
536
537 # Regression test for the shuruq / consonantal-waw rule in
538 # hbo-common-rules.uti. A shuruq (⠬, dots 346) must only be produced from
539 # the Hebrew "ּו" sequence. When the Hebrew rules are combined with another
540 # language, a cell that merely happens to be dots 346 must not be rewritten
541 # into dagesh+waw (⠐⠺) just because the next cell carries the Hebrew "vowel"
542 # attribute. Here digit 0 = dots 346 and digit 2 = dots 126 (as Hebrew
543 # qamats), so "02" must stay ⠬⠣ and not become ⠐⠺⠣.
544 table: hbo-ihbc-rules.uti,digits6DotsPlusDot6.uti,braille-patterns.cti
545 flags: { testmode: forward }
546 tests:
547 - ['02', '⠬⠣']