| 1 | # Copyright © 2020 by BAUM Engineering <[email protected]> |
| 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 | # ---------------------------------------------------------------------------------------------- |
| 9 | |
| 10 | # The 4 most used languages in Israel are Hebrew, Arabic, Russian and |
| 11 | # English. This table supports 3 of them: Hebrew, Arabic and |
| 12 | # English. The native braille codes of these languages differ in how |
| 13 | # they treat certain punctuation marks etc. The library for the blind |
| 14 | # and the ministry of education sat together in 2016 and decided how |
| 15 | # to combine the 3 languages in a single braille code. This table is |
| 16 | # the result of their decision. |
| 17 | |
| 18 | # Refer to World Braille Usage (3rd edition), page 74 |
| 19 | # <http://liblouis.io/braille-specs/world-braille-usage-third-edition.pdf> |
| 20 | # and <http://liblouis.io/braille-specs/hebrew>. |
| 21 | |
| 22 | display: unicode-without-blank.dis |
| 23 | |
| 24 | # Test for uncontracted braille |
| 25 | table: |
| 26 | region: mul-IL |
| 27 | grade: 1 |
| 28 | dots: 6 |
| 29 | __assert-match: he-IL.utb |
| 30 | tests: |
| 31 | - # Phrase 1 |
| 32 | - בוקר טוב. |
| 33 | - ⠧⠺⠟⠗ ⠞⠺⠧⠲ |
| 34 | - # Phrase 2 |
| 35 | - אני רעב. |
| 36 | - ⠁⠝⠚ ⠗⠫⠧⠲ |
| 37 | - # Phrase 3 |
| 38 | - בוא הנה. |
| 39 | - ⠧⠺⠁ ⠓⠝⠓⠲ |
| 40 | - # Phrase 4 |
| 41 | - עוד משהו? |
| 42 | - ⠫⠺⠙ ⠍⠩⠓⠺⠢ |
| 43 | - # Testing percentage. |
| 44 | - ההתקדמות הוצגה כ%. |
| 45 | - ⠓⠓⠹⠟⠙⠍⠺⠹ ⠓⠺⠮⠛⠓ ⠡⠒⠏⠲ |
| 46 | - # Phrase with escaped quote. |
| 47 | - "\"אתה אף פעם לא נכשל עד שאתה מפסיק לנסות.\"" |
| 48 | - ⠦⠁⠹⠓ ⠁⠋ ⠋⠫⠍ ⠇⠁ ⠝⠡⠩⠇ ⠫⠙ ⠩⠁⠹⠓ ⠍⠋⠎⠚⠟ ⠇⠝⠎⠺⠹⠲⠴ |
| 49 | - # Sample for checking arabic translation. |
| 50 | - هذه الأفكار المغلوطة ح |
| 51 | - ⠓⠮⠓ ⠁⠇⠌⠋⠅⠁⠗ ⠁⠇⠍⠣⠇⠺⠾⠡ ⠱ |
| 52 | - # Sample for checking english translation. |
| 53 | - Lorem Ipsum is simply dummy text. |
| 54 | - ⠠⠇⠕⠗⠑⠍ ⠠⠊⠏⠎⠥⠍ ⠊⠎ ⠎⠊⠍⠏⠇⠽ ⠙⠥⠍⠍⠽ ⠞⠑⠭⠞⠲ |
| 55 | - # Arabic numbers [1,2,3,...,9,0] |
| 56 | - "١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ٠" |
| 57 | - "⠼⠁ ⠼⠃ ⠼⠉ ⠼⠙ ⠼⠑ ⠼⠋ ⠼⠛ ⠼⠓ ⠼⠊ ⠼⠚" |
| 58 | - # Hebrew letters with dagesh as a separate dot |
| 59 | - "כּ פּ בּ שׂ" |
| 60 | - "⠅ ⠏ ⠃ ⠱" |
| 61 | |
| 62 | # Test for computer braille |
| 63 | table: |
| 64 | language: he |
| 65 | type: computer |
| 66 | __assert-match: he-IL-comp8.utb |
| 67 | tests: |
| 68 | - # Sample for testing ₪ |
| 69 | - שלט המטבע שלנו הוא ₪ |
| 70 | - ⠩⠇⠞ ⠓⠍⠞⠧⠫ ⠩⠇⠝⠺ ⠓⠺⠁ ⡈ |
| 71 | - xfail: fails with the new table |
| 72 | - # Hebrew point holam haser ("וֹ" - ⠕) |
| 73 | - חוֹלָם |
| 74 | - ⠭⠺⠕⠇⠣⢍ |
| 75 | - # Hebrew point qubuts ("כֻּ", three dots on bottom) |
| 76 | - כֻּלָּם |
| 77 | - ⠡⠬⠕⠇⠣⠕⢍ |
| 78 | - # Hebrew point shin dot and hebrew point kamatz katan ("שָּׂ", dot on right top and sign below the letter) |
| 79 | - יִשָּׂשכָר |
| 80 | - ⠚⠊⠩⠣⠕⢱⠩⠡⠣⠗ |