Skip to content

Commit 09ce034

Browse files
authored
Merge a235460 into d1d0dbd
2 parents d1d0dbd + a235460 commit 09ce034

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

source/NVDAObjects/IAccessible/adobeAcrobat.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,22 @@ def _getNodeMathMl(self, node: IPDDomElement) -> str:
154154
answer += AcrobatNode.getMathMLAttributes(node, ["encoding"])
155155
case "ms":
156156
answer += AcrobatNode.getMathMLAttributes(node, ["open", "close"])
157+
case "mspace":
158+
answer += AcrobatNode.getMathMLAttributes(node, ["width"])
159+
case "msgroup":
160+
answer += AcrobatNode.getMathMLAttributes(node, ["position", "shift"])
161+
case "msrow":
162+
answer += AcrobatNode.getMathMLAttributes(node, ["position"])
163+
case "msline":
164+
answer += AcrobatNode.getMathMLAttributes(node, ["position", "length"])
165+
case "mscarries":
166+
answer += AcrobatNode.getMathMLAttributes(node, ["position", "crossout"])
167+
case "mscarry":
168+
answer += AcrobatNode.getMathMLAttributes(node, ["crossout"])
169+
case "mstack":
170+
answer += AcrobatNode.getMathMLAttributes(node, ["align", "stackalign"])
171+
case "mlongdiv":
172+
answer += AcrobatNode.getMathMLAttributes(node, ["longdivstyle"])
157173
case _:
158174
pass
159175
answer += ">"

user_docs/en/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
### Bug Fixes
1515

16+
* Fixed missing MathML attributes for `mspace` in PDF documents. Also passed along attributes for elementary math elements.
1617
* Fixed support for paragraph mouse text unit in Java applications. (#18231, @hwf1324)
1718

1819
### Changes for Developers

0 commit comments

Comments
 (0)