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

Equation Editor (Microsoft Equation 3.0) and Shape not display when previewing in browser #51

Open
thanhnambkhn opened this issue Nov 2, 2022 · 4 comments

Comments

@thanhnambkhn
Copy link

Thanks for your excellent work. I found your lib is very helpful for my project, but I got some problems as described below:

Describe the bug

  1. Equation created by Equation Editor (Microsoft Equation 3.0) in Word file (.docx) can not display when previewing in browser
  2. Shape can not display when previewing in browser

Screenshots
Original document: https://drive.google.com/file/d/1P-y1PWbN-w07HIUyhJw2LQBlyCP9LKz5/view?usp=sharing
Display on browser: https://drive.google.com/file/d/1buz5_v-xU_MuwOVWjmyMQElkiZvhrF5U/view?usp=sharing

Document
Please check original document here: https://docs.google.com/document/d/1WWjMulUVjr0S2RD1TOTxazMNtatEHKQW/edit?usp=sharing&ouid=102073849288913805416&rtpof=true&sd=true

Thanks

@VolodymyrBaydalka
Copy link
Owner

It uses .WMF file format to store rendered images. Since browsers doesn't support such format (except IE), those images are not displayed.

Since .WMF file format is obsolete, there is no good JS implementation of WMF pareser/renderer and I'm not intereseted in implementation of such parser since it too much work, best workarround is to avoid of using OLE objects by using tools that works with MML specification.

P.S. looks like Microsoft Equation 3.0 is deprecated as well

@thanhnambkhn
Copy link
Author

Thank you for your answer, @VolodymyrBaydalka

  • About WMF: I will try to convert WMF to SVG by other technique.
  • About Shape Drawing (as the last picture in my document above), do you have plan to implement?

@VolodymyrBaydalka
Copy link
Owner

I have plans to implement rendering of complex shapes, not just images. But since this is hobby project, I don't think it will be implemented in near future.

@thanhnambkhn
Copy link
Author

thanhnambkhn commented Nov 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants