|
48 | 48 | - if: "$MatchCounter = 0 and $SayCommand = 'true'" |
49 | 49 | then_test: |
50 | 50 | - if: "self::m:math and starts-with($NavCommand, 'ZoomOut')" |
51 | | - then: [t: "zoomed out all the way", pause: "medium"] |
| 51 | + then: [t: "zoomed out all of the way", pause: "medium"] |
52 | 52 | - else_if: "IsNode(., 'leaf') and starts-with($NavCommand, 'ZoomIn')" |
53 | | - then: [t: "zoomed in all the way", pause: "medium"] |
| 53 | + then: |
| 54 | + - test: |
| 55 | + - if: "string-length(.) = 1" |
| 56 | + then: [t: "zoomed in all of the way"] # phrase('zoomed in all of the way') |
| 57 | + - else_if: "$NavNodeOffset = 0" |
| 58 | + then: [t: "zoomed in to first character"] # phrase('zoomed in to first character') |
| 59 | + else: [t: "zoomed to character"] # phrase('zoomed in to character') |
| 60 | + - pause: "medium" |
54 | 61 | else: |
55 | 62 | - test: |
56 | 63 | - if: "starts-with($NavCommand, 'Zoom')" |
|
70 | 77 | then: [t: "in"] # phrase(zoom 'in' to see more details) |
71 | 78 | - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'InAll'" |
72 | 79 | # HACK: '\uF8FE' is used internally for the concatenation char by 'ct' -- this gets "ed" concatenated to "zoom" |
73 | | - then: [t: "\uF8FEed in all the way"] # phrase(zoom 'out all the way' to see more details) |
| 80 | + then: [t: "\uF8FEed in all of the way"] # phrase(zoom 'out all of the way' to see more details) |
74 | 81 | - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Out'" |
75 | 82 | then: [t: "out"] # phrase(zoom 'out' to see more details) |
76 | 83 | - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'OutAll'" |
77 | 84 | # HACK: '\uF8FE' is used internally for the concatenation char by 'ct' -- this gets "ed" concatenated to "zoom" |
78 | | - then: [t: "\uF8FEed out all the way"] # phrase(zoom 'out all the way' to see more details) |
| 85 | + then: [t: "\uF8FEed out all of the way"] # phrase(zoom 'out all of the way' to see more details) |
79 | 86 | - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Next'" |
80 | 87 | then: [t: "right"] # phrase(move to the 'right') |
81 | 88 | - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Previous'" |
|
180 | 187 | - else_if: "$PreviousNavCommand = 'ZoomOut'" |
181 | 188 | then: [t: "undo zoom out"] # phrase('undo zoom out') |
182 | 189 | - else_if: "$PreviousNavCommand = 'ZoomInAll'" |
183 | | - then: [t: "undo zooming in all the way"] # phrase('undo zooming in all the way') |
| 190 | + then: [t: "undo zooming in all of the way"] # phrase('undo zooming in all of the way') |
184 | 191 | - else_if: "$PreviousNavCommand = 'ZoomOutAll'" |
185 | | - then: [t: "undo zooming out all the way"] # phrase('undo zooming out all the way') |
| 192 | + then: [t: "undo zooming out all of the way"] # phrase('undo zooming out all of the way') |
186 | 193 | - else_if: "$PreviousNavCommand = 'MovePrevious' or $PreviousNavCommand = 'MovePreviousZoom'" |
187 | 194 | then: [t: "undo move left"] # phrase('undo move left') |
188 | 195 | - else_if: "$PreviousNavCommand = 'MoveNext' or $PreviousNavCommand = 'MoveNextZoom'" |
|
209 | 216 | tag: "*" |
210 | 217 | match: "($NavCommand = 'ZoomIn' or $NavCommand = 'ZoomInAll') and IsNode(., 'leaf')" |
211 | 218 | replace: |
212 | | - - test: |
213 | | - if: "$MatchCounter = 0 and $NavVerbosity != 'Terse'" |
214 | | - then: |
215 | | - - test: |
216 | | - - if: "string-length(.) = 1" |
217 | | - then: |
218 | | - - t: "zoomed in all of the way" |
219 | | - - else_if: "$NavNodeOffset = 0" |
220 | | - then: |
221 | | - - t: "zoomed in to first character" # phrase('zoomed in to first character') |
222 | | - else: |
223 | | - - t: "zoomed to character" # phrase('zoomed in to character') |
224 | | - - pause: "long" |
| 219 | + - with: |
| 220 | + variables: [SayCommand: "string($NavVerbosity != 'Terse')"] |
| 221 | + replace: [x: "."] |
225 | 222 | - test: |
226 | 223 | if: "$ReadZoomLevel !=-1" |
227 | 224 | then: |
228 | 225 | - set_variables: [ReadZoomLevel: "0"] |
229 | 226 | - test: |
230 | | - if: "string-length(.) > 1 and $MatchCounter = 0 and $NavNodeOffset = 0" |
| 227 | + if: "string-length(.) > 1 and $MatchCounter = 1 and $NavNodeOffset = 0" |
231 | 228 | then: [set_variables: [NavNodeOffset: "1"]] |
232 | 229 | - set_variables: [NavNode: "@id"] |
233 | 230 |
|
|
372 | 369 | match: "$NavCommand = 'ZoomOut' or $NavCommand = 'ZoomOutAll'" |
373 | 370 | replace: |
374 | 371 | - with: |
375 | | - variables: [SayCommand: "string($NavVerbosity = 'Verbose')"] |
| 372 | + variables: [SayCommand: "string($NavVerbosity != 'Terse')"] |
376 | 373 | replace: [x: "."] |
377 | 374 | - set_variables: [NavNode: "*[1]/@id"] # no-op for $NavCommand = 'ZoomOut' |
378 | 375 |
|
|
389 | 386 | tag: "*" |
390 | 387 | match: |
391 | 388 | - "($NavCommand = 'ZoomOut' or $NavCommand = 'ZoomOutAll') and" |
392 | | - - "parent::m:math " |
| 389 | + - "parent::m:math" |
393 | 390 | replace: |
394 | 391 | - x: ".." # let math rule deal with it |
395 | 392 |
|
|
0 commit comments