Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2016, 07:18 AM   #1
User7
Member
User7 began at the beginning.
 
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
User7 is offline   Reply With Quote
Old 01-08-2016, 07:26 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Advert
Old 01-08-2016, 07:31 AM   #3
User7
Member
User7 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
Quote:
Originally Posted by Toxaris View Post
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.
They are already images and I select Epub 2 before exporting. Any help?
User7 is offline   Reply With Quote
Old 01-08-2016, 07:56 AM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,511
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
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.
pdurrant is offline   Reply With Quote
Old 01-08-2016, 08:21 AM   #5
User7
Member
User7 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
Quote:
Originally Posted by pdurrant View Post
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.
Correct. I'm afraid that is not practical for an entire book and also many times there are equations in text lines.
User7 is offline   Reply With Quote
Advert
Old 01-08-2016, 12:13 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Old 01-08-2016, 02:46 PM   #7
User7
Member
User7 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
Quote:
Originally Posted by Toxaris View Post
Perhaps not practical, but it is the best solution.
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
User7 is offline   Reply With Quote
Old 01-08-2016, 03:06 PM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Old 01-09-2016, 04:48 PM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by User7 View Post
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
The export to PDF is utterly irrelevant. PDF has support for multi-column objects, which is what you're exporting. You have TWO images, not one, that you are trying to export together, forcing them to keep the same appearance (distance between, etc.) that they have in the Word file. You might be able to get that to work for a single reader, or, say, all the readers using a certain rendering engine--but it's going to fail in most.

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
Hitch is offline   Reply With Quote
Old 01-11-2016, 01:34 PM   #10
User7
Member
User7 began at the beginning.
 
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
User7 is offline   Reply With Quote
Old 01-11-2016, 04:26 PM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by User7 View Post
Thanx everyone.
For those interested after exporting adding a "vertical-align:middle;" style for each image/equation did the trick

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
Hitch is offline   Reply With Quote
Old 01-11-2016, 04:46 PM   #12
User7
Member
User7 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2015
Device: none
Quote:
Originally Posted by Hitch View Post
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
I didn't export any image/equation. After having the material correctly placed on the InDesign document, I exported (ePUB was the format I was assigned to do, never tried others) and added that style to each image. (either on the xhml directly or via CSS) That image (equation) appeared as it should (50% above the text line and 50% below -in the middle of the parent element) I usually try the results on a browser extension and on Adobe Digital Editions.
User7 is offline   Reply With Quote
Old 01-11-2016, 05:43 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by User7 View Post
I didn't export any image/equation. After having the material correctly placed on the InDesign document, I exported (ePUB was the format I was assigned to do, never tried others) and added that style to each image. (either on the xhml directly or via CSS) That image (equation) appeared as it should (50% above the text line and 50% below -in the middle of the parent element) I usually try the results on a browser extension and on Adobe Digital Editions.
Hi:

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
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:51 AM.


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