JerryI / wolfram-js-frontend

Dynamic Notebook Environment for Wolfram Language written in Javascript
https://jerryi.github.io/wljs-docs/
GNU General Public License v3.0
313 stars 15 forks source link

Unicode Glyph does not display #260

Closed Suzukazole closed 3 months ago

Suzukazole commented 3 months ago

Issue

The output cell displays the actual Unicode instead of the glyph. Is there a way to get the Glyph to appear correctly?

Steps to Reproduce

Evaluating this expression: Series[(*FB[*)((2I)(*,*)/(*,*)(\[Pi]^2 x))(*]FB*) BesselK[1, x^2], {x, 0, 2}]

Yields image

Where the Unicode glyphs for \[ImaginaryI]and \[Pi] are displayed as the actual code instead.

Version

JerryI commented 3 months ago

Correct. This is indeed a bug of some wrapper boxes. As a temporal solution, request Normal form

Screenshot 2024-08-01 at 15 19 41

JerryI commented 3 months ago
Screenshot 2024-08-03 at 13 13 22

Fixed with regular expressions in a new release of wljs-editor. It is not great, but this is a big pain on how WL handles encoding and switches back and forth between \[Pi] and a real Pi unicode symbol. We will find more general solution on that.

To force update (usually takes 3 days interval to check automatically) locate in the settings a button Check Updates and then restart an app (and also clear cache by reloading a window from the main menu).

Feel free to reopen this issue if your have still some troubles.