blob: 800f6521c514b78715fd9fcad66bbff790a13f3c [file] [log] [blame]
# Test if the emphasis handling works as advertised (using all of
# letter, word and phrase emphasis)
table: |
include tables/unicode-without-blank.dis
include tables/spaces.uti
include tables/en-chardefs.cti
emphclass italic
emphletter italic 46-25
begemphword italic 456-46
endemphword italic 3-6
begemphphrase italic 456-46-46
endemphphrase italic before 456-46
lenemphphrase italic 3
tests:
- # no emphasis, just warming up
- abcdefg
- ⠁⠃⠉⠙⠑⠋⠛
- # single letter emphasis
- abcdefg
- ⠁⠃⠉⠨⠒⠙⠑⠋⠛
- typeform:
italic: ' + '
- # single letter emphasis
- abc defg
- ⠁⠃⠉ ⠨⠒⠙⠑⠋⠛
- typeform:
italic: ' + '
- # plain old word emphasis
- abcdefg
- ⠸⠨⠁⠃⠉⠙⠑⠋⠛
- typeform:
italic: '+++++++'
- # again word emphasis
- abc defg
- ⠸⠨⠁⠃⠉ ⠙⠑⠋⠛
- typeform:
italic: '+++ '
- # again word emphasis
- abc defg
- ⠸⠨⠁⠃⠉ ⠸⠨⠙⠑⠋⠛
- typeform:
italic: '++++++++'
- # emphasis within word
- abcdefg
- ⠁⠃⠸⠨⠉⠙⠄⠠⠑⠋⠛
- typeform:
italic: ' ++ '
- # phrase emphasis
- abc abc abc defg defg
- ⠸⠨⠨⠁⠃⠉ ⠁⠃⠉ ⠁⠃⠉ ⠸⠨⠙⠑⠋⠛ ⠙⠑⠋⠛
- typeform:
italic: '++++++++++++++++ '