Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in Nav Mode #316

Open
danghoaiphuc opened this issue Nov 26, 2024 · 4 comments
Open

Crash in Nav Mode #316

danghoaiphuc opened this issue Nov 26, 2024 · 4 comments

Comments

@danghoaiphuc
Copy link
Contributor

We got MathCAT crashed in navigation mode when executing the movestart and then movenext command in the expression below.
MathML code converted by the math editor:
<math><mrow><msup><mo stretchy="false">&#xA0;</mo><mn>2</mn></msup><mi>A</mi></mrow></math>

Its LaTeX code:
{}^2A

@NSoiffer
Copy link
Owner

Can you tell me the exact commands you used to cause MathCAT go crash?

@danghoaiphuc
Copy link
Contributor Author

Yes, here's the code command that mathCAT get crashed:

SetPreference('NavMode', 'Character')
mathml='{}^2A'
SetMathML(mathml)
DoNavigateCommand('MoveStart')
DoNavigateCommand('MoveNext')

It crashes right after "MoveNext" command.
Happy Thanksgiving!

@NSoiffer
Copy link
Owner

Thanks. I can replicate it now.

@NSoiffer
Copy link
Owner

NSoiffer commented Nov 30, 2024

With the fix I have, "MoveStart" will say "cap A" and "MoveNext" will say "in pre-superscript; 2".

@danghoaiphuc: This makes some sense in that the pre-superscript modifies the base, but that's not the order in which they are displayed. In #315, you seem to want the display order to take precedence. Would you prefer the prescripts be navigated to before the base?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants