Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2020, 12:56 PM   #1
groob
Enthusiast
groob began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
Convert all math formulas to images

Hello,
I have many technical ebooks (epub, mobi) containing many math formulas.
In calibre for mac I can mostly read these formula correctly but when I transfer this same file (same format, already converted) to my kindle paperwhite (1st gen) many formula are not correctly rendered.

I'm quite sure this is a limitation of my kindle version, so nothing to be done there, I guess.

I was wondering if does it exist a converting procedure or a plugin that could convert all the math formulas into images in order to be correctly visualized in the reader.

Thanks in advance
groob is offline   Reply With Quote
Old 11-19-2020, 01:06 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,573
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, I'm afrid not. if your math formulae are represented as svg then converting to mobi will auto-rasterize them, but if they use something else like mathml then no.
kovidgoyal is offline   Reply With Quote
Old 11-19-2020, 01:15 PM   #3
groob
Enthusiast
groob began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
Thanks,
in your opinion this incorrect rendering is due to a conversion problem/limitation or a limitation of my reader?
In the last case, are there other readers known to be more "math friendly"?
groob is offline   Reply With Quote
Old 11-19-2020, 01:21 PM   #4
groob
Enthusiast
groob began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
After verification, I can confirm (at least in one case) that the problem is coming from the use of mathml.
What is the technical limitation to first render this formula and then grab the generated visual output?
groob is offline   Reply With Quote
Old 11-19-2020, 08:40 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,573
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
rendering mathml is far from trivial. it's a very large spec with very few open source standalone implementations outside of browser engines, and even there it is being removed from browser engines. So you are left with JS based solutions like mathjax, which is what for instance the calibre viewer uses. IIRC calibre's PDF output has suport for using MathJax when converting to PDF, so you might be better off converting to PDF (sized for your device screen).
kovidgoyal is offline   Reply With Quote
Old 11-20-2020, 07:47 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,532
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You can use MathML Cloud to convert the MathML equations to SVG.

https://mathmlcloud.org
JSWolf is offline   Reply With Quote
Old 02-05-2023, 12:54 PM   #7
poppe
Member
poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'
 
Posts: 22
Karma: 39220
Join Date: Sep 2015
Device: Onyx Boox i86
A couple of years later and I'm in the same situation. wanting to read a epub with mathml formulas.

@kovidgoyal
Quote:
Originally Posted by kovidgoyal View Post
IIRC calibre's PDF output has suport for using MathJax when converting to PDF, so you might be better off converting to PDF (sized for your device screen).
I can read them in calibre without problem. When I try to convert the epub to pdf the pdf is without the mathjax rendering. Is it possible to get a pdf with the correct rendering, if so how do I do it?

Thanks for a great program by the way!
poppe is offline   Reply With Quote
Old 02-05-2023, 03:37 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,532
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by poppe View Post
A couple of years later and I'm in the same situation. wanting to read a epub with mathml formulas.

@kovidgoyal


I can read them in calibre without problem. When I try to convert the epub to pdf the pdf is without the mathjax rendering. Is it possible to get a pdf with the correct rendering, if so how do I do it?

Thanks for a great program by the way!
Convert the math formulas to SVG. There are websites out there that will do this. Google is your friend.
JSWolf is offline   Reply With Quote
Old 02-06-2023, 08:36 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,573
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
if its not working for you then follow the instructions here: https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Old 02-06-2023, 02:20 PM   #10
poppe
Member
poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'poppe can spell AND pronounce 'liseuse.'
 
Posts: 22
Karma: 39220
Join Date: Sep 2015
Device: Onyx Boox i86
Quote:
Originally Posted by JSWolf View Post
Convert the math formulas to SVG. There are websites out there that will do this. Google is your friend.
I have googled a couple of hours now and found nothing that is supposed to convert an epub with mathml to svg. I tried two different conversion tools that convert epub to svg but non worked. I think I'm not so friendly with google, but perhaps you are a bigger friend and could point me with a link to where I could convert . To understand it correctly, you mean I should convert the whole book to svg or just the mathml? If just the mathml what would the steps be without manually editing the whole book?

Quote:
Originally Posted by kovidgoyal View Post
if its not working for you then follow the instructions here: https://www.mobileread.com/forums/sh...d.php?t=186697
Thanks a lot I will do that. And thanks again for the excellent software

Last edited by poppe; 02-06-2023 at 04:15 PM.
poppe is offline   Reply With Quote
Old 02-06-2023, 04:16 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,532
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There used to be sites that supported creating equations and supported mathML and could output SVG. No idea where they've gone.
JSWolf is offline   Reply With Quote
Old 02-07-2023, 04:53 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
There used to be sites that supported creating equations and supported mathML and could output SVG. No idea where they've gone.
I'm wondering if the poster is trying to convert the epub not the MathML equations? I found several sites that would convert MathML to svg but none that would take an epub with embedded MathML and convert that to svg. Sadly, the MathML Cloud site by Benetech is no longer supported.
DNSB is offline   Reply With Quote
Reply

Tags
conversion, formula, kindle paperwhite, math function


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export/save math formulas/images from pdfs? SnowRipple Onyx Boox 2 05-30-2020 10:48 AM
Displaying math formulas in pdfs sygi PocketBook 8 05-24-2020 10:53 AM
tables, math formulas & different fonts in a .mobi file? Zim Kindle Formats 3 10-22-2011 08:10 PM
Math formulas conversion help Sciamano Conversion 10 06-22-2011 07:33 AM
Convert PDF with Math symbols? daithi81 Sony Reader 10 10-13-2009 08:44 AM


All times are GMT -4. The time now is 10:52 AM.


MobileRead.com is a privately owned, operated and funded community.