| 1 |
# liblouis: Arabic Grade 2 table |
| 2 |
|
| 3 |
# Based on the official Unified Arabic Braille Project website |
| 4 |
# <https://mip.qa/braille>: a comprehensive resource containing all |
| 5 |
# details about Arabic braille, including complete references, |
| 6 |
# tutorials and awareness articles. It also provides a platform for |
| 7 |
# suggestions and comments to improve Arabic braille further. |
| 8 |
|
| 9 |
# Copyright (C) 2018, 2020 by Ikrami Ahmad <[email protected]> |
| 10 |
# Copyright (C) 2020 Mada, Qatar Assistive Technology Center <[email protected]> |
| 11 |
|
| 12 |
# This file is free software; you can redistribute it and/or |
| 13 |
# modify it under the terms of the GNU Lesser General Public |
| 14 |
# License as published by the Free Software Foundation; either |
| 15 |
# version 2.1 of the License, or (at your option) any later version. |
| 16 |
|
| 17 |
# This file is distributed in the hope that it will be useful, |
| 18 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20 |
# Lesser General Public License for more details. |
| 21 |
|
| 22 |
# You should have received a copy of the GNU Lesser General Public |
| 23 |
# License along with this file; if not, write to the Free Software |
| 24 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 25 |
|
| 26 |
#-index-name: Arabic, contracted |
| 27 |
#-display-name: Arabic contracted braille |
| 28 |
#+language: ar |
| 29 |
#+type: literary |
| 30 |
#+contraction: full |
| 31 |
#+grade: 2 |
| 32 |
# Marked as "direction:both" by Bue Vester-Andersen |
| 33 |
# as tests run both forward and backward |
| 34 |
#+direction: both |
| 35 |
#-author: Ikrami Ahmad <[email protected]> |
| 36 |
|
| 37 |
include ar-ar-g1-core.uti |
| 38 |
|
| 39 |
# first rule: these should be abbriviated everywhere, whether as stand alone word or part of a bigger word. |
| 40 |
always برمج 4-12 |
| 41 |
always بعد 5-12 |
| 42 |
always بعيد 45-12 |
| 43 |
always برنامج 456-12 |
| 44 |
|
| 45 |
always تعليم 4-2345 |
| 46 |
always تحت 5-2345 |
| 47 |
always تدريب 45-2345 |
| 48 |
always تدريج 456-2345 |
| 49 |
|
| 50 |
always ثقاف 4-1456 |
| 51 |
always أثناء 5-1456 |
| 52 |
always ثاني 45-1456 |
| 53 |
always ثالث 456-1456 |
| 54 |
|
| 55 |
always جديد 4-245 |
| 56 |
always جميع 5-245 |
| 57 |
always جانب 45-245 |
| 58 |
always جعل 456-245 |
| 59 |
|
| 60 |
always أحيان 4-156 |
| 61 |
always حياة 5-156 |
| 62 |
always حقيق 45-156 |
| 63 |
always حول 456-156 |
| 64 |
|
| 65 |
always خروج 4-1346 |
| 66 |
always خصوص 5-1346 |
| 67 |
always خارج 45-1346 |
| 68 |
always خاصة 456-1346 |
| 69 |
|
| 70 |
always دقيق 4-145 |
| 71 |
always دائم 5-145 |
| 72 |
always داخل 45-145 |
| 73 |
always دليل 456-145 |
| 74 |
|
| 75 |
always ذاهب 4-2346 |
| 76 |
always ذلك 5-2346 |
| 77 |
always حينئذ 45-2346 |
| 78 |
always عندئذ 456-2346 |
| 79 |
|
| 80 |
always رياض 4-1235 |
| 81 |
always روح 5-1235 |
| 82 |
always رئيس 45-1235 |
| 83 |
always رسول 456-1235 |
| 84 |
|
| 85 |
always زواج 4-1356 |
| 86 |
always زمان 5-1356 |
| 87 |
always زمن 45-1356 |
| 88 |
always زوج 456-1356 |
| 89 |
|
| 90 |
always سياس 4-234 |
| 91 |
always سريع 5-234 |
| 92 |
always سائر 45-234 |
| 93 |
always سبيل 456-234 |
| 94 |
|
| 95 |
always شيئا 4-146 |
| 96 |
always شديد 5-146 |
| 97 |
always شاهد 45-146 |
| 98 |
always شؤون 456-146 |
| 99 |
|
| 100 |
always صديق 4-12346 |
| 101 |
always & 56-4-12346 |
| 102 |
always صاحب 5-12346 |
| 103 |
always صغير 45-12346 |
| 104 |
always صور 456-12346 |
| 105 |
|
| 106 |
always ضعيف 4-1246 |
| 107 |
always ضمير 5-1246 |
| 108 |
always بعض 45-1246 |
| 109 |
always ضرور 456-1246 |
| 110 |
|
| 111 |
always طبيع 4-23456 |
| 112 |
always طريق 5-23456 |
| 113 |
always طبع 45-23456 |
| 114 |
always طويل 456-23456 |
| 115 |
|
| 116 |
always حافظ 4-123456 |
| 117 |
always ظاهر 5-123456 |
| 118 |
always ظروف 45-123456 |
| 119 |
always ظهور 456-123456 |
| 120 |
|
| 121 |
always عادة 4-12356 |
| 122 |
always عزيز 5-12356 |
| 123 |
always عبارة 45-12356 |
| 124 |
always عظيم 456-12356 |
| 125 |
|
| 126 |
always غادر 4-126 |
| 127 |
always غير 5-126 |
| 128 |
always غالب 45-126 |
| 129 |
always غريب 456-126 |
| 130 |
|
| 131 |
always فراغ 4-124 |
| 132 |
always فوق 5-124 |
| 133 |
always فائدة 45-124 |
| 134 |
always فعل 456-124 |
| 135 |
|
| 136 |
always قطع 4-12345 |
| 137 |
always قليل 5-12345 |
| 138 |
always قريب 45-12345 |
| 139 |
always قديم 456-12345 # previously partword |
| 140 |
|
| 141 |
always كتاب 4-13 |
| 142 |
always كثير 5-13 |
| 143 |
always كبير 45-13 |
| 144 |
always كاتب 456-13 |
| 145 |
|
| 146 |
always لطيف 4-123 |
| 147 |
always لكن 5-123 |
| 148 |
always لعل 45-123 |
| 149 |
always لسان 456-123 |
| 150 |
|
| 151 |
always مكفوف 4-134 |
| 152 |
always مرة 5-134 |
| 153 |
always معنى 45-134 |
| 154 |
always معظم 456-134 |
| 155 |
|
| 156 |
always ناسب 4-1345 |
| 157 |
always نفس 5-1345 |
| 158 |
always ناحية 45-1345 |
| 159 |
always نعم 456-1345 |
| 160 |
|
| 161 |
always هكذا 4-125 |
| 162 |
always هذا 5-125 |
| 163 |
always هذه 45-125 |
| 164 |
always هؤلاء 456-125 |
| 165 |
|
| 166 |
always وارد 4-2456 |
| 167 |
always واحد 5-2456 |
| 168 |
always واجب 45-2456 |
| 169 |
always وجود 456-2456 |
| 170 |
|
| 171 |
always \x0644\x0627\x0020\x0633\x064A\x0645\x0627 4-1236 # لا سيما |
| 172 |
always \x0644\x0627\x0020\x0634\x0643 5-1236 # لا شك |
| 173 |
always \x0644\x0627\x0020\x0628\x062F 45-1236 # لا بد |
| 174 |
always \x0644\x0627\x0020\x064A\x0632\x0627\x0644 456-1236 # لا يزال |
| 175 |
|
| 176 |
always يسير 4-24 |
| 177 |
always أيام 5-24 |
| 178 |
always يمكن 45-24 |
| 179 |
always يقول 456-24 |
| 180 |
|
| 181 |
always أعلى 4-135 |
| 182 |
always أولى 5-135 |
| 183 |
always أدنى 6-135 |
| 184 |
always أخرى 45-135 |
| 185 |
always أغنى 56-135 |
| 186 |
always أقصى 456-135 |
| 187 |
|
| 188 |
always جملة 4-16 |
| 189 |
always ساعة 5-16 |
| 190 |
always تارة 45-16 |
| 191 |
always تربية 56-16 |
| 192 |
always لحظة 456-16 |
| 193 |
|
| 194 |
always أكبر 4-34 |
| 195 |
always أحد 5-34 |
| 196 |
always أسفل 6-34 |
| 197 |
always أخير 45-34 |
| 198 |
always أصغر 56-34 |
| 199 |
always أكثر 456-34 |
| 200 |
|
| 201 |
always مؤمن 4-1256 |
| 202 |
always مسؤول 5-1256 |
| 203 |
always مؤلف 6-1256 |
| 204 |
always مؤسس 45-1256 |
| 205 |
always مؤتمر 56-1256 |
| 206 |
always مؤثر 456-1256 |
| 207 |
|
| 208 |
always قائل 4-13456 |
| 209 |
always لأجل 5-13456 |
| 210 |
always سائل 6-13456 |
| 211 |
always قائم 45-13456 |
| 212 |
always شائع 56-13456 |
| 213 |
always فائز 456-13456 |
| 214 |
|
| 215 |
always آداب 4-345 |
| 216 |
always آراء 5-345 |
| 217 |
always آفاق 6-345 |
| 218 |
always آخر 45-345 |
| 219 |
always آثار 56-345 |
| 220 |
always أيها 456-345 |
| 221 |
|
| 222 |
always \x0644\x0645\x0020\x064A\x0639\x062F 4-15 # لم يعد |
| 223 |
always \x0644\x0645\x0020\x064A\x0643\x0646 5-15 # لم يكن |
| 224 |
always \x0644\x0645\x0020\x064A\x062A\x0645\x0643\x0646 6-15 # لم يتمكن |
| 225 |
always \x0644\x0645\x0020\x0020\x064A\x0644\x0628\x062B 45-15 # لم يلبث |
| 226 |
always \x0644\x0645\x0020\x064A\x0633\x062A\x0637\x0639 56-15 # لم يستطع |
| 227 |
always \x0644\x0645\x0020\x064A\x0632\x0644 456-15 # لم يزل |
| 228 |
|
| 229 |
always حقوق 4-136 |
| 230 |
always حاسب 5-136 |
| 231 |
always حاسوب 6-136 |
| 232 |
always حروف 45-136 |
| 233 |
always حدود 56-136 |
| 234 |
always دنيا 456-136 |
| 235 |
|
| 236 |
always ال 14 |
| 237 |
always اللائي 4-14 |
| 238 |
always الذي 5-14 |
| 239 |
always الناس 6-14 |
| 240 |
always التي 45-14 |
| 241 |
always اللاتي 56-14 |
| 242 |
always الذين 456-14 |
| 243 |
|
| 244 |
always كان 1245 |
| 245 |
always كون 4-1245 |
| 246 |
always كائن 5-1245 |
| 247 |
always كلم 6-1245 |
| 248 |
always كريم 45-1245 |
| 249 |
always تكوين 56-1245 |
| 250 |
always تكنولوجي 456-1245 |
| 251 |
|
| 252 |
always ما 1234 |
| 253 |
always \x0645\x0627\x0020\x0632\x0627\x0644 4-1234 # ما زال |
| 254 |
always ماذا 5-1234 |
| 255 |
always \x0645\x0627\x0020\x0627\x0646\x0641\x0643 6-1234 # ما انفك |
| 256 |
always \x0645\x0627\x0020\x0628\x0631\x062D 45-1234 # ما برح |
| 257 |
always \x0645\x0627\x0020\x062F\x0627\x0645 56-1234 # ما دام |
| 258 |
always \x0645\x0627\x0020\x0639\x062F\x0627 456-1234 # ما عدا |
| 259 |
|
| 260 |
always هم 12456 |
| 261 |
always هاجر 4-12456 |
| 262 |
always هاتف 5-12456 |
| 263 |
always هامش 6-12456 |
| 264 |
always هندس 45-12456 |
| 265 |
always هيئة 56-12456 |
| 266 |
always هيمن 456-12456 |
| 267 |
|
| 268 |
always إحصاء 4-246 |
| 269 |
always إنسان 5-246 |
| 270 |
always إنتاج 6-246 |
| 271 |
always إسلام 45-246 |
| 272 |
always إخراج 56-246 |
| 273 |
always إيمان 456-246 |
| 274 |
|
| 275 |
always ين 346 |
| 276 |
always ينطبق 4-346 |
| 277 |
always ينمو 5-346 |
| 278 |
always ينعكس 6-346 |
| 279 |
always ينبغي 45-346 |
| 280 |
always ينتشر 56-346 |
| 281 |
always يندرج 456-346 |
| 282 |
|
| 283 |
#Second rule: these should be abbriviated if they come as a single word only, they can't be abbriviated if part of bigger word. |
| 284 |
word أو 1 |
| 285 |
contraction ا |
| 286 |
word بل 12 |
| 287 |
contraction ب |
| 288 |
word ثم 1456 |
| 289 |
contraction ث |
| 290 |
word قد 3 |
| 291 |
contraction ء |
| 292 |
word كل 345 |
| 293 |
word آ 56-56-345 # double letter sign because of always آثار 56-345 |
| 294 |
|
| 295 |
#Third rule: these should be abbriviated if they are a word or at the beginning of a word only, because of their similarity with diacritic symbols. |
| 296 |
sufword لم 15 |
| 297 |
sufword ِ 56-56-15 # double letter sign because of always لم يستطع 56-15 |
| 298 |
sufword عن 35 |
| 299 |
word ٍ 56-56-35 # using double letter sign because of sign * 56-35 |
| 300 |
sufword إلى 26 |
| 301 |
contraction ٌ |
| 302 |
sufword حيث 136 |
| 303 |
sufword ُ 56-56-136 # double letter sign because of always حدود 56-136 |
| 304 |
sufword مع 23 |
| 305 |
contraction ً |
| 306 |
sufword لل 25 |
| 307 |
contraction ْ |
| 308 |
|
| 309 |
#fourth rule: these should be abbriviated if they came as a seperate word and if they came in the middle of words only, because of their similarity to punctuation marks. |
| 310 |
lowword هو 236 |
| 311 |
lowword متى 2356 |
| 312 |
midword هو 236 |
| 313 |
midword متى 2356 |
| 314 |
|
| 315 |
#fifth rule: these should be abbriviated if they come as a word or part of a word at the beginning or the middle, because of their similarity with punctuation marks that close sentences. |
| 316 |
lowword من 356 |
| 317 |
lowword في 235 |
| 318 |
lowword ست 256 |
| 319 |
begmidword من 356 |
| 320 |
begmidword في 235 |
| 321 |
begmidword ست 256 |
| 322 |
|
| 323 |
#sixth rule: if the following abbriviations come as single words, they should be abbriviated normally. but if they come as a part of bigger word, dots 36 must be placed before the character that represents the abbreviated word. |
| 324 |
#firstly we will identify them as part of bigger words. |
| 325 |
partword تلك 36-2345 |
| 326 |
partword جدا 36-245 |
| 327 |
partword حتى 36-156 |
| 328 |
partword خير 36-1346 |
| 329 |
partword إذا 36-246 |
| 330 |
partword دخول 36-145 |
| 331 |
partword ذاكر 36-2346 |
| 332 |
partword ربما 36-1235 |
| 333 |
partword زاول 36-1356 |
| 334 |
partword سوف 36-234 |
| 335 |
partword أيضا 36-1246 |
| 336 |
partword شيء 36-146 |
| 337 |
partword صار 36-12346 |
| 338 |
partword فقط 36-23456 |
| 339 |
partword ظهر 36-123456 |
| 340 |
partword عسى 36-12356 |
| 341 |
partword غاية 36-126 |
| 342 |
partword فلما 36-124 |
| 343 |
partword قرب 36-12345 |
| 344 |
partword كيف 36-13 |
| 345 |
partword ليس 36-123 |
| 346 |
partword مثل 36-134 |
| 347 |
partword نحو 36-1345 |
| 348 |
partword هناك 36-125 |
| 349 |
partword ولما 36-2456 |
| 350 |
partword يوم 36-24 |
| 351 |
partword على 36-135 |
| 352 |
partword قبل 36-16 |
| 353 |
partword أولئك 36-1256 |
| 354 |
partword إلا 36-13456 |
| 355 |
partword أسئلة 36-34 |
| 356 |
|
| 357 |
#as a single word, no 36 placed before the character. |
| 358 |
word تلك 2345 |
| 359 |
contraction ت |
| 360 |
word جدا 245 |
| 361 |
contraction ج |
| 362 |
word حتى 156 |
| 363 |
contraction ح |
| 364 |
word خير 1346 |
| 365 |
contraction خ |
| 366 |
word إذا 246 |
| 367 |
word دخول 145 |
| 368 |
contraction د |
| 369 |
word ذاكر 2346 |
| 370 |
contraction ذ |
| 371 |
word ربما 1235 |
| 372 |
contraction ر |
| 373 |
word زاول 1356 |
| 374 |
contraction ز |
| 375 |
word سوف 234 |
| 376 |
contraction س |
| 377 |
word أيضا 1246 |
| 378 |
contraction ض |
| 379 |
word شيء 146 |
| 380 |
contraction ش |
| 381 |
word صار 12346 |
| 382 |
contraction ص |
| 383 |
word فقط 23456 |
| 384 |
contraction ط |
| 385 |
word ظهر 123456 |
| 386 |
contraction ظ |
| 387 |
word عسى 12356 |
| 388 |
contraction ع |
| 389 |
word غاية 126 |
| 390 |
contraction غ |
| 391 |
word فلما 124 |
| 392 |
contraction ف |
| 393 |
word قرب 12345 |
| 394 |
contraction ق |
| 395 |
word كيف 13 |
| 396 |
contraction ك |
| 397 |
word ليس 123 |
| 398 |
contraction ل |
| 399 |
word مثل 134 |
| 400 |
contraction م |
| 401 |
word نحو 1345 |
| 402 |
contraction ن |
| 403 |
word هناك 125 |
| 404 |
contraction ه |
| 405 |
word ولما 2456 |
| 406 |
contraction و |
| 407 |
word يوم 24 |
| 408 |
contraction ي |
| 409 |
word على 135 |
| 410 |
word ى 56-56-135 # double letter sign because of always أغنى 56-135 |
| 411 |
word قبل 16 |
| 412 |
word ة 56-56-16 # double letter sign because of always تربية 56-16 |
| 413 |
word أولئك 1256 |
| 414 |
word ؤ 56-56-1256 # double letter sign because of always مؤتمر 56-1256 |
| 415 |
word إلا 13456 |
| 416 |
word ئ 56-56-13456 # double letter sign because of always شائع 56-13456 |
| 417 |
word إسئلة 34 |
| 418 |
word أ 56-56-34 # double letter sign because of always أصغر 56-34 |
| 419 |
|
| 420 |
#seventh rule: if the letter that procedes any of these abbreviations consists of dots 1 2 and 3 only, they should not be abbreviated. |
| 421 |
#here i will use the match opcode to define the 6 possible characters that can come before these contractions. |
| 422 |
match ل ون %[_.^] 2456-1345 |
| 423 |
match ب ون %[_.^] 2456-1345 |
| 424 |
match ا ون %[_.^] 2456-1345 |
| 425 |
match ك ون %[_.^] 2456-1345 |
| 426 |
match ء ون %[_.^] 2456-1345 |
| 427 |
match َ ون %[_.^] 2456-1345 |
| 428 |
|
| 429 |
match ل ات %[_.^] 1-2345 |
| 430 |
match ب ات %[_.^] 1-2345 |
| 431 |
match ا ات %[_.^] 1-2345 |
| 432 |
match ك ات %[_.^] 1-2345 |
| 433 |
match ء ات %[_.^] 1-2345 |
| 434 |
match َ ات %[_.^] 1-2345 |
| 435 |
|
| 436 |
match ل ية %[_.^] 24-16 |
| 437 |
match ب ية %[_.^] 24-16 |
| 438 |
match ا ية %[_.^] 24-16 |
| 439 |
match ك ية %[_.^] 24-16 |
| 440 |
match ء ية %[_.^] 24-16 |
| 441 |
match َ ية %[_.^] 24-16 |
| 442 |
|
| 443 |
#eighth rule: those should be abbreviated only at the end of word. |
| 444 |
endword ات 46 |
| 445 |
endword ون 456 |
| 446 |
endword ية 45 |
| 447 |
endword وا 3456 |