![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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'
![]() 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 ![]() ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. ![]() |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) ![]() |
![]() |
![]() |
![]() |
#5 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. ![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |