Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-24-2010, 09:09 AM   #1
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
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
Ray Tayek is offline   Reply With Quote
Old 11-24-2010, 10:11 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Ray Tayek View Post
hi, trying to use calibre to make an epub.
This is the recipe sub-forum. You'll get more attention and better answers in the main forum.
Starson17 is offline   Reply With Quote
Advert
Old 11-24-2010, 01:37 PM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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.
jackie_w is offline   Reply With Quote
Old 11-24-2010, 10:50 PM   #4
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Quote:
Originally Posted by Starson17 View Post
This is the recipe sub-forum. You'll get more attention and better answers in the main forum.
ok, i'll try to do that.

thanks
Ray Tayek is offline   Reply With Quote
Old 11-25-2010, 07:25 AM   #5
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
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 prefer to use my own standard style sheet, so I remove all class="calibrenn" references from the calibre generated xhtml files.

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.
Agama is offline   Reply With Quote
Advert
Old 11-29-2010, 05:42 PM   #6
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
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
Ray Tayek is offline   Reply With Quote
Old 11-30-2010, 02:02 AM   #7
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
the books we have published are very short on style. lots of widows and orphans due mostly to images.
If your books are in plain-text format then you might found markdown useful. This is an easy way of introducing style and structure to a plain text document and is fully supported by calibre.

Full details can be found at http://daringfireball.net/projects/markdown/
Agama is offline   Reply With Quote
Old 12-01-2010, 02:11 PM   #8
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Quote:
Originally Posted by Agama View Post
If your books are in plain-text format then you might found markdown useful. This is an easy way of introducing style and structure to a plain text document and is fully supported by calibre.

Full details can be found at http://daringfireball.net/projects/markdown/
markdown looks inetersting, but his books have a lot of diagrams. like: http://senseis.xmp.net/

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
Ray Tayek is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 08:45 PM.


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