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

[skeleton] prescripts problem #726

Open
pkra opened this issue Aug 7, 2023 · 1 comment
Open

[skeleton] prescripts problem #726

pkra opened this issue Aug 7, 2023 · 1 comment

Comments

@pkra
Copy link
Contributor

pkra commented Aug 7, 2023

I couldn't test with MathJax v4 / SRE 4.1 due to mathjax/MathJax#3080 but I ran into the following problem with SRE v4.0.5.

For example, \prescript {h_{l-1}}{}{P}

gives me

 <math
        xmlns="http://www.w3.org/1998/Math/MathML"
        data-semantic-structure="(10 0 1 (7 2 (6 3 4 5)) 8 9)"
        ><mmultiscripts
          data-semantic-type="tensor"
          data-semantic-role="latinletter"
          data-semantic-id="10"
          data-semantic-children="0,1,7,8,9"
          data-semantic-collapsed="(10 0 1 7 8 9)"
          data-semantic-owns="0 1 7 8 9"
          data-semantic-speech="Superscript h Super Subscript l minus 1 Baseline upper P"
          ><mi
            data-semantic-type="identifier"
            data-semantic-role="latinletter"
            data-semantic-font="italic"
            data-semantic-annotation="clearspeak:simple"
            data-semantic-id="0"
            data-semantic-parent="10"
            data-semantic-speech="upper P"
            data-semantic-prefix="Base"
            >P</mi
          ><none
            data-semantic-type="empty"
            data-semantic-role="rightsub"
            data-semantic-id="8"
            data-semantic-parent="10"
            data-semantic-added="true"
            data-semantic-speech=""
            data-semantic-prefix="Right Subscript"
          /><none
            data-semantic-type="empty"
            data-semantic-role="rightsuper"
            data-semantic-id="9"
            data-semantic-parent="10"
            data-semantic-added="true"
            data-semantic-speech=""
            data-semantic-prefix="Right Superscript"
          /><mprescripts /><none
            data-semantic-type="empty"
            data-semantic-role="leftsub"
            data-semantic-id="1"
            data-semantic-parent="10"
            data-semantic-speech=""
            data-semantic-prefix="Left Subscript"
          /><none
            data-semantic-type="subscript"
            data-semantic-role="leftsuper"
            data-semantic-id="7"
            data-semantic-children="2,6"
            data-semantic-parent="10"
            data-semantic-added="true"
            data-semantic-speech="h Super Subscript l minus 1"
            data-semantic-prefix="Left Superscript"
          /><msub
            data-semantic-type="subscript"
            data-semantic-role="leftsuper"
            data-semantic-id="7"
            data-semantic-children="2,6"
            data-semantic-parent="10"
            data-semantic-owns="2 6"
            ><mi
              data-semantic-type="identifier"
              data-semantic-role="latinletter"
              data-semantic-font="italic"
              data-semantic-annotation="clearspeak:simple"
              data-semantic-id="2"
              data-semantic-parent="7"
              data-semantic-speech="h"
              data-semantic-prefix="Base"
              >h</mi
            ><mrow
              data-mjx-texclass="ORD"
              data-semantic-type="infixop"
              data-semantic-role="subtraction"
              data-semantic-id="6"
              data-semantic-children="3,5"
              data-semantic-content="4"
              data-semantic-parent="7"
              data-semantic-owns="3 4 5"
              data-semantic-speech="l minus 1"
              data-semantic-prefix="Subscript"
              ><mi
                data-semantic-type="identifier"
                data-semantic-role="latinletter"
                data-semantic-font="italic"
                data-semantic-annotation="clearspeak:simple"
                data-semantic-id="3"
                data-semantic-parent="6"
                data-semantic-speech="l"
                >l</mi
              ><mo
                data-semantic-type="operator"
                data-semantic-role="subtraction"
                data-semantic-id="4"
                data-semantic-parent="6"
                data-semantic-operator="infixop,−"
                data-semantic-speech="minus"
                >−</mo
              ><mn
                data-semantic-type="number"
                data-semantic-role="integer"
                data-semantic-font="normal"
                data-semantic-annotation="clearspeak:simple"
                data-semantic-id="5"
                data-semantic-parent="6"
                data-semantic-speech="1"
                >1</mn
              ></mrow
            ></msub
          ></mmultiscripts
        ></math
      >

Note how data-semantic-speech="h Super Subscript l minus 1" is on the none with leftsuper.

@pkra
Copy link
Contributor Author

pkra commented Aug 16, 2023

I've re-tested this with SRE 4.1.0-beta.7 - the problem still occurs for me.

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

1 participant