MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Problem in displaying Persian words in version 3

Open saraOrkide opened this issue 2 years ago • 2 comments

In version 3, the following piece of code is displayed as letters, if it is correct in version 2 <math display='inline'> <mn>6</mn> <mi> </mi> <mi>ت</mi> <mi>ا</mi> <mi> </mi> <mi>ی</mi> <mi>ک</mi> <mi>ی</mi> <mo>+</mo> <mn>5</mn> <mi> </mi> <mi>ت</mi> <mi>ا</mi> <mi> </mi> <mn>1000</mn> <mi> </mi> <mi>ت</mi> <mi>ا</mi> <mi>ی</mi> <mi>ی</mi> <mo>+</mo> <mn>3</mn> <mi> </mi> <mi>ت</mi> <mi>ا</mi> <mi> </mi> <mn>10000</mn> <mi> </mi> <mi>ت</mi> <mi>ا</mi> <mi>ی</mi> <mi>ی</mi> <mo>=</mo> </math> ‌output v2.7.5: Screenshot from 2024-01-03 14-20-08

output v3: Screenshot from 2024-01-03 14-35-39

saraOrkide avatar Jan 03 '24 11:01 saraOrkide

This is a duplicate of your previous issue #3142. When the individual characters are each in their own <mi> node, they do not combine. The fact that they did in v2 is actually an error in v2. As I mentioned in #3142, the proper way to enter words (groups of characters that should be considered as a unit) is to put them in an <mtext> node.

As for the numeric digits, it looks like you may have been using the third-party Arabic extension in your MathJax v2 configuration, as one of its features is to convert the digits 0 through 9 to their Persian forms. That extension hasn't been updated to v3 by its author, as far as I can see, and so it is not available in v3. I already gave you code to do that conversion in v3 in a previous answer.

dpvc avatar Jan 03 '24 13:01 dpvc

Ok, the numbers are correct, but the code you sent did not work on version 4 I mean letters For the letters, I thought it would be different from the previous one, because we do this conversion from word, that's why it's like this

saraOrkide avatar Jan 03 '24 13:01 saraOrkide