znjameswu / flutter_math

Math rendering and editing in pure Flutter.
https://znjameswu.github.io/flutter_math_demo/
Apache License 2.0
123 stars 52 forks source link

Special characters are unsupported #7

Closed creativecreatorormaybenot closed 4 years ago

creativecreatorormaybenot commented 4 years ago

If you try to use special characters like รค or ร– in a FlutterMath widget, it will not work.

It seems like the KaTeX fonts need to support that as it works in KaTeX. What do you think @znjameswu ๐Ÿ˜ƒ

znjameswu commented 4 years ago

Yes, I'm planning to support that. I'll work on it in next release.

znjameswu commented 4 years ago

Support for unicode accents is added in v0.1.8. Welcome to check out the online demo!

znjameswu commented 4 years ago

But one thing needs to mention is that i,j-based unicode accent looks very unnatural (e.g. iฬ€). This is inherited from KaTeX (see flutter_tex's output) and MathJaX does this job even worse. If you have any idea to fix this, please let me know.

creativecreatorormaybenot commented 4 years ago

@znjameswu Very awesome!

No, I have no idea. However, after looking into it, I think that it is not too bad. I mean the characters do look unnatural as you said, but they still fit into the rendered output generally. Before the change, they would not even have the correct metrics, so it is a huge improvement ๐Ÿš€