Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2012, 08:46 PM   #1
Themus
Zealot
Themus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-books
 
Posts: 133
Karma: 998
Join Date: Apr 2010
Device: Nook
My ePubs render differently on Android, Apple and Aldiko

I have spent about a year creating ePubs using Word. The titles are in Black with a line and author below it in Teal. I have various styles used throughout.

I save them as WebPage Filtered and import then into Calibre. I convert them and bring them into Aldiko. They look good.

If I bring them into other eReaders, I get different results. Moon+ Reader doesn't have the Title and author right along with other issues.

Stanza does a pretty good job on the Apple Ipad, except my paragraph spacing is wrong and is the same throughout the rendering despite being different in the original document. It's all or nothing as far as indents despite having them set differently in the original.

ShuBook doesn't see any of my styles, for example my bold text. That which I manually highlighted in bold in the original Word file, do show up bold. Seems none of the styles are recognized in this eReader.

Is there no universal language to make these different applications see the text the same?

What is the secret if there is one for making an ePub rendering somewhat the same on different platforms or eReaders.

Thank you in Advance.
Tom
Themus is offline   Reply With Quote
Old 09-25-2012, 02:33 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
Yes, there is such a universal language. Although small differences will always be there caused by different rendering engines, you can limit it.

That language is XHTML with a dash of CSS. Instead of counting on Calibre to do a conversion, clean up the source from Word first and create the ePUB from that. Conversions in Calibre can be messy, even more when it has to guess.
Toxaris is offline   Reply With Quote
Old 09-25-2012, 07:22 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,532
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Themus View Post
What is the secret if there is one for making an ePub rendering somewhat the same on different platforms or eReaders.
No secret. Trial and error and perseverance (and a willingness to concede that; "that's close enough."). The same things it takes to make webpages render similarly in different browsers.
DiapDealer is offline   Reply With Quote
Old 09-25-2012, 08:42 AM   #4
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
You can use media queries to create separate style sheets for Webkit and Adobe RMSDK. This doesn't solve all formatting problems, but allows more fine-grained control over text presentation in different rendering engines.
PageLab is offline   Reply With Quote
Old 09-25-2012, 10:40 AM   #5
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by PageLab View Post
You can use media queries to create separate style sheets for Webkit and Adobe RMSDK.
can you actually query engines specifically? i've only ever seen device-width/height, although i guess "media screen and (-webkit-min-device-pixel-ratio:0)" for webkit might work, but i've never tried.
mzmm is offline   Reply With Quote
Old 09-25-2012, 11:01 AM   #6
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
Yes, you can use something like this in your XHTML code:

<link href="default-rmsdk.css" rel="stylesheet" type="text/css" />
<link href="optimized-webkit.css" media="all and (min-width: 240px)" rel="stylesheet" type="text/css" />

The second stylesheet will be ignored by RMSDK, and can be used to refine your formatting in iBooks and other webkit based apps.

But it's not "querying specifically". It relies in the fact that RMSDK doesn't support media queries.

Last edited by PageLab; 09-25-2012 at 11:03 AM. Reason: adding usefull info
PageLab is offline   Reply With Quote
Old 09-25-2012, 11:02 AM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mzmm View Post
can you actually query engines specifically?
Jellby came up with a very creative way of testing for an RMSDK engine using an .xpgt file, which is only processed by RMSDK readers.
Doitsu is offline   Reply With Quote
Old 09-25-2012, 11:40 AM   #8
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
@PageLab -- thanks for the example!

@Doitsu -- thanks for the link!
mzmm is offline   Reply With Quote
Old 09-25-2012, 06:48 PM   #9
Themus
Zealot
Themus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-booksThemus has learned how to read e-books
 
Posts: 133
Karma: 998
Join Date: Apr 2010
Device: Nook
Thank you all for your responses. Seems like I am a little over my head. Too bad there isn't a program where you can just place your text, set your sytles for headings, body and paragraph subheads, and then out comes the ePub you need for a given device.

I have about 200 Word files and corresponding ePubs in Calibre that do look good in Aldiko. I was trying to be open at looking at the new Apple Ipad Mini with Stanza or Shubook.

Looks like unless I want to re-do all my work, I'll either stick with my rooted Nook Color and Aldiko and Calibre Companion, or get a new Galaxy Tab 2 and just place Aldiko and Calbire Companion on it.

Mega thanks for all your advice.
Themus is offline   Reply With Quote
Old 09-26-2012, 01:41 AM   #10
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Themus View Post
Seems like I am a little over my head. Too bad there isn't a program where you can just place your text, set your sytles for headings, body and paragraph subheads, and then out comes the ePub you need for a given device.
There are commercial ePub editors such as Jutoh and AWP that you could give a try.

Alternatively, you could have a look at the source code in Sigil. Open one of your ePubs with Sigil and have a look at a typical paragraph in Code View.

It should look like this:

Code:
<p class="calibre3">It was a dark and stormy night...</p>
Note the class name (in this example, calibre3). Then open the stylesheet and look at the corresponding definitions in the .css file :

.calibre3 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: justify;
text-indent: 0
}

The lines marked in red control paragraph spacing. Simply reduce the values to get the paragraph spacing that you want.
While you're at it also press F8 to check the metadata and update them as needed.
Doitsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IQ Aldiko 2.0 For Android 2.0 fjtorres PocketBook 3 08-08-2011 07:17 PM
Aldiko 2.0 on older Android firmwares Nate the great Android Devices 6 07-10-2011 04:12 PM
Calibre E-Book Viewer and ADE render ePub TD font-size differently Agama Devices 5 06-17-2011 02:44 AM
Help! Aldiko/Wordplayer/FBReader all fail to read my epubs on HTC EVO!! sagefire21 Android Devices 1 01-12-2011 12:10 PM
Calibre + Android + Aldiko integration project chaley Calibre 27 11-27-2010 07:40 AM


All times are GMT -4. The time now is 11:59 PM.


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