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

typo "normnal" in MathML attribute #2893

Open
hbghlyj opened this issue Jul 3, 2022 · 1 comment
Open

typo "normnal" in MathML attribute #2893

hbghlyj opened this issue Jul 3, 2022 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Code Example Contains an illustrative code example, solution, or work-around Merged Merged into develop branch Test Needed v3
Milestone

Comments

@hbghlyj
Copy link

hbghlyj commented Jul 3, 2022

Line 133 in MathJax-src/ts/core/MmlTree/OperatorDictionary.ts:

  [0x20000, 0x2FA1F, TEXCLASS.ORD, 'mi', 'normnal'], // CJK Unified Ideographs Ext. B (through) CJK Sompatibility Ideographs Supp.

'normnal' should be 'normal'.

Test code

console.log(String.fromCodePoint(0x20000,0x20001,0x20002));

Output: "𠀀𠀁𠀂"

Using these characters in MathJax causes error:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mi mathvariant="normnal">&#x20000;</mi>
  <mi mathvariant="normnal">&#x20001;</mi>
  <mi mathvariant="normnal">&#x20002;</mi>
</math>

png

After manually correcting the typo, these characters can be displayed.
image

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team v3 labels Jul 5, 2022
@dpvc
Copy link
Member

dpvc commented Jul 5, 2022

Thanks for the report. I will make a pull request to resolve the issue in the next release. For now, you can use

MathJax = {
  startup: {
    ready() {
      const {RANGES} = MathJax._.core.MmlTree.OperatorDictionary;
      RANGES[RANGES.length - 1][4] = 'normal';
      MathJax.startup.defaultReady();
    }
  }
};

as part of your MathJax configuration in order to work around the issue.

@dpvc dpvc added the Code Example Contains an illustrative code example, solution, or work-around label Jul 5, 2022
dpvc added a commit to mathjax/MathJax-src that referenced this issue Jul 5, 2022
@dpvc dpvc added this to the 3.3.0 milestone Aug 5, 2022
dpvc added a commit to mathjax/MathJax-src that referenced this issue Aug 12, 2022
Correct typo in RANGES array affecting CJK characters in U+20000 to U-2FA1F.  (mathjax/MathJax#2893)
@dpvc dpvc added Merged Merged into develop branch and removed Ready for Review labels Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Code Example Contains an illustrative code example, solution, or work-around Merged Merged into develop branch Test Needed v3
Projects
None yet
Development

No branches or pull requests

2 participants