Navigation problems with binomial notation represented using <mmultiscripts>
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust, yaml
- Lĩnh vực
- accessibility
Hướng nghiên cứu
Reproduce the MathML example in NVDA with MathCAT 0.7.6-rc.3, then read the relevant into-or-out-of-mmultiscripts rules in navigate.yaml and the rules that skip none and mprescripts. Done means Enhanced/Simple navigation announces semantic parts rather than literal base/subscript roles, while Character mode avoids the redundant subscript transition.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Navigation of a binomial coefficient represented using <mmultiscripts> produces unexpected structural labels in all three navigation modes.
MathML
<math id="0" display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mmultiscripts id="1">
<mi id="2">C</mi>
<mi id="3">m</mi>
<none id="4"/>
<mprescripts id="5"/>
<mi id="6">n</mi>
<none id="7"/>
</mmultiscripts>
</math>
This represents a binomial coefficient with presubscript n and postsubscript m.
Settings
- Language: English
- Speech style: SimpleSpeak
- Speech verbosity: Medium
- Overview: False
- Navigation verbosity: Verbose
- Auto zoom out: True
Tested through NVDA with MathCAT 0.7.6-rc.3 installed as an addon.
Observed behaviour
Enhanced and Simple (identical)
-
ZoomIn- land on
id="6" - hear:
"zoom in; in base; n"
- land on
-
MoveNext- land on
id="3" - hear:
"move right; in subscript; m"
- land on
The landing order n → m appears correct for the inferred binomial semantics, but the structural labels do not.
MathCAT's binomial-mmultiscripts inference converts this expression into a semantic binomial whose children are n and m. Therefore n is no longer the literal base of the original <mmultiscripts>, and m is no longer being navigated as its literal postsubscript.
I would expect semantic navigation to describe these as arguments/parts of the binomial rather than as "base" and "subscript".
For example, with the current generic navigation behaviour for semantic structures, something approximately like:
-
ZoomIn- land on
id="6" - hear:
"zoom in; in part 1; n"
- land on
-
MoveNext- land on
id="3" - hear:
"move right; in part 2; m"
- land on
would seem more consistent.
Character
-
ZoomIn- land on
id="2" - hear:
"zoom in; in base; c"
- land on
-
MoveNext- land on
id="3" - hear:
"move right; in subscript; m"
- land on
-
MoveNext- land on
id="6" - hear:
"move right; out of subscript; in subscript; in pre-subscript; n"
- land on
Character mode correctly follows the literal MathML structure and lands on the expected nodes.
However, the third announcement appears to contain a redundant structural transition:
"out of subscript; in subscript; in pre-subscript; n"
When moving from the postsubscript m across <none> and <mprescripts> to the presubscript n, I would expect something more like:
"move right; out of subscript; in pre-subscript; n"
or another equivalent transition that does not temporarily announce "in subscript" again.
Possible causes
There appear to be two potentially relevant areas in navigate.yaml.
For Enhanced/Simple, the inferred binomial still originates from <mmultiscripts>. The into-or-out-of-mmultiscripts navigation rule applies when:
@data-from-mathml='mmultiscripts'
and assigns roles according to literal child positions (base, subscript, superscript, etc.).
This may cause the two children of the inferred semantic binomial(n, m) to be incorrectly labelled as though they were still the first two children of the original <mmultiscripts>.
For Character mode, the rules that skip <none> and <mprescripts> perform additional Move2D/MoveNextZoom operations while moving to the following real script. This may be responsible for the extra "in subscript" announcement while crossing from the postscript to the prescript.
Disclosure: I asked ChatGPT for help to dig into the cause of this, so these guesses might well be wrong.
- Ngôn ngữ chính
- Rust
- Star
- 130
- Fork
- 96
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 84
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của daisy/MathCAT
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
daisy/MathCAT#946 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Review French navigation fileĐang mởdiscussion translation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
daisy/MathCAT#675 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của daisy/MathCAT
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
swc-project/swc-ai-issues#164 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
pop-os/cosmic-player#367 ·
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
servo/rust-smallvec#873 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
messense/dav-server-rs#82 ·
Maintainer thường phản hồi trong vòng 1 ngày