Speech-Rule-Engine/speech-rule-engine

order when exploring root with index

pkra opened this issue · 3 comments

pkra commented

Is the following expected?

E.g., \sqrt[2n]{x} using mathspeak rules creates "rootIndex 2 n startRoot x endRoot". When exploring, the order is "Radicand x" followed by "Index 2 n".

I would have expected the index before the radicand so I wanted to double check.

zorkow commented

This should be fixable by changing the skeleton structure.

zorkow commented

I found a discrepancy between the skeleton structure and the explorer for matrix structures. The skeleton does not appear to take the fences into account. @pkra do you have a quick way to examine that in your walker?

pkra commented

I'm not sure what you need but happy to build something.

If you just need to generate the aria tree structure, the sre-to-tree tests show how the approach I usually use to generate things.

If you're looking for something to build a web demo with the client side demo, I could create a quick codepen example where you could paste the output.