Debian Codegraph @

tests/braille-specs/en-us-emphasis_harness.yaml

raw symbols SCIP
1 # Copyright © 2020 by Beneficent Technology, Inc. www.benetech.org
2 #
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved. This file is offered as-is,
6 # without any warranty.
7 #
8 # ----------------------------------------------------------------------------------------------
9
10 table: en-us-g1.ctb
11 table: en-in-g1.ctb
12 tests:
13 # see http://www.brailleauthority.org/formats/2011manual-web/formats05.html#5.1 for italics and bold guidance
14 - ["This word is italicized.", ",this .word is italicized4", {typeform: {italic: ' ++++ '}}]
15 - ["These three consecutive words are italicized.", ",these .three .consecutive .words are italicized4", {typeform: {italic: ' +++++++++++++++++++++++ '}}]
16 - ["This phrase of more than three words is italicized.", ",this ..phrase of more than three .words is italicized4", {typeform: {italic: ' +++++++++++++++++++++++++++++++ '}}]
17 - ["Parts of these words are italicized.", ".,par,'ts of t.hes,'e wo.rds are itali.cized,'4", {typeform: {italic: '+++ +++ +++ +++++ '}}]
18 - ["This word is boldfaced.", ",this _.word is boldfaced4", {typeform: {bold: ' ++++ '}}]
19 - ["These three consecutive words are boldfaced.", ",these _.three _.consecutive _.words are boldfaced4", {typeform: {bold: ' +++++++++++++++++++++++ '}}]
20 - ["This phrase of more than three words is boldfaced.", ",this _..phrase of more than three _.words is boldfaced4", {typeform: {bold: ' +++++++++++++++++++++++++++++++ '}}]
21 - ["Parts of these words are boldfaced.", "_.,par,'ts of t_.hes,'e wo_.rds are bold_.faced,'4", {typeform: {bold: '+++ +++ +++ +++++ '}}]
22 # see http://www.brailleauthority.org/formats/2011manual-web/formats05.html#5.5 for underline guidance
23 - ["This word is underlined.", ",this _- word ,' is underlined4", {typeform: {underline: ' ++++ '}}]
24 - ["These three consecutive words are underlined.", ",these _- three consecutive words ,' are underlined4", {typeform: {underline: ' +++++++++++++++++++++++ '}}]
25 - ["This phrase of more than three words is underlined.", ",this _- phrase of more than three words ,' is underlined4", {typeform: {underline: ' +++++++++++++++++++++++++++++++ '}}]
26 - ["Parts of these words are underlined.", " _- ,par ,' ts of t _- hes ,' e wo _- rds ,' are under _- lined ,' 4", {typeform: {underline: '+++ +++ +++ +++++ '}}]
27 # single character tests
28 - ["abcde", "ab.c,'de", {typeform: {italic: ' + '}}]
29 - ["abcde", "ab_.c,'de", {typeform: {bold: ' + '}}]
30 - ["abcde", "ab _- c ,' de", {typeform: {underline: ' + '}}]
31 # Emphasized initial characters, based on http://www.brailleauthority.org/formats/2011manual-web/formats05.html#5.8 example 5-17
32 - ["She sells seashells by the seashore.", ".,s,'he .s,'ells .s,'eashells by the .s,'eashore4", {typeform: {italic: '+ + + + '}}]
33 - ["She sells seashells by the seashore.", "_.,s,'he _.s,'ells _.s,'eashells by the _.s,'eashore4", {typeform: {bold: '+ + + + '}}]
34 - ["She sells seashells by the seashore.", " _- ,s ,' he _- s ,' ells _- s ,' eashells by the _- s ,' eashore4", {typeform: {underline: '+ + + + '}}]
35 # mixed emphasis tests
36 - # http://www.brailleauthority.org/formats/2011manual-web/formats05.html#5.4, example 5-14
37 - "Did Judy consent to the plan?"
38 - ".,did .,judy _.consent .to .the .plan8"
39 - typeform:
40 italic: '+++++++++ +++++++++++++'
41 bold: ' +++++++ '
42 - # http://www.brailleauthority.org/formats/2011manual-web/formats05.html#5.4, example 5-15
43 - "The principal approved the plan for the field trip."
44 - "..,the principal _.approved the plan for the field .trip4"
45 - typeform:
46 italic: '+++++++++++++++++++++++++++++++++++++++++++++++++++'
47 bold: ' ++++++++ '
48 # Emphasis termination tests
49 - [abcdefg, "ab.cd,'efg", {typeform: {italic: ' ++ '}}]
50 - [abcdef, "ab.cd,'ef", {typeform: {italic: ' ++ '}}]
51 - [abcde, "ab.cd,'e", {typeform: {italic: ' ++ '}}]
52 - [abcd, "ab.cd", {typeform: {italic: ' ++'}}]
53 - [abc, "ab.c", {typeform: {italic: ' +'}}]