|
42 | 42 | match: "." |
43 | 43 | replace: |
44 | 44 | - bookmark: "@id" |
45 | | - - x: "translate(., $BlockSeparators, '')" # remove digit block separators |
| 45 | + - test: |
| 46 | + - if: "@data-roman-numeral" |
| 47 | + then: [SPELL: "text()", pause: "short"] |
| 48 | + else: [x: "translate(., $BlockSeparators, '')"] # remove digit block separators |
46 | 49 |
|
47 | 50 | - name: default |
48 | 51 | tag: [mo, mtext] |
|
59 | 62 | - test: |
60 | 63 | - if: "string-length(.) = 1 and text() != '_'" # need unicode.tdl to kick in for single letter tokens |
61 | 64 | then: [x: "text()"] |
62 | | - - else_if: "@data-chem-element" # NavMode=Character needs this |
| 65 | + - else_if: "@data-chem-element or @data-roman-numeral" # NavMode=Character needs this |
63 | 66 | then: [SPELL: "text()", pause: "short"] |
64 | 67 | else: [x: "translate(., '-_\u00A0', ' ')"] # from intent literals or from extra spaces added (which get deleted) |
65 | 68 |
|
|
189 | 192 | - x: "*[2]" |
190 | 193 |
|
191 | 194 | # Norwegian: Changed this to be more similar to the English rule. Can't find a way to trigger the last "else" statement. |
192 | | -- name: literal |
| 195 | +- name: literal # audit-ignore |
193 | 196 | tag: [msup, msubsup] |
194 | 197 | match: "." |
195 | 198 | replace: |
|
652 | 655 | then: [pause: short] |
653 | 656 | else: [pause: auto] |
654 | 657 |
|
| 658 | +- name: nofix-intent |
| 659 | + # uncaught intent -- the args have been inserted in the order of speech |
| 660 | + tag: "*" |
| 661 | + match: "contains(@data-intent-property, ':nofix:') " |
| 662 | + replace: |
| 663 | + - x: "SpeakIntentName(name(.), $Verbosity, 'nofix')" |
| 664 | + |
655 | 665 | - name: prefix-intent |
656 | 666 | # uncaught intent -- the args have been inserted in the order of speech |
657 | 667 | tag: "*" |
|
704 | 714 | then: [pause: short] |
705 | 715 | else: [pause: auto] |
706 | 716 |
|
707 | | -- name: function-intent |
| 717 | +- name: function-intent # audit-ignore |
708 | 718 | # uncaught intent -- speak as foo of arg1 comma arg2 .... The MathML spec requires arguments to functions |
709 | 719 | tag: "*" |
710 | 720 | match: "count(*)>0" |
711 | 721 | replace: |
712 | 722 | - x: "SpeakIntentName(name(.), $Verbosity, 'function')" |
713 | 723 | - test: |
714 | | - if: "not(contains(@data-intent-property, ':literal:')) and |
| 724 | + if: "$Verbosity != 'Terse' and not(contains(@data-intent-property, ':literal:')) and |
715 | 725 | not(count(*)=2 and |
716 | 726 | (IsInDefinition(*[1], 'Speech', 'TrigFunctionNames') or |
717 | 727 | IsInDefinition(name(.), 'Speech', 'TerseFunctionNames')) and |
|
0 commit comments