Debian Codegraph @

tests/braille-specs/ar-ar-g1.yaml

raw symbols SCIP
1 # Based on the official Unified Arabic Braille Project website
2 # <https://mip.qa/braille>: a comprehensive resource containing all
3 # details about Arabic braille, including complete references,
4 # tutorials and awareness articles. It also provides a platform for
5 # suggestions and comments to improve Arabic braille further.
6 #
7 # Copyright © 2018, 2020 Ikrami Ahmad
8 #
9 # Copying and distribution of this file, with or without modification,
10 # are permitted in any medium without royalty provided the copyright
11 # notice and this notice are preserved. This file is offered as-is,
12 # without any warranty.
13
14 display: unicode.dis
15 table:
16 language: ar
17 grade: 1
18 __assert-match: ar.tbl
19
20 flags: {testmode: bothDirections}
21
22 tests:
23 # Join two characters together when they follow each other in a single word which are: Arabic laam
24 # (\x0644) and Arabic Alef (\x0626).
25 - - سلام
26 - ⠎⠧⠍
27 # Arabic question mark should take priority over english question mark in backtranslation.
28 - - ماذا؟
29 - ⠍⠁⠮⠁⠦
30
31 # Cannot input punctuation marks and signs that consist of two cells, although they are
32 # forward-translated normally. This is because the first part of the symbol represents another
33 # symbol in the table. For example, the colon is 5-2 cannot be written because dot 5 represents
34 # the Arabic comma, and this is applied to any other symbol starts with dot 5. Similarly, because
35 # 56 represents semi-colon, it is not possible to input math symbols like + = or *. This happens
36 # on NVDA, as I don't have the necessary skills to test using the liblouis built-in tools.
37 - - "قال:"
38 - ⠟⠁⠇⠐⠂
39 - - ٥+٦=١١
40 - ⠼⠑⠰⠖⠼⠋⠰⠶⠼⠁⠁
41
42 # Back-translation of dots 2: comma if in between numbers, Fathah sign if preceded by letter
43 - - رَجَعَ
44 - ⠗⠂⠚⠂⠷⠂
45 - - ١,٠٠٠,٠٠٠
46 - ⠼⠁⠂⠚⠚⠚⠂⠚⠚⠚
47
48 # The following are applied only for forward translation.
49 flags: {testmode: forward}
50 tests:
51 # Omiting the tatweel symbol (\x0640) from being backtranslated, as it is used only for decorating
52 # texts. I preferred though not to ignore it completely to allow braille transcribers to identify
53 # and correct it if it exists in a text.
54 - - مـرـحـبا
55 - ⠍⠒⠒⠗⠒⠒⠱⠒⠒⠃⠁
56
57 # A rule to correct Shadda symbol (a diacritic mark to indicate that the letter follows it should
58 # be doubled in pronunciation). It should be written before the character in Arabic braille
59 # code. This will consist of every Arabic character followed by the Shadda diacritic symbol, and a
60 # dot pattern of the braille Shadda followed by the character.
61
62 # I used the "noback" opcode so that I can avoid lots of input issues due to the conflict with the
63 # capital letter sign. This means that the user will have to input this symbol normally after the
64 # character as if he is writing from the standard keyboard, but it will be displayed correctly. In
65 # the standard Arabic braille, Shadda should be also typed before the character.
66 - - المحبّة
67 - ⠁⠇⠍⠱⠠⠃⠡
68 # It can not come at the begining of a word.
69 - - شدّة
70 - ⠩⠠⠙⠡
71
72 # Linguistically correct, if a character has the Shadda and another diacritic symbol on it, Shadda
73 # should be typed first followed by the other diacritic mark. Typing the other diacritic symbol
74 # before it will result in inappropriate output, as the shadda will appear as if it belongs to the
75 # character that follows the stressed character.
76
77 # correct
78 - - أُمَّة
79 - ⠌⠥⠠⠍⠂⠡
80 # incorrect
81 - - أُمَّة
82 - ⠌⠥⠍⠂⠠⠡
83 # The two characters we join together in the above rule can also be doubled.
84 - - ولاّدة
85 - ⠺⠠⠧⠙⠡
86 # I didn't add this rule for the characters that can never be stressed, so even if a user types
87 # this symbol after them, it will be displayed after the character, not before it. Moreover, these
88 # characters may represent contractions when preceded with dot 6 in grade 2.
89 - - أعلىّ
90 - ⠌⠷⠇⠕⠠
91 - - 5+6=11
92 - ⠼⠑⠰⠖⠼⠋⠰⠶⠼⠁⠁
93
94 # back-translation of Arabic numerals
95 flags: {testmode: backward}
96 tests:
97 - - ⠼⠁⠃⠉⠙⠑⠋⠛⠓⠊⠚
98 - ١٢٣٤٥٦٧٨٩٠
99
100 # math
101 flags: {testmode: bothDirections}
102 tests:
103 # numbers
104 - - ٤٩
105 - ⠼⠙⠊
106 - - ١٢
107 - ⠼⠁⠃
108 - - ٢ ٤ ٦ ٨
109 - ⠼⠃⠀⠼⠙⠀⠼⠋⠀⠼⠓
110 - - ٣١ ٤٧ ٥٩
111 - ⠼⠉⠁⠀⠼⠙⠛⠀⠼⠑⠊
112 # punctuation
113 - - ٣,٥٠٠,٠٠٠
114 - ⠼⠉⠂⠑⠚⠚⠂⠚⠚⠚
115 - - ٧:٣٠
116 - ⠼⠛⠐⠂⠼⠉⠚
117 - - ٥:١٥
118 - ⠼⠑⠐⠂⠼⠁⠑
119 - - ٦-١٠
120 - ⠼⠋⠤⠤⠼⠁⠚
121 - - ١-٢
122 - ⠼⠁⠤⠤⠼⠃
123 # plus and minus
124 - - ٣+٥
125 - ⠼⠉⠰⠖⠼⠑
126 - - ٧−٤
127 - ⠼⠛⠰⠤⠼⠙
128 # decimal point
129 - - ٩.٤٢
130 - ⠼⠊⠲⠙⠃
131 - - .٧٥
132 - ⠼⠲⠛⠑
133 # letter sign
134 - - ٥ا
135 - ⠼⠑⠰⠁
136
137 # exhaustive symbols listing
138 flags: {testmode: forward}
139 tests:
140 - ['!', ⠖] # exclamation mark [!]
141 - ['"', ⠶] # nondirectional double quotation mark or seconds ["]
142 - ['#', ⠸⠔] # number sign (crosshatch, hash, pound sign) [#]
143 - [$, ⠈⠲] # dollar sign [$]
144 - ['%', ⠒⠏] # percent sign [%]
145 - ['&', ⠈⠯] # ampersand [&]
146 - ['''', ⠄] # apostrophe or nondirectional single quote [']
147 - [(, ⠦] # opening parenthesis (round bracket) [(]
148 - [), ⠴] # closing parenthesis (round bracket) [)]
149 - ['*', ⠰⠔] # asterisk [*]
150 - [+, ⠰⠖] # plus [+]
151 - ['،', ⠐] # arabic comma
152 - [',', ⠂] # english comma, comma as decimal [,]
153 - ['-', ⠤⠤] # hyphen [-]
154 - [., ⠲] # full stop (period), decimal point [.]
155 - [/, ⠸⠤] # solidus (forward slash) [/]
156 - [':', ⠐⠂] # colon [:]
157 - [؛, ⠐⠆] # arabic semicolon [;]
158 - [;, ⠐⠆] # semicolon [;]
159 - [<, ⠘⠢] # less-than [<]
160 - ['=', ⠰⠶] # equals [=]
161 - ['>', ⠘⠔] # greater-than [>]
162 - ['ا؟', ⠁⠦] # question mark [?]
163 - ['@', ⠈⠁] # commercial at sign [@]
164 - ['[', ⠠⠦] # opening square bracket ([)
165 - [']', ⠴⠄] # closing square bracket (])
166 - [^, ⠈⠢] # caret (hat) [^]
167 - [\\, ⠘⠤] # reverse solidus (backslash) [\]
168 - [_, ⠠⠤] # low line (underscore) [\x005f]
169 - ['`', ⠈] # grave accent alone [\x0060]
170 - ['{', ⠐⠦] # opening curly bracket (brace bracket) [\x007b]
171 - ['|', ⠸⠒] # vertical bar in mathematics [\x007c]
172 - ['}', ⠴⠂] # closing curly bracket (brace bracket) [\x007d]
173 - ['~', ⠘⠒] # tilde (swung dash) [\x007e]
174 - [¡, ⠘⠰⠖] # inverted exclamation mark [\x00a1]
175 - [¢, ⠈⠉] # cent sign [\x00a2]
176 - [£, ⠈⠇] # pound sign (pound sterling) [\x00a3]
177 - [¥, ⠈⠽] # yen sign (yuan sign) [\x00a5]
178 - [¦, ⠸⠳] # broken vertical bar [\x00a6]
179 - [§, ⠘⠎] # section sign [\x00a7]
180 - [©, ⠈⠘⠉] # copyright sign [\x00a9]
181 - [«, ⠠⠶] # opening Italian quotation mark (small double angle brackets) [\x00ab]
182 - [¬, ⠈⠹] # 'not' sign (line horizontal, then down at right) [\x00ac]
183 - [®, ⠈⠘⠗] # registered sign [\x00ae]
184 - [°, ⠘⠚] # degree sign [\x00b0]
185 - [±, ⠰⠖⠤] # plus-or-minus (plus over minus) [\x00b1]
186 - [¶, ⠘⠏] # paragraph sign [\x00b6]
187 - [», ⠶⠄] # closing Italian quotation mark (small double angle brackets) [\x00bb]
188 - [¿, ⠘⠰⠦] # inverted question mark [\x00bf]
189 - [×, ⠰⠦] # times (multiplication cross) [\x00d7]
190 - [÷, ⠰⠲] # divided by [\x00f7]
191 - [Α, ⠠⠈⠨⠁] # capital Greek alpha [\x0391]
192 - [Β, ⠠⠈⠨⠃] # capital Greek beta [\x0392]
193 - [Γ, ⠠⠈⠨⠛] # capital Greek gamma [\x0393]
194 - [Δ, ⠠⠈⠨⠙] # capital Greek delta [\x0394]
195 - [Ε, ⠠⠈⠨⠑] # capital Greek epsilon [\x0395]
196 - [Ζ, ⠠⠈⠨⠵] # capital Greek zeta [\x0396]
197 - [Η, ⠠⠈⠨⠱] # capital Greek eta [\x0397]
198 - [Θ, ⠠⠈⠨⠹] # capital Greek theta [\x0398]
199 - [Ι, ⠠⠈⠨⠊] # capital Greek iota [\x0399]
200 - [Κ, ⠠⠈⠨⠅] # capital Greek kappa [\x039a]
201 - [Λ, ⠠⠈⠨⠇] # capital Greek lambda [\x039b]
202 - [Μ, ⠠⠈⠨⠍] # capital Greek mu [\x039c]
203 - [Ν, ⠠⠈⠨⠝] # capital Greek nu [\x039d]
204 - [Ξ, ⠠⠈⠨⠭] # capital Greek xi [\x039e]
205 - [Ο, ⠠⠈⠨⠕] # capital Greek omicron [\x039f]
206 - [Π, ⠠⠈⠨⠏] # capital Greek pi [\x03a0]
207 - [Ρ, ⠠⠈⠨⠗] # capital Greek rho [\x03a1]
208 - [Σ, ⠠⠈⠨⠎] # capital Greek sigma [\x03a3]
209 - [Τ, ⠠⠈⠨⠞] # capital Greek tau [\x03a4]
210 - [Υ, ⠠⠈⠨⠥] # capital Greek upsilon [\x03a5]
211 - [Φ, ⠠⠈⠨⠋] # capital Greek phi [\x03a6]
212 - [Χ, ⠠⠈⠨⠯] # capital Greek chi [\x03a7]
213 - [Ψ, ⠠⠈⠨⠽] # capital Greek psi [\x03a8]
214 - [Ω, ⠠⠈⠨⠺] # capital Greek omega [\x03a9]
215 - [α, ⠈⠨⠁] # lowercase Greek alpha [\x03b1]
216 - [β, ⠈⠨⠃] # lowercase Greek beta [\x03b2]
217 - [γ, ⠈⠨⠛] # lowercase Greek gamma [\x03b3]
218 - [δ, ⠈⠨⠙] # lowercase Greek delta [\x03b4]
219 - [ε, ⠈⠨⠑] # lowercase Greek epsilon [\x03b5]
220 - [ζ, ⠈⠨⠵] # lowercase Greek zeta [\x03b6]
221 - [η, ⠈⠨⠱] # lowercase Greek eta [\x03b7]
222 - [θ, ⠈⠨⠹] # lowercase Greek theta [\x03b8]
223 - [ι, ⠈⠨⠊] # lowercase Greek iota [\x03b9]
224 - [κ, ⠈⠨⠅] # lowercase Greek kappa [\x03ba]
225 - [λ, ⠈⠨⠇] # lowercase Greek lambda [\x03bb]
226 - [μ, ⠈⠨⠍] # lowercase Greek mu [\x03bc]
227 - [ν, ⠈⠨⠝] # lowercase Greek nu [\x03bd]
228 - [ξ, ⠈⠨⠭] # lowercase Greek xi [\x03be]
229 - [ο, ⠈⠨⠕] # lowercase Greek omicron [\x03bf]
230 - [π, ⠈⠨⠏] # lowercase Greek pi [\x03c0]
231 - [ρ, ⠈⠨⠗] # lowercase Greek rho [\x03c1]
232 - [ς, ⠈⠨⠎] # lowercase Greek sigma [\x03c2]
233 - [σ, ⠈⠨⠎] # lowercase Greek sigma [\x03c3]
234 - [τ, ⠈⠨⠞] # lowercase Greek tau [\x03c4]
235 - [υ, ⠈⠨⠥] # lowercase Greek upsilon [\x03c5]
236 - [φ, ⠈⠨⠋] # lowercase Greek phi [\x03c6]
237 - [χ, ⠈⠨⠯] # lowercase Greek chi [\x03c7]
238 - [ψ, ⠈⠨⠽] # lowercase Greek psi [\x03c8]
239 - [ω, ⠈⠨⠺] # lowercase Greek omega [\x03c9]
240 - [–, ⠐⠤⠤] # dash [\x2013]
241 - [—, ⠘⠤⠤] # long dash [\x2014]
242 - [―, ⠸⠤⠤] # horizontal bar [\x2015]
243 - [‘, ⠄] # opening single quotation mark [\x2018]
244 - [’, ⠄] # closing one-cell (nonspecific) quotation mark [\x2019]
245 - [’, ⠄] # closing single quotation mark [\x2019]
246 - [“, ⠶] # opening double quotation mark [\x201c]
247 - [”, ⠶] # closing one-cell (nonspecific) quotation mark [\x201d]
248 - [”, ⠶] # closing double quotation mark [\x201d]
249 - [†, ⠈⠠⠹] # dagger [\x2020]
250 - [‡, ⠈⠠⠻] # double dagger [\x2021]
251 - [•, ⠸⠲] # bullet [\x2022]
252 - […, ⠲⠲⠲] # ellipsis [\x2026]
253 - [′, ⠘⠶] # prime [\x2032]
254 - [″, ⠘⠶⠶] # double prime [\x2033]
255 - [₣, ⠈⠋] # French franc sign [\x20a3]
256 - [₦, ⠈⠝] # Naira sign [\x20a6]
257 - [€, ⠈⠑] # euro sign [\x20ac]
258 - [™, ⠈⠘⠞] # trademark sign [\x2122]
259 - [⇌, ⠻⠘⠸⠶] # equilibrium arrow (harpoons) [\x21cc]
260 - [∀, ⠘⠁] # 'for all' (inverted A) [\x2200]
261 - [∂, ⠐⠫] # partial derivative (curly d) [\x2202]
262 - [∃, ⠈⠿] # 'there exists' (reverse E) [\x2203]
263 - [∅, ⠬⠴] # null set (slashed zero) [\x2205]
264 - [∇, ⠘⠙] # del, nabla (inverted capital delta) [\x2207]
265 - [∈, ⠘⠑] # is an element of (variant epsilon) [\x2208]
266 - [∋, ⠸⠨⠁] # contains as an element (reverse variant epsilon) [\x220b]
267 - [−, ⠰⠤] # minus (when distinguished from hyphen) [\x2212]
268 - [∓, ⠰⠤⠖] # minus-or-plus (minus over plus) [\x2213]
269 - [∘, ⠈⠘⠴] # 'hollow dot' or single small circle for electron [\x2218]
270 - [√, ⠐⠩] # radical without vinculum [\x221a]
271 - [∝, ⠸⠐⠶] # is proportional to (varies as) [\x221d]
272 - [∞, ⠼⠇] # infinity sign [\x221e]
273 - [∠, ⠻⠪] # angle sign [\x2220]
274 - [∡, ⠻⠸⠪] # measured angle sign [\x2221]
275 - [∥, ⠸⠸] # parallel to [\x2225]
276 - [∧, ⠈⠦] # and (inverted v shape) [\x2227]
277 - [∨, ⠈⠖] # or (upright v shape) [\x2228]
278 - [∩, ⠬⠦] # intersection (inverted U shape) [\x2229]
279 - [∪, ⠬⠖] # union (upright U shape) [\x222a]
280 - [∫, ⠐⠮] # integral sign [\x222b]
281 - [∮, ⠈⠮] # closed line integral (small circle halfway up) [\x222e]
282 - [∴, ⠈⠡] # 'therefore' (three dots in upright pyramid) [\x2234]
283 - [∵, ⠈⠌] # 'since' (three dots in inverted pyramid) [\x2235]
284 - [∶, ⠐⠂] # ratio [\x2236]
285 - [∷, ⠒⠇] # proportion [\x2237]
286 - [≃, ⠸⠶⠔] # approximately equal to (tilde over horizontal straight line) [\x2243]
287 - [≅, ⠸⠶⠶] # tilde over equals sign (approximately equal) [\x2245]
288 - [≈, ⠸⠶] # approximately equal to (tilde over tilde) [\x2248]
289 - [≏, ⠘⠐⠶] # equals sign with bump in top bar (difference between or approximately equal) [\x224f]
290 - [≑, ⠘⠰⠶] # equals sign dotted above and below (approximately equal) [\x2251]
291 - [≡, ⠰⠶⠶] # equivalent to (three horizontal lines) [\x2261]
292 - [≤, ⠸⠘⠢] # less than or equal to [\x2264]
293 - [≥, ⠸⠘⠔] # greater than or equal to [\x2265]
294 - [≪, ⠈⠘⠢] # is much less than [\x226a]
295 - [≫, ⠈⠘⠔] # is much greater than [\x226b]
296 - [⊂, ⠘⠣] # contained in, is a subset of (U open to right) [\x2282]
297 - [⊃, ⠘⠜] # contains, is a superset of (U open to left) [\x2283]
298 - [⊆, ⠸⠘⠣] # contained in or equal to [\x2286]
299 - [⊇, ⠸⠘⠜] # contains or equal to [\x2287]
300 - [⊊, ⠘⠘⠣] # contained in, but not equal to (proper subset) [\x228a]
301 - [⊋, ⠘⠘⠜] # contains, but is not equal to (proper superset) [\x228b]
302 - [⊣, ⠈⠸⠒] # reverse assertion ('T' lying on right side) [\x22a3]
303 - [⊥, ⠼⠤] # perpendicular to (up tack) [\x22a5]
304 - [⊦, ⠸⠸⠒] # # assertion ('is a theorem' sign, 'T' lying on left side) [\x22a6]
305 - [⊨, ⠘⠸⠒] # 'is valid' sign (assertion with double stem on 'T') [\x22a8]
306 - [⊲, ⠈⠸⠣] # is a normal subgroup of (closed 'less than') [\x22b2]
307 - [⊳, ⠈⠸⠜] # inverse 'is normal subgroup' (closed 'greater than') [\x22b3]
308 - [⊴, ⠸⠸⠣] # is normal subgroup of or equal (closed 'less than' with line under) [\x22b4]
309 - [⊵, ⠸⠸⠜] # inverse 'normal subgroup or equal'' (closed ''greater than'' with line under) [\x22b5]']
310 - [⊾, ⠻⠼⠪] # measured right angle sign [\x22be]
311 - [⋅, ⠐⠲] # multiplication dot [\x22c5]
312 - [│, ⠸] # tally mark [\x2502]
313 - [┊, ⠘] # first variant vertical line segment [\x250a]
314 - [║, ⠠⠸] # second variant vertical line segment [\x2551]
315 - [╱, ⠬] # right-leaning single solid diagonal line segment [\x2571]
316 - [╲, ⠪] # left-leaning single solid diagonal line segment [\x2572]
317 - [■, ⠻⠙⠒] # filled (solid) shape indicator applied on square [\x25a0]
318 - [□, ⠻⠙] # square [\x25a1]
319 - [▧, ⠻⠙⠤] # shaded shape indicator applied on square [\x25a7]
320 - [▲, ⠻⠉⠂] # filled (solid) (equilateral) triangle [\x25b2]
321 - [△, ⠻⠉] # regular (equilateral) triangle [\x25b3]
322 - [○, ⠻⠹] # circle [\x25cb]
323 - [◍, ⠻⠫⠿] # shaded circle [\x25cd]
324 - [⦵, ⠘⠈⠚] # 'normal' (superscript circle crossed by horizontal line) [\x29b5]
325 - [♀, ⠘⠹] # female sign (Venus) [\x2640]
326 - [♂, ⠘⠮] # male sign (Mars) [\x2642]
327 - [♭, ⠼⠣] # flat [\x266d]
328 - [♮, ⠼⠡] # natural [\x266e]
329 - [♯, ⠼⠩] # sharp [\x266f]
330 - [E♭, ⠠⠑⠼⠣]
331 - [B♮, ⠠⠃⠼⠡]
332 - [F♯, ⠠⠋⠼⠩]
333 - [⦵, ⠘⠈⠚] # 'normal' (superscript circle crossed by horizontal line) [\x29b5]
334 - [⊣, ⠈⠸⠒] # reverse assertion sign ('T' lying on right side) [\x22a3]
335 - [⫤, ⠬⠸⠒] # reverse 'is valid' sign [\x2ae4]
336 - [˦, ⠈⠪⠉] # high tone [\x02e6]
337 - [˧,⠈⠪⠒] # mid tone [\x02e7]
338 - [˨, ⠈⠪⠤] # low tone [\x02e8]
339 - [〃, ⠈⠐⠂] # ditto mark [\x3003]
340 - [●, ⠔] # black circle [\x25cf]
341 - [⅐, ⠼⠁⠌⠛] # vulgar fraction one seventh (1/7) [\x2150]
342 - [⅑, ⠼⠁⠌⠊] # vulgar fraction one ninth (1/9) [\x2151]
343 - [⅒, ⠼⠁⠌⠁⠚] # vulgar fraction one tenth (1/10) [\x2152]
344 - [⅓, ⠼⠁⠌⠉] # vulgar fraction one third (1/3) [\x2153]
345 - [⅔, ⠼⠃⠌⠉] # vulgar fraction two thirds (2/3) [\x2154]
346 - [⅕, ⠼⠁⠌⠑] # vulgar fraction one fifth (1/5) [\x2155]
347 - [⅖, ⠼⠃⠌⠑] # vulgar fraction two fifths (2/5) [\x2156]
348 - [⅗, ⠼⠉⠌⠑] # vulgar fraction three fifths (3/5) [\x2157]
349 - [⅘, ⠼⠙⠌⠑] # vulgar fraction four fifths (4/5) [\x2158]
350 - [⅙, ⠼⠁⠌⠋] # vulgar fraction one sixth (1/6) [\x2159]
351 - [⅚, ⠼⠑⠌⠋] # vulgar fraction five sixths (5/6) [\x215a]
352 - [⅛, ⠼⠁⠌⠓] # vulgar fraction one eighth (1/8) [\x215b]
353 - [⅜, ⠼⠉⠌⠓] # vulgar fraction three eighths (3/8) [\x215c]
354 - [⅝, ⠼⠑⠌⠓] # vulgar fraction five eighths (5/8) [\x215d]
355 - [⅞, ⠼⠛⠌⠓] # vulgar fraction seven eighths (7/8) [\x215e]
356 - [≠, ⠐⠶] # not equal [\x2260]