Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2014, 08:06 AM   #1
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Too many styles?

I made an ePub having some 50 images to illustrate the text.

To my surprise, almost every image has generated a new style, characterised by the image size.

This complicates the CSS, the XHTML and enlarges the total size of the "working memory". I never had a problem, but I still wonder why this complicated?
Ghitulescu is offline   Reply With Quote
Old 12-02-2014, 10:37 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,029
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Nothing 'complicated' there, just more.

You asked an 'Automated program' to do (a best) job converting.

Only YOU know where you will accept compromize.

BTW you said 'Made an EPUB'. If you Created an EPUB (from scratch), You made also made all those styles
I think you Converted something TO an EPUB. What you get is expected to happen during a conversion.

There is no substitute for a Humans (in some cases: at code level) intervention

Repeated use of an image (eg fleuron) usually treats the as separate images. Tip: place the IMAGE only in one location and place a 'marker' (dummy paragraph) in all the rest of the locations. after conversion to EPUB, use the EDITOR to replace the markers code with the code from the 'Placed image'. . I t is a lot easier to do this way, than find and back out all the 'extras'
theducks is offline   Reply With Quote
Advert
Old 12-02-2014, 11:20 AM   #3
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Since I don't think calibre can create a book out of nothing, therefore yes, I converted an XHTML document to ePub

I frankly do not understand why each image has to create a new style that covers its physical size...

I deleted some of these styles and the image displays identically on the hardware eReaders. But yes I knew the style definition is irrelevant, but as a supplementary check ...

PS: I did not make those styles, each image has exactly the same format, only the name for the JPEG differed. I "made" only 12 styli - the 3 headings, the body text, italic and bold. Plus 3 alignments. The rest up to 60 something were the images.

PS2: Thanx for the tip.

PS3: I am only concerned, because the next ePub has about 300 to 500 images. No matter how optimistic I'll try to be, I think that 500 styli might lock a hardware eReader.
Ghitulescu is offline   Reply With Quote
Old 12-02-2014, 12:19 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,029
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
are the styles <values> associated with each of the <img class=" (for images of the same EXACT size (H+V) the same?

Condense the style usage by changing (editing) the tag class= to use the same CSS style (then run the clean unused styles after verifying results)

Is your output profile set to Tablet (no image resize)?
theducks is offline   Reply With Quote
Old 12-03-2014, 03:20 AM   #5
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
The exact the same size images have the same style, indeed. But there are only 2 or 3.

The definition of images was initially minimalistic <IMG SRC ALT TITLE ID> inside a paragraph definition, that comprised also the caption. I had very good results years, before switching to ePub. And yes, the IMG had also the / at the end , needed for XHTML.

What bothers me is that I have to redo the work I had when creating the XHTML files once again, to correct the "improvements" added.

Thanks for the extra tips

Profile is Sony T3.
Ghitulescu is offline   Reply With Quote
Advert
Old 12-12-2014, 03:19 PM   #6
eschwartz
Ex-Helpdesk Junkie
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: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can open a blank EPUB (new book) in the calibre editor (or Sigil) and Import files to add your XHTML files, then you won't have to redo the work because the conversion pipeline won't stamp all over your work.

You can also import a single XHTML file as a new book.



There you go. Now you can create a book out of "nothing". (Actually, we just aren't converting it.)
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Styles meg2157 Kindle Formats 6 06-08-2013 10:43 AM
Loss of styles from 0.5.3 to 0.6.2? Rhynedahll Sigil 5 01-29-2013 09:36 PM
OpenOffice Styles BobC Writer2ePub 17 11-18-2012 12:19 PM
<hr /> styles trstill Introduce Yourself 1 05-30-2010 01:57 PM
So many styles! roger64 Calibre 3 03-21-2010 08:05 AM


All times are GMT -4. The time now is 03:21 PM.


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