![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
|
Help! Objects look weird
Hello, take a look at the attached image. On the left (InDesign14) the item looks ok and its anchored (source pasted from a .doc file) but on the right the epub looks awful. How can I fix this? Any setting before exporting to reflowable epub I miss?
http://imgur.com/8MI0bAO |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It depends on your target. If it is ePUB3, you should use MathML. If it is ePUB2 (most supported), equations are best of as images (png or svg). I personally use SVG, since I can make that scale-able to the font size. I use the codecogs site for creating SVG equations.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,620
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Am I right in thinking that the left hand side of the equation is an image, but the ' = 0' part is plain text? In which case, I'd advise doing the entire equation as an (SVG) image.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
|
Correct. I'm afraid that is not practical for an entire book and also many times there are equations in text lines.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Perhaps not practical, but it is the best solution.
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
|
Not for the case where equations appear among text lines, plus its a book with thousands of equations. The thing is that when I export to pdf the equations look as they should which means anchoring is correct. hmmmmm
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Among text lines is not an issue. You can embed SVG as regular images and even specify the height as e.g. 1 em.
The fact that it are thousand of equations can be hard. However, you already say that you have a Word document. With my add-in you can export the equations in the MathML format. From there it is easy to convert to SVG. For example with http://www.grigoriev.ru/svgmath/. If you keep the name equal with the PNG images that Word normally uses, you should be able to use some smart Search/Replace rules to do a quick replace. |
![]() |
![]() |
![]() |
#9 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Whether or not it's "practical" is also utterly irrelevant. Converting them to PNG or SVG--all together, in a single image--is the only way you're going to get this to work. And be advised, depending on whether or not you have MOBI as a target, as well, that using SVG probably won't work, inline, for the millions of KF7 devices still out there. This is why books like this are quoted with rather high prices at eBook conversion houses like mine. It's an horrendous amount of manual labor, generally speaking. Toxaris's MathML export is likely your only available "shortcut." And yes, that means that you're going to have to replace the ones in the ePUB output with the SVGs from the Word-->MathML-->PNG-->SVG process. More tedious manual labor. Hitch |
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
|
Thanx everyone.
For those interested after exporting adding a "vertical-align:middle;" style for each image/equation did the trick |
![]() |
![]() |
![]() |
#11 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Uh, seriously? Do you mean, that you exported two images, each part of an equation, and using vertical-align:middle, (for what, the image elements, or...?) worked to keep them together? Or did you export Math ML? This works on ePUB format, you say--what readers did you test it on, and did you try it for MOBI, if you're going that route? Hitch |
|
![]() |
![]() |
![]() |
#12 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
OK, well, if you're viewing this in ADE, it must not be FXL (Fixed-Layout), is that right? Forgive me for asking, but you'd be amazed at how many folks come to use with what are, essentially, fixed-layout ePUBs that they made using INDD, and don't understand what the issues are, when we try to create a reflowable. What did you use as the parent element? A div? The same div, for each image (equation)? (like a pseudo or ghost container?) Did you affix the line-height, and/or the height of the div? Is this an ePUB3, or 2? I'm simply a bit surprised that this worked. Actually, more than a bit... Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with error: TypeError: cannot concatenate 'str' and 'int' objects | Talayero | Devices | 3 | 01-24-2013 10:28 PM |
Centering objects in Adobe Digital Editions? | uavalos | Sigil | 21 | 07-14-2012 11:47 AM |
Objects of Desire Sale at BN | kikar | Barnes & Noble NOOK | 1 | 02-11-2011 02:41 PM |
Paper books as collectible objects | Sephiroth, | General Discussions | 28 | 09-24-2010 08:59 AM |
Don't drop sharp objects onto you Iliad screen. | AndyCapon | iRex | 12 | 07-06-2008 03:08 PM |