09-19-2020, 10:05 AM | #31 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
FYI, was poking inside of a different book that seemed to have a lot of hard to follow mathML stuff, but it all shows in green in sigil,as if it's commented out . green means ignored? |
|
09-19-2020, 11:48 AM | #32 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil supports MathML (with Mathjax javascript), so if the code is commented out, that's in the epub itself.
|
09-19-2020, 01:26 PM | #33 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
1) Your .svg is an image made of "paths". 2) Your .svg is not a plain .svg, so it can produce issues with some ereaders. 3) Your .svg, even after converted as plain .svg, it has some instruccions not supported by ADE. I attach an. epub with two .svg images: your original converted as plain .svg (test2.svg) and a new one made by me (test3.svg), also a plain one. As you can see in the following screenshots, your image is not displayed under ADE but it looks ok under Sigil. So, that is a source of issues because if ADE has troubles to display your .svg, all ereaders based on RMSDK won't be able to show properly your formulas. Since you have so many .svg images, to correct them in order that ADE can display them is not an alternative. So your best bet IMHO is to convert them (batch conversion) as .pgn using a conversor like Irfanwiew or ImageMagick. Regards Rubén |
|
09-19-2020, 01:56 PM | #34 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
I found a better workaround, see next para. But I am puzzled by the amount ofnwork that someone-the publisher? - has devoted to creating a huge set of not very compatible images, brus stroke by brush stroke.
The workaround. Checking Amazon Kindle store ,they offer the book cheaply. I grabbed the free sample into kindle for android on my same tablet. The kindle version has equations what scale up and down when you change text size, and are blacker and at the same size as the text. And presumably, if I bought it and converted to epub I would have something that works on all my devices. Will look at the kindle sample book code later. Or |
09-19-2020, 02:38 PM | #35 | ||
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Your workaround (convert a Kindle ebook into an epub) won't work for all epub reader devices, especially if the Kindle ebook you are going to download is a .kf8 one because Amazon won't modify your .svg (maybe you are a lucky man and the downloaded ebook is in .KFX format -I doubt- and all your formulas were converted in .jpg). If you, now, without any change, open your epub with PocketBook, your formulas will display well. But that is because PocketBook has two render engines: RMSDK and WebKit. Another reader device not based in WebKit will have issues with your .svgs. Convert your .svg as .pgn (a better format than .jpg for formulas), it's your best bet. Last edited by RbnJrg; 09-19-2020 at 02:52 PM. |
||
09-20-2020, 01:34 AM | #36 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
in the kindle sample - there are no .svg at all. they have been replaced with .gifs
( that's looking at the sample downloaded to K for PC then moved into calibre and converted for examination ) seems someone at amazon , or the publisher, realised what a pain in he posterior those svg constructs are, and had them replaced before putting the book up for sale. so I shall buy the full version from amazon and move on. ( it was an interesting lesson ( in SVG, not in calculus! ) https://smile.amazon.co.uk/Calculus-...al-text&sr=1-1 |
09-20-2020, 09:01 AM | #37 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Well, .svg images are the best option for formulas (if you can't use MathML). The problem here is that the .svg images in your epub are not in the standart format (plain .svg) and so, many ereaders can't display them properly. But you must not be with the idea that .svg images are always a bad option.
|
09-20-2020, 10:07 AM | #38 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
FWIW, it is possible to use the command line and the stream editor "sed" to automate mass find replace upon any set of files (even 500 of them). So the option of fixing the svg is possible.
|
09-21-2020, 04:21 PM | #39 | ||
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Quote:
Albert |
||
09-21-2020, 06:26 PM | #40 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-24-2020, 07:38 PM | #41 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
So what I would do to handle the "gray maths issue": 1. Unzip the EPUB. 2. Notepad++ (or similar) to replace all rgb(0%,0%,0%) with rgb(0,0,0). 3. Repack EPUB. (Manually, or just open/save the EPUB in Calibre/Sigil.) Quote:
IF you want to stick with SVG, I know many times over the years we've discussed "Plain SVG" output from Inkscape. Or you could convert to PNG formulas, while not as nice/crisp, at least it'll display in horrible non-standards-compliant readers such as Moon+ Reader. All depends on what you're trying to accomplish, and what your source material is. Last edited by Tex2002ans; 09-24-2020 at 07:44 PM. |
||
10-19-2020, 09:35 AM | #42 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
The printed book probably used Postscript/EPS/PDF graphics, and that was then exported automatically to SVG, which theoretically should give the same result. In practice, not guaranteed. Many publishers just use the most primitive and also most compatible format, and convert to images (usually JPEG). That however balloons the size to get decent resolution. As for the size of inline images (e.g. Chinese characters, symbols, etc.), of any kind, I make a class for these image with "height=1em" for a start and if that looks too small, bump it up a bit. Maybe some more complex ones need 2em, or even more. Quote:
I use Irfanview, usually reduce the number of colours to 4 (or 8 or 16 if there are greys), then adjust the palette so black is actually (0,0,0). Gives me very compact and sharp files. Last edited by AlanHK; 10-19-2020 at 09:46 AM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura ONE Any way to enlarge titles font in My books list view? | kim1406 | Kobo Developer's Corner | 2 | 08-16-2020 02:32 PM |
Libra Enlarge image | Valkrider | Kobo Reader | 10 | 03-10-2020 08:12 AM |
Hacks kindle 3.4 Font size enlarge | dawniefitzgerald | Amazon Kindle | 0 | 10-05-2012 04:59 PM |
KindleGen - Enlarge pictures in lanscape orientation? | _Abahd_ | Kindle Formats | 0 | 09-17-2012 05:22 AM |
How to enlarge font size of mobi dictionary | redmayfair | General Discussions | 3 | 07-14-2012 05:07 AM |