1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
# attribute name can be a digit between 0 and 7, in which case it can
# be used in a match expression (but not in a multipass expression)
display: |
display a 1
display b 12
display A 17
table: |
sign a 1
sign b 12
attribute 5 b
match %5 a - 17
flags: {testmode: forward}
tests:
- - aabaa
- aabAa
# attribute name can be a word, in which case it can be used in a
# multipass expression (but not in a match expression)
# there are a number of reserved names: numericnocontchars,
# midendnumericmodechars, numericmodechars, capsmodechars,
# emphmodechars, seqdelimiter, seqbeforechars, seqafterchars,
# noletsign, noletsignbefore, noletsignafter
table: |
sign a 1
sign b 12
attribute foo b
noback context _%foo["a"] @17
flags: {testmode: forward}
tests:
- - aabaa
- aabAa
# attribute name can be a predefined attribute, i.e. space, letter,
# digit, punctuation, uppercase, lowercase, math, sign or litdigit
# (and it will set that attribute, not a custom one)
table: |
sign a 1
sign b 12
attribute letter b
noback context _$l["a"] @17
table: |
sign a 1
sign b 12
attribute letter b
noback context _%letter["a"] @17
table: |
sign a 1
sign b 12
attribute letter b
match %a a - 17
flags: {testmode: forward}
tests:
- - aabaa
- aabAa
# if the character is associated with a single-cell dot pattern, the
# attribute is also set on the dot pattern (only relevant for
# multipass rules)
table: |
sign a 1
sign b 12
attribute foo b
noback pass2 _%foo[@1] @17
flags: {testmode: forward}
tests:
- - aabaa
- aabAa
# class is deprecated but can still be used as an alias for attribute,
# but the name must be a word, and class and attribute may not be both
# present in the same table
table: |
sign a 1
sign b 12
class foo b
noback context _%foo["a"] @17
flags: {testmode: forward}
tests:
- - aabaa
- aabAa
|