Debian Codegraph @

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

raw symbols SCIP
1 # Copyright © 2018, 2020 Ikrami Ahmad
2 # Copyright © 2020 Bert Frees
3 #
4 # Copying and distribution of this file, with or without modification,
5 # are permitted in any medium without royalty provided the copyright
6 # notice and this notice are preserved. This file is offered as-is,
7 # without any warranty.
8
9 display: unicode-without-blank.dis
10 table:
11 language: ar
12 grade: 2
13 __assert-match: ar-ar-g2.ctb
14 flags: {testmode: bothDirections}
15 tests:
16 # 1) first rule: these should be abbreviated everywhere, whether as stand alone word or part of a
17 # bigger word.
18
19 # stand alone
20 - [بعيد, ⠘⠃]
21 - [برنامج, ⠸⠃]
22 - [تعليم, ⠈⠞]
23 - [ثاني, ⠘⠹]
24 - [جميع, ⠐⠚]
25 - [مكفوف, ⠈⠍]
26 - [اللائي, ⠈⠉]
27 - [كان, ⠛]
28 - [كريم, ⠘⠛]
29 - [آفاق, ⠠⠜]
30 - [أدنى, ⠠⠕]
31 - [إنسان, ⠐⠪]
32 # some are contractions for two words
33 - - لم يكن
34 - ⠐⠑
35 - - ما زال
36 - ⠈⠏
37 - - لا يزال
38 - ⠸⠧
39 # they can be part of a word
40 - - ثقافة
41 - ⠈⠹⠡
42 - - ومرة
43 - ⠺⠐⠍
44 - - وتقطعت
45 - ⠺⠞⠈⠟⠞
46 # a word can have two contractions
47 - - الثالث
48 - ⠉⠸⠹
49 - - كبيرهم
50 - ⠘⠅⠻
51 # they can be used alongside punctuation marks
52 - - "ثانيا:"
53 - ⠘⠹⠁⠐⠂
54 - - (صغير)
55 - ⠦⠘⠯⠴
56
57 # 2) second rule: these should be abbreviated if they come as a single word only, they can't be
58 # abbreviated if part of bigger word.
59
60 # abbreviated
61 - - أو
62 - ⠁
63 - - قد
64 - ⠄
65 # not abbreviated
66 - - لقد
67 - ⠇⠟⠙
68 - - كلهم
69 - ⠅⠇⠻
70 - - ثمرة
71 - ⠹⠐⠍
72
73 # 3) third rule: these should be abbreviated if they are a word or at the beginning of a word
74 # only, because of their similarity with diacritic symbols.
75
76 # abbreviated
77 - - لم
78 - ⠑
79 - - إلى
80 - ⠢
81 - - عنوان
82 - ⠔⠺⠁⠝
83 - - معمعة
84 - ⠆⠍⠷⠡
85 - - حيثما
86 - ⠥⠏
87 # not abbreviated
88 - - ملل
89 - ⠍⠇⠇
90 - - لعنة
91 - ⠇⠷⠝⠡
92
93 # 4) fourth rule: these should be abbreviated if they came as a seperate word and if they came in
94 # the middle of words only, because of their similarity to punctuation marks.
95
96 # abbreviated
97 - - هو
98 - ⠦
99 - - متى
100 - ⠶
101 - - مهووس
102 - ⠍⠦⠺⠎
103 - - هو الذي جاء
104 - ⠦ ⠐⠉ ⠚⠁⠄
105 # not abbreviated
106 - - ومتى
107 - ⠺⠍⠞⠕
108 - - هوشة
109 - ⠓⠺⠩⠡
110 - - من هو؟
111 - ⠴ ⠓⠺⠦
112 - - (متى هذا
113 - ⠦⠍⠞⠕ ⠐⠓
114
115 # 5) fifth rule: these should be abbreviated if they come as a word or part of a word at the
116 # beginning or the middle, because of their similarity with punctuation marks that close
117 # sentences.
118
119 # abbreviated
120 - - من
121 - ⠴
122 - - في
123 - ⠖
124 - - منتهى
125 - ⠴⠞⠓⠕
126 - - مستنقع
127 - ⠍⠲⠝⠟⠷
128 # not abbreviated
129 - - وفي
130 - ⠺⠋⠊
131 - - لبست
132 - ⠇⠃⠎⠞
133 - - مدمن
134 - ⠍⠙⠍⠝
135 - - (ثم من)
136 - ⠦⠹ ⠍⠝⠴
137
138 # 6) sixth rule: if the following abbriviations come as single words, they should be abbreviated
139 # normally. but if they come as a part of bigger word, dots 36 must be placed before the character
140 # that represents the abbreviated word.
141
142 # as a seperate word
143 - - ليس
144 - ⠇
145 - - مثل
146 - ⠍
147 - - ذاكر
148 - ⠮
149 - - شيء نحو الهدف
150 - ⠩ ⠝ ⠉⠓⠙⠋
151 # due to the use of "lowword", they will not be translated next to punctuations.
152 - - قريب جدا
153 - ⠘⠟ ⠚
154 # as part of a word:
155 - - الخير
156 - ⠉⠤⠭
157 - - فإذا
158 - ⠋⠤⠪
159 - - مثلما
160 - ⠤⠍⠏
161 - - ونحوه
162 - ⠺⠤⠝⠓
163
164 # 7) seventh rule: if the letter that procedes any of these abbreviations consists of dots 1 2 and
165 # 3 only, they should not be abbreviated.
166 - - علية
167 - ⠷⠇⠊⠡
168 - - تائبون
169 - ⠞⠁⠽⠃⠺⠝
170 - - مرتبات
171 - ⠍⠗⠞⠃⠁⠞
172
173 # 8) eighth rule: those should be abbreviated only at the end of word.
174 - - بنات
175 - ⠃⠝⠨
176 - - قائمون
177 - ⠘⠽⠸
178 - - قالوا
179 - ⠟⠉⠼
180
181 # grade 1 indicator
182
183 # whatever is followed by dots 56 should be treated as grade 1 until terminated by a space
184 - - صار
185 - ⠯
186 - - صديق
187 - ⠈⠯
188 - - ص # letter ص is abbreviation for word صار
189 - ⠰⠯
190 - - "&"
191 - ⠰⠈⠯
192 # some contractions also start with dots 56: if this leads to ambiguities an extra dots 56 is needed
193 # to indicate a grade 1 symbol
194 # example: dots 15 is the grade 1 symbol for kasrah, but also a contraction, and when prefixed
195 # with 56 it's another contraction
196 - - لم يستطع
197 - ⠰⠑
198 - - لم # grade 2 contraction
199 - ⠑
200 - - ِ # grade 1 symbol (kasrah)
201 - ⠰⠰⠑
202 # another example
203 - - حيث # grade 2 contraction
204 - ⠥
205 - - حدود # grade 2 contraction
206 - ⠰⠥
207 - - ُ # grade 1 symbol (dammah)
208 - ⠰⠰⠥
209 # more grade 1 symbols that require a double dots 56
210 - - ى
211 - ⠰⠰⠕
212 - - ة
213 - ⠰⠰⠡
214 - - ؤ
215 - ⠰⠰⠳
216 - - ئ
217 - ⠰⠰⠽
218 - - آ
219 - ⠰⠰⠜
220 - - أ
221 - ⠰⠰⠌
222 # some examples where a grade 1 symbol is immediately followed by punctuation
223 # (note that the braille translation of the punctuation signs is the same in grade 1 and 2, but in
224 # principle the grade 1 mode ends only after the punctuation)
225 - - اختر ا أو ب.
226 - ⠁⠭⠞⠗ ⠰⠁ ⠁ ⠰⠃⠲
227 - - ماذا تعني ص؟
228 - ⠐⠏ ⠞⠷⠝⠊ ⠰⠯⠦
229 - - 'علامة الكسرة هكذا ِ:'
230 - ⠷⠧⠍⠡ ⠉⠅⠎⠗⠡ ⠈⠓ ⠰⠰⠑⠐⠂