noties / Markwon

Android markdown library (no WebView)
https://noties.io/Markwon/
Apache License 2.0
2.74k stars 309 forks source link

LaTeX doesn't support "\Omega" #176

Open Xiaoaihewei opened 4 years ago

Xiaoaihewei commented 4 years ago

The \Omega in LaTeX should be rendered as Ω, but the result of Markwon is empty for it.

image

->

(no Ω)

I am not sure what is wrong, Markwon is great, hope this can be fixed.

Thank a lot for your great work!

noties commented 4 years ago

Hello @Xiaoaihewei !

I do confirm this issue. I had created an issue in the jlatexmath-android repository which Markwon uses to render LaTeX

drakeet commented 4 years ago

I fixed it in my Pure Writer that is using this great Markwon and LaTeX, will send the PR later.

The root cause is the jlm_cmr10.ttf font file contains a wrong symbol about the Ω.

drakeet commented 4 years ago

I am sorry, I have been busy recently, still can’t provide the PR, but I can provide the Reproducible method to determine the problem:

  1. Download the ttf file to your local: https://github.com/noties/jlatexmath-android/blob/android/jlatexmath/src/main/assets/org/scilab/forge/jlatexmath/fonts/latin/jlm_cmr10.ttf

  2. Open Baidu Font Editor website: http://fontstore.baidu.com/static/editor/index-en.html

3. Click Open and select the jlm_cmr10.ttf:

image

4. Click on the menu item as below to get a Preview for the ttf:

image

5. You will see the Omega symbol is invisible, yes, it's a bad symbol:

image

So, the solution is to replace the symbol and it will get fixed.

noties commented 4 years ago

Thank you @drakeet for the information 🙌