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 02-25-2015, 12:42 PM   #1
saguay
Enthusiast
saguay began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2015
Device: SIGIL
ePUB weight

The weight of my epub is too high (14 mo). What can I do to reduce this weight ?
saguay is offline   Reply With Quote
Old 02-25-2015, 12:54 PM   #2
BryanK
Connoisseur
BryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 59
Karma: 12538
Join Date: Oct 2011
Device: Kobo Wifi
Quote:
Originally Posted by saguay View Post
The weight of my epub is too high (14 mo). What can I do to reduce this weight ?
What is this epub? Is it one you made? One you bought? DRM? Does it contain a lot of images? A lot of text? Embedded fonts?
BryanK is offline   Reply With Quote
Old 02-25-2015, 01:00 PM   #3
saguay
Enthusiast
saguay began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2015
Device: SIGIL
I did this ePUB with SIGIL. This is the file : http://manuscritdepot.com/doc-transf...yn-malo.1.epub (this file is copyrighted by my and the authour - I'M a publischer)
saguay is offline   Reply With Quote
Old 02-25-2015, 02:46 PM   #4
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,088
Karma: 35545216
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Remove all those fonts, you aren't using any of them.

One of them alone is 22MB.

That will drop the book down to 1.2MB instead of 17MB which should help tremendously.

EDIT: That might be because, as DomesticExtremis points out below, nofew styles are in use... only the auto-generated styles for the ToC are in use.

Still, do you really need to embed arial specifically? Embedded fonts are something IMO to be used as a last resort.

Last edited by eschwartz; 02-25-2015 at 03:00 PM.
eschwartz is online now   Reply With Quote
Old 02-25-2015, 02:48 PM   #5
DomesticExtremis
Groupie
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 177
Karma: 359000
Join Date: Nov 2012
Device: default
Apart from the TOC.xhtml, none of your xhtml files is using any style
sheet, so it will be defaulting to whatever your eReader or software is using.

There are lots of errors coming from FlightCrew (Tools|Validate... in sigil)

You might want to fix those first before worrying about font size.
DomesticExtremis is offline   Reply With Quote
Old 02-25-2015, 02:52 PM   #6
DomesticExtremis
Groupie
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 177
Karma: 359000
Join Date: Nov 2012
Device: default
Quote:
Originally Posted by eschwartz View Post
Remove all those fonts, you aren't using any of them.

One of them alone is 22MB.

That will drop the book down to 1.2MB instead of 17MB which should help tremendously.
Plus, the ePub isn't using them as they haven't been embedded properly.
DomesticExtremis is offline   Reply With Quote
Old 02-25-2015, 03:03 PM   #7
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,088
Karma: 35545216
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The main error is the persistent use of style <* align="center"> instead of text-align, which isn't a tremendously difficult obstacle.
eschwartz is online now   Reply With Quote
Old 02-25-2015, 03:04 PM   #8
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,088
Karma: 35545216
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DomesticExtremis View Post
Plus, the ePub isn't using them as they haven't been embedded properly.
Yes I noticed, and edited my post appropriately.
eschwartz is online now   Reply With Quote
Old 02-25-2015, 04:01 PM   #9
saguay
Enthusiast
saguay began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2015
Device: SIGIL
Thank you DomesticExtremis and eschwartz

Thank you very much.

I remove all fonts.

But the replacement of text-align doesnt work.

As you know, I use :

<h2 style="text-align: center;">Préambule</h2>

What should I use ?
saguay is offline   Reply With Quote
Old 02-25-2015, 04:06 PM   #10
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 13,088
Karma: 35545216
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You will still want to actually link the stylesheet (right-click on files in the file browser baked into Sigil) and you want to replace "align" with "text-align", not the other way around.
eschwartz is online now   Reply With Quote
Old 02-25-2015, 04:10 PM   #11
saguay
Enthusiast
saguay began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2015
Device: SIGIL
I decide to add text-align in the css. The problem is solve for the title (H2). But I still have the same problem with <p align="center">* * *</p>
saguay is offline   Reply With Quote
Old 02-25-2015, 04:22 PM   #12
saguay
Enthusiast
saguay began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2015
Device: SIGIL
It's done

Quote:
Originally Posted by eschwartz View Post
You will still want to actually link the stylesheet (right-click on files in the file browser baked into Sigil) and you want to replace "align" with "text-align", not the other way around.
It's done. Thank you.
saguay is offline   Reply With Quote
Old 02-25-2015, 04:34 PM   #13
saguay
Enthusiast
saguay began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2015
Device: SIGIL
On the ePub check IDPF, they wrote : attribute "align" not allowed here; expected attribute "class", "dir", "id", "lang", "style", "title" or "xml:lang"

I dont understand
saguay is offline   Reply With Quote
Old 02-25-2015, 05:08 PM   #14
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 8,333
Karma: 51768218
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
While yes, you can code
Code:
<p style="text-align:center">* * *</p>
it's being suggested that using a stylesheet and named styles would be more beneficial.

You would want to make a new stylesheet (say my.css) and it would contain
Code:
.center {
    text-align: center;
}
Then you would link my.css to the files within the eBook within Sigil, and in the actual files just code
Code:
<p class="center">* * *</p>
<h2 class="center">Préambule</h2>
Or if you wanted ALL <h2>'s to be centered you could place in my.css
Code:
h2 {
    text-align: center;
}
and then just code
Code:
<h2>Préambule</h2>
PeterT is offline   Reply With Quote
Old 02-25-2015, 08:49 PM   #15
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 8,333
Karma: 51768218
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
You also might like to look at some of the resources here at MobileRead on eBook creation.

For instance http://wiki.mobileread.com/wiki/EPub_Tutorial which deals with CSS and stylesheets among other topics.
PeterT 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
A SIMPLE SOLUTION TO AMERICA'S WEIGHT PROBLEM: Banish Belly and Lose Weight in 5 DrDln Self-Promotions by Authors and Publishers 0 05-20-2011 12:29 AM
PRS-650 Weight of covers StanByk Sony Reader 7 09-29-2010 02:16 PM
Overdrive throwing weight behind epub tech_au News 27 02-28-2009 03:12 PM
WEIGHT pbananth Which one should I buy? 20 04-04-2008 01:31 PM


All times are GMT -4. The time now is 07:35 PM.


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