Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-23-2014, 03:58 PM   #1
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
How do i deal with "calibre" tags in my css

When adding html files to calibre (portable 1.28 on Windows), as new ebooks. then converting them to azw3 to edit them. calibre adds many tags. (such as "<calibre p> <calibre class 1> <calibre class 2>".)

is there a way not to have "calibre" tags" added.
or is there a guide as to when calibre will insert each tag so i can properly create/edit my css file? (if it's in the calibre guide please tell me were)
user743 is offline   Reply With Quote
Old 03-23-2014, 04:17 PM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Use the editor to create an azw3 it rather than converting it with calibre. The editor adds nothing.
mrmikel is offline   Reply With Quote
Advert
Old 03-23-2014, 04:24 PM   #3
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
when calibre converts an ebook, it consolidates all css into unique "calibre*" tags. That was Kovid's design decision, for better or worse. There is no way to get around it by converting, so as mrmikel said, use the editor -- it can edit azw3 as well as EPUB. Or you can use kindlegen.

Is it really a problem though? I assume EPUB will be your master format, what does it matter what the AZW3 looks like inside? You will always be editing the EPUB.
eschwartz is offline   Reply With Quote
Old 03-23-2014, 05:25 PM   #4
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
Quote:
Originally Posted by mrmikel View Post
Use the editor to create an azw3 it rather than converting it with calibre. The editor adds nothing.

I don't understand, aren't you only able to edit azw3 and epub, not html.
user743 is offline   Reply With Quote
Old 03-23-2014, 05:46 PM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
If you want TOTAL control over the CSS class names, don't let calibre convert the material. You can still use calibre, just avoid doing conversions with it.

Look at either using Sigil to create an ePub or the Calibre editor to create ePub or azw3 format file.
PeterT is offline   Reply With Quote
Advert
Old 03-23-2014, 09:04 PM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
An epub is a collection of html files. Find one in the MR library and open it with Sigil or the Calibre editor. You will see the files and how they are organized and you can take a look at the CSS stylesheet too.

Create a blank book and import your html files, stylesheet and images. Work on it till you are happy. Use the Table of Contents Tools in either to create a TOC, or HTML TOC then save and preview in a target device. Note defects and fix, repeat.
mrmikel is offline   Reply With Quote
Old 03-24-2014, 04:27 PM   #7
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
where dose it say when each "calibre" tag is inserted? - if it's in the calibre guide please specify where.
user743 is offline   Reply With Quote
Old 03-24-2014, 04:33 PM   #8
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
It happens during the conversion output.

The calibre User Guide doesn't document the behind-the-scenes engines that power calibre.
eschwartz is offline   Reply With Quote
Old 03-24-2014, 06:04 PM   #9
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The calibre "tags" or classes are built for each book based on the markup already present in the book. There is NO rule saying calibre1 is always used for the main text, or calibre59 for a heading.
PeterT is offline   Reply With Quote
Old 03-24-2014, 08:39 PM   #10
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
How can i do that?

Quote:
Originally Posted by mrmikel View Post
Use the editor to create an azw3 it rather than converting it with calibre. The editor adds nothing.
If i understand correctly, i should open the editor directly.
which file is should i open?
how do i create a "azw3 it" ("xxxx.azw3" - if i understand correctly)? can i simply change the file name in the editor?

Last edited by user743; 03-24-2014 at 08:41 PM.
user743 is offline   Reply With Quote
Old 03-24-2014, 10:01 PM   #11
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: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by user743 View Post
If i understand correctly, i should open the editor directly.
which file is should i open?
how do i create a "azw3 it" ("xxxx.azw3" - if i understand correctly)? can i simply change the file name in the editor?
the book editor (W7 x64) does not seem to allow changing the type in Save a Copy
theducks is offline   Reply With Quote
Old 03-24-2014, 10:20 PM   #12
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Why would the editor allow changing format on Save As? That's not the purpose of the editor; rather its designed to create / edit a file in azw3 OR epub format.
PeterT is offline   Reply With Quote
Old 03-25-2014, 12:01 AM   #13
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by user743 View Post
If i understand correctly, i should open the editor directly.
which file is should i open?
how do i create a "azw3 it" ("xxxx.azw3" - if i understand correctly)? can i simply change the file name in the editor?
Export the actual html pages from unpacking the EPUB. You can use the Unpack Book tool, with the shortcut key "U" (or add it to the toolbar, under Preferences ==> Interface ==> Toolbar) to get a folder with the html files. Then you need merely import those files into the current book.

You can also try kindlegen from Amazon, I believe they do not recreate the styles from scratch.
eschwartz is offline   Reply With Quote
Old 03-25-2014, 08:40 AM   #14
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
Quote:
Originally Posted by eschwartz View Post
Export the actual html pages from unpacking the EPUB. You can use the Unpack Book tool, with the shortcut key "U" (or add it to the toolbar, under Preferences ==> Interface ==> Toolbar) to get a folder with the html files. Then you need merely import those files into the current book.

You can also try kindlegen from Amazon, I believe they do not recreate the styles from scratch.
It looks like you misunderstood. I'm starting with one html file, that was never part of a ebook.
i want to
  1. edit it
  2. add a css file
  3. save it as a ebook (azw3).
adding it to a new empty ebook in cailbre, doesn't either work. because calibre gives me a error message that it's empty. (what is the point of adding a empty ebook if it stays empty. a bug?)
user743 is offline   Reply With Quote
Old 03-25-2014, 08:51 AM   #15
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Open the calibre editor. File edit, Import files into book. Import stylesheet into book.
Add step here: Split file at chapters so it doesn't make reader run slow or barf altogether.
Save.
That's it.
You make a shortcut to the editor directly in windows using:
"C:\Program Files\Calibre2\ebook-edit.exe"
mrmikel is offline   Reply With Quote
Reply

Tags
<calibre> tags, calibre, calibre portable, css, html import to calibre


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An reader able to read several "genre" tags on Calibre. Zabriskie Which one should I buy? 2 10-26-2012 12:24 PM
Calibre No Longer downloading "Tags" Japes Calibre 1 07-02-2012 03:06 AM
epub CSS versus "Regular" CSS konrad ePub 4 02-18-2011 09:29 AM
Is there a way to get Calibre to retain "!important" in a css? PatNY Calibre 1 01-06-2011 12:31 PM


All times are GMT -4. The time now is 04:28 AM.


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