Debian Codegraph @

tests/braille-specs/sv.yaml

raw symbols SCIP
1 # Swedish braille
2 #
3 # Based on the following documentation:
4 # - Svenska skrivregler för punktskrift <https://www.mtm.se/skrivregler/dtb-bm-l1.html>
5 # - Kortskrift nivå 1 och 2 <https://www.mtm.se/contentassets/08089b067f61495da1b035390d7a120e/kortskrift-niva-1-och-2---1997---nytt-manuskript-2016-09-26_v4.pdf>
6 #
7 # Copyright (C) 2022-2026 by Insyn Scandinavia AB <[email protected]>
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: |
15 include unicode-without-blank.dis
16 display a a
17
18 # ----------------------------------
19 # 6-dot grade 0, uncontracted, normal
20 # ----------------------------------
21
22 table:
23 language: sv
24 grade: 0
25 dots: 6
26 variant: normal
27 __assert-match: sv-g0.utb
28 flags: {testmode: bothDirections}
29 tests:
30 - # Lowercase letters
31 - a b c d e f g h i j k l m n o p q r s t u v w x y z
32 - ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵
33 - # Single digits
34 - 1 2 3 4 5 6 7 8 9 0
35 - ⠼⠁ ⠼⠃ ⠼⠉ ⠼⠙ ⠼⠑ ⠼⠋ ⠼⠛ ⠼⠓ ⠼⠊ ⠼⠚
36 - # Capitalization
37 - Hej!
38 - ⠠⠓⠑⠚⠖
39 - # All caps word
40 - NHL
41 - ⠠⠠⠝⠓⠇
42 - # Mixed letters and numbers
43 - 123abc
44 - ⠼⠁⠃⠉⠱⠁⠃⠉
45 - # Decimal point
46 - 10,35
47 - ⠼⠁⠚⠂⠉⠑
48 - # Number series
49 - 192.168.0.1
50 - ⠼⠁⠊⠃⠄⠁⠋⠓⠄⠚⠄⠁
51 - # Time
52 - 15:35
53 - ⠼⠁⠑⠒⠼⠉⠑
54 # Spaces
55 - ['\x0020', ' ']
56 - ['\x0009', '\x0020', {xfail: {backward: true}}]
57 - ['\x000a', '\x0020', {xfail: {backward: true}}]
58 - ['\x000d', '\x0020', {xfail: {backward: true}}]
59 - ['\x00a0', '\x0020', {xfail: {backward: true}}]
60 - # Generic diacritic letters
61 - ă ɖ ḝ
62 - ⠈⠁ ⠲⠙ ⠈⠑
63 - xfail: {backward: true}
64 # All caps phrase
65 - - VAD SÄGER DU?
66 - ⠠⠠⠠⠧⠁⠙ ⠎⠜⠛⠑⠗ ⠙⠥⠢⠱
67 - xfail: {backward: true}
68
69 # ----------------------------------
70 # 6-dot grade 0, uncontracted, detailed
71 # ----------------------------------
72
73 table:
74 language: sv
75 grade: 0
76 dots: 6
77 variant: detailed
78 __assert-match: sv-6g0d.utb
79 flags: {testmode: bothDirections}
80 tests:
81 - # Diacritic letters
82 - ć ì ó ţ ẅ
83 - ⠬⠔⠉ ⠬⠢⠊ ⠬⠔⠕ ⠣⠂⠞ ⠬⠆⠺
84
85 # ----------------------------------
86 # 6-dot grade 1, partially contracted, detailed
87 # ----------------------------------
88
89 table:
90 language: sv
91 grade: 1
92 dots: 6
93 variant: normal
94 __assert-match: sv-g1.ctb
95 flags: {testmode: bothDirections}
96 tests:
97 - # Non-contraction letters
98 - Nej s som i Sigurd.
99 - ⠠⠝⠑⠚ ⠒⠎ ⠎ ⠊ ⠠⠎⠊⠛⠥⠗⠙⠄
100 - # All caps phrase
101 - VAD SÄGER DU?
102 - ⠠⠠⠠⠺ ⠎⠜⠛⠑⠗ ⠙⠥⠢⠱
103 - xfail: {backward: true}
104
105 # ----------------------------------
106 # 6-dot grade 2, fully contracted, detailed
107 # ----------------------------------
108
109 table:
110 language: sv
111 grade: 2
112 dots: 6
113 variant: normal
114 __assert-match: sv-g2.ctb
115 flags: {testmode: bothDirections}
116 tests:
117 - # Part-word contraction
118 - Han sa att de kunde ingenting.
119 - ⠠⠓ ⠎⠁ ⠁ ⠹ ⠅⠹ ⠊⠣⠞⠦⠄
120 - # Two-word contraction
121 - Du kan till exempel gå till affären.
122 - ⠠⠙⠥ ⠅ ⠞⠤⠑⠭ ⠛⠡ ⠞ ⠁⠋⠋⠜⠗⠑⠝⠄
123
124 # ----------------------------------
125 # 8-dot grade 0 (uncontracted) normal
126 # ----------------------------------
127
128 table:
129 language: sv
130 dots: 8
131 grade: 0
132 variant: normal
133 __assert-match: sv-8g0n.utb
134 flags: {testmode: bothDirections}
135 tests:
136 - # Lowercase letters
137 - a b c d e f g h i j k l m n o p q r s t u v w x y z
138 - ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵
139 - # Digits
140 - 1 2 3 4 5 6 7 8 9 0
141 - ⢁ ⢃ ⢉ ⢙ ⢑ ⢋ ⢛ ⢓ ⢊ ⢚
142 - # Capitalization
143 - Hej!
144 - ⡓⠑⠚⠖
145 - # All caps word
146 - NHL
147 - ⡝⡓⡇
148 - # Diacritic letters
149 - ă ć ɖ ì ó ţ ẅ ḝ
150 - ⠈⠁ ⠈⠉ ⠲⠙ ⠈⠊ ⠈⠕ ⠈⠞ ⠈⠺ ⠈⠑
151 - xfail: {backward: true}
152
153 # ----------------------------------
154 # 8-dot grade 1 (partially contracted) normal
155 # ----------------------------------
156
157 table:
158 language: sv
159 dots: 8
160 grade: 1
161 variant: normal
162 __assert-match: sv-8g1n.ctb
163 flags: {testmode: bothDirections}
164 tests:
165 - # One-letter contractions
166 - och vad han har att vid
167 - ⠉ ⠺ ⠓ ⠗ ⠁ ⠧
168 - # One-letter contractions with capital signs
169 - Och Vad Han Har Att Vid
170 - ⡉ ⡺ ⡓ ⡗ ⡁ ⡧
171
172 # ----------------------------------
173 # 8-dot grade 2 (contracted) normal
174 # ----------------------------------
175
176 table:
177 language: sv
178 dots: 8
179 grade: 2
180 variant: normal
181 __assert-match: sv-8g2n.ctb
182 flags: {testmode: bothDirections}
183 tests:
184 - # Two-letter contractions
185 - hon allt endast måste några själva tillbaka ingen bland annat
186 - ⠓⠝ ⠁⠞ ⠑⠁ ⠍⠳ ⠝⠺ ⠎⠚⠁ ⠞⠃ ⠊⠣ ⠃⠇⠤⠁
187 - # Multi-letter contractions with capital signs
188 - Hon Allt Endast Måste Några Själva Tillbaka Ingen Bland annat
189 - ⡓⠝ ⡁⠞ ⡑⠁ ⡍⠳ ⡝⠺ ⡎⠚⠁ ⡞⠃ ⡊⠣ ⡃⠇⠤⠁
190
191 # ----------------------------------
192 # 8-dot grade 0 (uncontracted) detailed
193 # ----------------------------------
194
195 table:
196 language: sv
197 dots: 8
198 grade: 0
199 variant: detailed
200 __assert-match: sv-8g0d.utb
201 flags: {testmode: bothDirections}
202 tests:
203 - # Lowercase letters
204 - a b c d e f g h i j k l m n o p q r s t u v w x y z
205 - ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵
206 - # Digits
207 - 1 2 3 4 5 6 7 8 9 0
208 - ⢁ ⢃ ⢉ ⢙ ⢑ ⢋ ⢛ ⢓ ⢊ ⢚
209 - # Capitalization
210 - Hej!
211 - ⡓⠑⠚⠖
212 - # All caps word
213 - NHL
214 - ⡝⡓⡇
215 - # Diacritic letters
216 - ă ć ɖ ì ó ţ ẅ ḝ
217 - ⠬⠰⠁ ⠬⠔⠉ ⠲⠙ ⠬⠢⠊ ⠬⠔⠕ ⠣⠂⠞ ⠬⠆⠺ ⠬⠰⠣⠂⠑
218
219 # ----------------------------------
220 # 8-dot grade 1 (partially contracted) detailed
221 # ----------------------------------
222
223 table:
224 language: sv
225 dots: 8
226 grade: 1
227 variant: detailed
228 __assert-match: sv-8g1d.ctb
229 flags: {testmode: bothDirections}
230 tests:
231 - # One-letter contractions
232 - och vad han har att vid
233 - ⠉ ⠺ ⠓ ⠗ ⠁ ⠧
234 - # One-letter contractions with capital signs
235 - Och Vad Han Har Att Vid
236 - ⡉ ⡺ ⡓ ⡗ ⡁ ⡧
237
238 # ----------------------------------
239 # 8-dot grade 2 (contracted) detailed
240 # ----------------------------------
241
242 table:
243 language: sv
244 dots: 8
245 grade: 2
246 variant: detailed
247 __assert-match: sv-8g2d.ctb
248 flags: {testmode: bothDirections}
249 tests:
250 - # Multi-letter contractions
251 - hon allt endast måste några själva tillbaka ingen bland annat
252 - ⠓⠝ ⠁⠞ ⠑⠁ ⠍⠳ ⠝⠺ ⠎⠚⠁ ⠞⠃ ⠊⠣ ⠃⠇⠤⠁
253 - # Multi-letter contractions with capital signs
254 - Hon Allt Endast Måste Några Själva Tillbaka Ingen Bland annat
255 - ⡓⠝ ⡁⠞ ⡑⠁ ⡍⠳ ⡝⠺ ⡎⠚⠁ ⡞⠃ ⡊⠣ ⡃⠇⠤⠁