|
56 | 56 | else: |
57 | 57 | - test: |
58 | 58 | - if: "starts-with($NavCommand, 'Zoom')" |
59 | | - then: [set_variables: [Prefix: "'zoom'"]] # phrase('zoom' in to see more details) |
| 59 | + then: [set_variables: [Prefix: "'zoom'", CommandOffset: "5"]] # phrase('zoom' in to see more details) |
60 | 60 | - else_if: "starts-with($NavCommand, 'Move')" |
61 | | - then: [set_variables: [Prefix: "'gå'"]] # phrase('move' to next entry in table) |
| 61 | + then: [set_variables: [Prefix: "'gå'", CommandOffset: "5"]] # phrase('move' to next entry in table) |
62 | 62 | - else_if: "starts-with($NavCommand, 'Read')" |
63 | | - then: [set_variables: [Prefix: "'les'"]] # phrase('read' to next entry in table) |
| 63 | + then: [set_variables: [Prefix: "'les'", CommandOffset: "5"]] # phrase('read' to next entry in table) |
64 | 64 | - else_if: "starts-with($NavCommand, 'Describe')" |
65 | | - then: [set_variables: [Prefix: "'beskriv'"]] # phrase('describe' to next entry in table) |
| 65 | + then: [set_variables: [Prefix: "'beskriv'", CommandOffset: "9"]] # phrase('describe' to next entry in table) |
66 | 66 | - test: |
67 | 67 | if: "$Prefix != ''" |
68 | 68 | then: |
69 | 69 | - x: "$Prefix" |
70 | 70 | - test: |
71 | | - - if: "substring($NavCommand, string-length($Prefix)+1) = 'In'" |
| 71 | + - if: "substring($NavCommand, $CommandOffset) = 'In'" |
72 | 72 | then: [T: "inn"] # phrase(zoom 'in' to see more details) |
73 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'InAll'" |
| 73 | + - else_if: "substring($NavCommand, $CommandOffset) = 'InAll'" |
74 | 74 | # HACK: '\uF8FE' is used internally for the concatenation char by 'ct' -- this gets "ed" concatenated to "zoom" |
75 | 75 | then: [T: "\uF8FEet helt inn"] # phrase(zoom 'out all of the way' to see more details) |
76 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Out'" |
| 76 | + - else_if: "substring($NavCommand, $CommandOffset) = 'Out'" |
77 | 77 | then: [T: "ut"] # phrase(zoom 'out' to see more details) |
78 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'OutAll'" |
| 78 | + - else_if: "substring($NavCommand, $CommandOffset) = 'OutAll'" |
79 | 79 | # HACK: '\uF8FE' is used internally for the concatenation char by 'ct' -- this gets "ed" concatenated to "zoom" |
80 | 80 | then: [T: "\uF8FEet helt ut"] # phrase(zoom 'out all of the way' to see more details) |
81 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Next'" |
| 81 | + - else_if: "substring($NavCommand, $CommandOffset) = 'Next'" |
82 | 82 | then: [T: "høyre"] # phrase(move to the 'right') |
83 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Previous'" |
| 83 | + - else_if: "substring($NavCommand, $CommandOffset) = 'Previous'" |
84 | 84 | then: [T: "venstre"] # phrase(move to the 'left') |
85 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'Current'" |
| 85 | + - else_if: "substring($NavCommand, $CommandOffset) = 'Current'" |
86 | 86 | then: [T: "nåværende"] # phrase(who is the 'current' president) |
87 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'LineStart'" |
88 | | - then: [T: "til starten av linja"] # phrase(move 'to start of line') |
89 | | - - else_if: "substring($NavCommand, string-length($Prefix)+1) = 'LineEnd'" |
90 | | - then: [T: "til slutten av linja"] # phrase(move 'to end of line') |
| 87 | + - else_if: "substring($NavCommand, $CommandOffset) = 'LineStart'" |
| 88 | + then: [T: "til starten av raden"] # phrase(move 'to start of line') |
| 89 | + - else_if: "substring($NavCommand, $CommandOffset) = 'LineEnd'" |
| 90 | + then: [T: "til slutten av raden"] # phrase(move 'to end of line') |
91 | 91 | - pause: "medium" |
92 | 92 | - set_variables: [MatchCounter: "$MatchCounter + 1"] |
93 | 93 |
|
|
98 | 98 | (name(.)='mrow' or name(.) = 'mtr' or name(.) = 'mlabeledtr' or @data-from-mathml = 'mtable')" |
99 | 99 | replace: [] |
100 | 100 |
|
| 101 | +- name: into-or-out-of-minus-silent-on-zoom-out |
| 102 | + tag: "*" |
| 103 | + match: "$Move2D != '' and name(.)='minus' and count(*)=1 and ($NavCommand = 'ZoomOut' or $NavCommand = 'ZoomOutAll')" |
| 104 | + replace: [] |
| 105 | + |
101 | 106 | - name: into-or-out-of-mtr |
102 | 107 | tag: [mtr, mlabeledtr] |
103 | 108 | match: "$Move2D = 'i'" # Navigate into a 2D structure. |
|
521 | 526 | - if: "$NavCommand = 'MoveStart'" |
522 | 527 | then: [T: "gå til starten av uttrykket"] # phrase('move to start of math') |
523 | 528 | - else_if: "$NavCommand = 'MoveLineStart'" |
524 | | - then: [T: "gå til starten av linja"] # phrase('move to start of line') |
| 529 | + then: [T: "gå til starten av raden"] # phrase('move to start of line') |
525 | 530 | - else_if: "$NavCommand = 'MoveEnd'" |
526 | 531 | then: [T: "gå til slutten av uttrykket"] # phrase('move to end of math') |
527 | | - else: [T: "gå til slutten av linja"] # "$NavCommand = 'MoveLineEnd'" # phrase('move to end of line') |
| 532 | + else: [T: "gå til slutten av raden"] # "$NavCommand = 'MoveLineEnd'" # phrase('move to end of line') |
528 | 533 | - pause: "medium" |
529 | 534 | - test: |
530 | 535 | if: "$NavCommand = 'MoveStart' or $NavCommand = 'MoveLineStart'" |
|
564 | 569 | then: |
565 | 570 | - test: |
566 | 571 | if: "$NavCommand = 'MoveLineStart'" |
567 | | - then: [T: "gå til starten av linja"] # phrase('move to start of line') |
568 | | - else: [T: "gå til slutten av linja"] # "$NavCommand = 'MoveLineEnd'" # phrase('move to end of line') |
| 572 | + then: [T: "gå til starten av raden"] # phrase('move to start of line') |
| 573 | + else: [T: "gå til slutten av raden"] # "$NavCommand = 'MoveLineEnd'" # phrase('move to end of line') |
569 | 574 | - pause: "medium" |
570 | 575 | - test: |
571 | 576 | if: "self::m:mrow or @data-from-mathml = 'mrow'" |
|
1447 | 1452 | - else_if: "starts-with($NavCommand, 'MoveTo')" |
1448 | 1453 | then: [T: "gå til "] # phrase('move to' the next entry in table) |
1449 | 1454 | else: [T: "angi"] # phrase('set' the value of the next entry in table) |
1450 | | - - T: "plassholder" # phrase('placeholder' for the value) |
| 1455 | + - T: "markør" # phrase('placeholder' for the value) |
1451 | 1456 | - x: "$PlaceMarkerIndex" |
1452 | 1457 | - pause: long |
1453 | 1458 | - set_variables: [NavNode: "$PlaceMarker"] |
|
1459 | 1464 | - test: |
1460 | 1465 | if: "$NavVerbosity != 'Terse'" |
1461 | 1466 | then: |
1462 | | - - T: "angi plassholder" # phrase('set placeholder' to the value) |
| 1467 | + - T: "angi markør" # phrase('set placeholder' to the value) |
1463 | 1468 | - x: "$PlaceMarkerIndex" |
1464 | 1469 | - pause: long |
1465 | 1470 | - set_variables: [NavNode: "@id"] |
|
0 commit comments