Debian Codegraph @

tests/braille-specs/mk.yaml

raw symbols SCIP
1 # Basic round-trip tests for Macedonian uncontracted Braille
2 #
3 # Copyright © 2025 by Kristijan Lazarev <[email protected]>
4 #
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the copyright
7 # notice and this notice are preserved. This file is offered as-is,
8 # without any warranty.
9
10 display: unicode.dis
11 table:
12 language: mk
13 type: literary
14 contraction: no
15 __assert-match: mk-g1.utb
16
17 # Keep cases short and representative. Avoid characters not defined in the table.
18 flags: {testmode: bothDirections}
19 tests:
20
21 # Alphabet (few samples incl. Macedonian-only letters)
22 - - "абв гдин јкљ њч ш ѓ ќ ѕ џ"
23 - "⠁⠃⠧⠀⠛⠙⠊⠝⠀⠚⠅⠣⠀⠫⠡⠀⠱⠀⠜⠀⠌⠀⠳⠀⠻"
24 - - "АБВ ГДИН ЈКЉ ЊЧ Ш Ѓ Ќ Ѕ Џ"
25 - "⠪⠁⠃⠧⠀⠪⠛⠙⠊⠝⠀⠪⠚⠅⠣⠀⠪⠫⠡⠀⠨⠱⠀⠨⠜⠀⠨⠌⠀⠨⠳⠀⠨⠻"
26
27 # Grave variants
28 - - "ѐ и ѝ"
29 - "⠈⠑⠀⠊⠀⠈⠊"
30 - - "Ѐ и Ѝ"
31 - "⠨⠈⠑⠀⠊⠀⠨⠈⠊"
32
33 # Punctuation (common)
34 - - "Здраво, свету."
35 - "⠨⠵⠙⠗⠁⠧⠕⠂⠀⠎⠧⠑⠞⠥⠲"
36 - - "Дали е точно? Да!"
37 - "⠨⠙⠁⠇⠊⠀⠑⠀⠞⠕⠡⠝⠕⠢⠀⠨⠙⠁⠖"
38 - - "Отвори „наводници“ и затвори."
39 - "⠨⠕⠞⠧⠕⠗⠊⠀⠦⠝⠁⠧⠕⠙⠝⠊⠉⠊⠴⠀⠊⠀⠵⠁⠞⠧⠕⠗⠊⠲"
40
41 # Numbers (a–j after numsign)
42 - # "№" is intentionally undefined in V1.0. The symbol is rare in Macedonian
43 # and will be assigned a braille pattern in a later version
44 - "Број: № 12, 34 и 56."
45 - "⠨⠃⠗⠕⠚⠒⠀⠄⡳⠭⠃⠁⠁⠋⠄⠀⠼⠁⠃⠂⠀⠼⠉⠙⠀⠊⠀⠼⠑⠋⠲"
46 - xfail: {backward: hex representation of № is not be back-translated}
47 - - "Датум 2025-11-12"
48 - "⠨⠙⠁⠞⠥⠍⠀⠼⠃⠚⠃⠑⠤⠼⠁⠁⠤⠼⠁⠃"
49
50 # Mixed Latin that should pass through
51 # Latin letters share dot patterns with Macedonian Cyrillic.
52 # Back-translation prefers Cyrillic by design in V1.0.
53 # Users switch to a Latin table when needed.
54 - - "E-mail: [email protected]"
55 - "⠨⠑⠤⠍⠁⠊⠇⠒⠀⠞⠑⠎⠞⠸⠍⠑⠭⠁⠍⠏⠇⠑⠲⠉⠕⠍"
56 - xfail: {backward: back-translation prefers Cyrillic}
57 - - "URL: http://example.org"
58 - "⠪⠥⠗⠇⠒⠀⠓⠞⠞⠏⠒⠸⠌⠸⠌⠑⠭⠁⠍⠏⠇⠑⠲⠕⠗⠛"
59 - xfail: {backward: back-translation prefers Cyrillic}
60
61 # Symbols that the table explicitly maps
62 - - "Знаци: @ # $ % & * ( ) [ ] { } / \\\\ | = < > _ - : ; ' ’ ‘ , . ? ! °"
63 - "⠨⠵⠝⠁⠉⠊⠒⠀⠸⠍⠀⠸⠼⠀⠸⠙⠀⠸⠏⠀⠸⠊⠀⠸⠳⠀⠷⠀⠾⠀⠠⠯⠀⠠⠽⠀⠠⠣⠀⠠⠜⠀⠸⠌⠀⠸⠡⠀⠸⠸⠀⠠⠶⠀⠠⠪⠀⠠⠕⠀⠸⠤⠀⠤⠀⠒⠀⠆⠀⠄⠀⠠⠴⠀⠠⠦⠀⠂⠀⠲⠀⠢⠀⠖⠀⠸⠎"
64
65 # Test cases for things with ambiguous back-translation
66 flags: {testmode: forward}
67 tests:
68 - # Forward translation OK. Back-translation ambiguous because both
69 # em dash and en dash share the same braille representation.
70 - "— –"
71 - "⠠⠤⠀⠠⠤"