11-24-2010, 09:09 AM | #1 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
|
newbie - keep original html and style
hi, trying to use calibre to make an epub. i have 2 books. each has 25 or so chapters each in its own html file. each file has an image folder with images.
my html validates as xhtml 1.1. these files have no style, class, or span. just headings, images, paragraphs, and lists. depending on whether i import this an index file, a prc or use the command line, i usually get a lot of warnings and a lot of style is added to the epub. sometimes i get a few thousand lines like: Property: Invalid value for "CSS Level 2.1" property: 385 [1:1: width] Property: Invalid value for "CSS Level 2.1" property: 385 [1:13: height] sometimes i get a lot of: <link href="stylesheet.css" type="text/css" rel="stylesheet"/><style type="text/css"> @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }</style> the @page thing is not valid xhtml 1.1 also, it looks like puts a ul in a ul which is not valid (when making a toc or something). is there any way to keep the original html and image folder structure? currently the images for foo.html are in images/foo/. there are duplicate image names (they are mostly like image001.gif, image002.gif, ...). is there any way to eliminate most or all of the class and style that calibre adds? if i fool around with the output size using the gui, i end up with one big html file (which is not so bad), but still has oodles of style). are there some command line arguments that can help me? thanks |
11-24-2010, 10:11 AM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
This is the recipe sub-forum. You'll get more attention and better answers in the main forum.
|
Advert | |
|
11-24-2010, 01:37 PM | #3 |
Grand Sorcerer
Posts: 6,208
Karma: 16534692
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I think you may need to attach a bit of your HTML if you want specific help with those warnings. Something that includes headings, <p> tags, <img> tags and <ul> tags.
However, it is perfectly normal for calibre to create epub paragraphs that look like <p class="calibrenn">....</p> even if you started with <p>...</p>. I think the @page stuff comes from what you set up in Convert - PageSetup - Margins. |
11-24-2010, 10:50 PM | #4 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
|
Quote:
thanks |
|
11-25-2010, 07:25 AM | #5 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
I haven't found a way to do this solely within calibre but it is a simple command in any text editor which supports regular expressions, (regex). I use Notepad++ after exploding the ePub with calibre's Tweak ePub option. |
|
Advert | |
|
11-29-2010, 05:42 PM | #6 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
|
> I prefer to use my own standard style sheet ...
yes. i will be doing that soon. I haven't found a way to do this solely within calibre but it is a simple command in any text editor which supports regular expressions ... the books we have published are very short on style. lots of widows and orphans due mostly to images. thanks |
11-30-2010, 02:02 AM | #7 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
Full details can be found at http://daringfireball.net/projects/markdown/ |
|
12-01-2010, 02:11 PM | #8 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
|
Quote:
he is used to using m$ word. i am trying to get him to use something like amaya or dreamweaver and to limit his markup to headings and paragraphs and images or stay with word and insert links instead of inserting the image into word. thanks |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import of HTML With Embedded <Style> Broken In 0.7.5 | Oboe Joe | Calibre | 2 | 06-27-2010 10:35 AM |
Mobi TOC style vs ePub style? | phearlez | Kindle Formats | 3 | 04-11-2010 06:35 AM |
Help! Newbie having problems converting HTML/CSS files | jackie_w | Calibre | 6 | 09-14-2009 04:53 PM |
Dickens, Charles: Great Expectations (with original ending). 14 September 2007. HTML | andym | Other Books | 1 | 02-26-2009 04:34 PM |
Original manga-style graphic novel | nekokami | Reading Recommendations | 60 | 10-27-2008 11:26 AM |