Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2011, 07:19 PM   #1
Xopher H
Junior Member
Xopher H began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2011
Device: iPhone
Calibre Inserting Its Own CSS Classes

I'm a little bit confused about something. I sent a draft of an epub conversion to a client to check out. He went in with the "tweak ePub" feature to make some edits to the text, and the resulting document that he sent back has some pretty radical differences from the one I sent: two CSS files have disappeared, leaving only the style.css file, and that one has several numbered "Calibre" classes. (e.g., calibre1, calibre2, etc.) What's going on? I've never had this issue when I exploded and rebuilt Calibre files myself.
Xopher H is offline   Reply With Quote
Old 08-01-2011, 09:38 PM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You would only see css styles like that if he did an ePub to ePub conversion - one of the major reasons Tweak ePub was created was to avoid having Calibre manipulate the css the way it does in a full conversion.

If his edits were actually edits to the content and not formatting, and you need to find and merge them into your original ePub the simplest method I've found is to convert both versions to txt - I usually enable smarten punctuation under look and feel to attempt to normalize the txt across both versions. Then compare the two versions in a diff tool - I've found P4merge (free download) seems to work best with book length docs.

Last edited by ldolse; 08-01-2011 at 09:43 PM.
ldolse is offline   Reply With Quote
Advert
Old 08-02-2011, 10:21 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Xopher H View Post
I'm a little bit confused about something. I sent a draft of an epub conversion to a client to check out. He went in with the "tweak ePub" feature to make some edits to the text, and the resulting document that he sent back has some pretty radical differences from the one I sent: two CSS files have disappeared, leaving only the style.css file, and that one has several numbered "Calibre" classes. (e.g., calibre1, calibre2, etc.) What's going on? I've never had this issue when I exploded and rebuilt Calibre files myself.
I hate to say this, but once you have the ePub made, don't let Calibre make any changes to it. I've found Calibre can do some pretty funky things to perfectly good ePub code.

I use Notepad++ since it allows me to have multiple tabs, regex, and search/replace across tabs. I use Forefox to view the XML files and if they look OK, I put the ePub back together and have a look in ADE.
JSWolf is offline   Reply With Quote
Reply

Tags
css, editing, epub, glitches


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images in an ePub lost when inserting it in Calibre jmatute Conversion 6 07-06-2011 02:04 AM
possible to change classes name,id,stylename that generated by calibre? hard13 Conversion 2 02-24-2011 09:23 PM
Classes in CSS in recipes? Tegan Recipes 10 01-17-2011 07:30 PM
NCX creation -- nested or not, css classes illustrata ePub 3 08-25-2010 08:56 AM
Norton 2010 classes Calibre as high risk roger the rabbit Calibre 36 02-24-2010 04:54 PM


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


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