03-23-2014, 03:58 PM | #1 |
Addict
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) |
03-23-2014, 04:17 PM | #2 |
Color me gone
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.
|
Advert | |
|
03-23-2014, 04:24 PM | #3 |
Ex-Helpdesk Junkie
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. |
03-23-2014, 05:25 PM | #4 |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
|
03-23-2014, 05:46 PM | #5 |
Grand Sorcerer
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. |
Advert | |
|
03-23-2014, 09:04 PM | #6 |
Color me gone
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. |
03-24-2014, 04:27 PM | #7 |
Addict
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.
|
03-24-2014, 04:33 PM | #8 |
Ex-Helpdesk Junkie
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. |
03-24-2014, 06:04 PM | #9 |
Grand Sorcerer
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.
|
03-24-2014, 08:39 PM | #10 | |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
How can i do that?
Quote:
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. |
|
03-24-2014, 10:01 PM | #11 |
Well trained by Cats
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
|
the book editor (W7 x64) does not seem to allow changing the type in Save a Copy
|
03-24-2014, 10:20 PM | #12 |
Grand Sorcerer
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.
|
03-25-2014, 12:01 AM | #13 | |
Ex-Helpdesk Junkie
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:
You can also try kindlegen from Amazon, I believe they do not recreate the styles from scratch. |
|
03-25-2014, 08:40 AM | #14 | |
Addict
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
|
Quote:
i want to
|
|
03-25-2014, 08:51 AM | #15 |
Color me gone
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" |
Tags |
<calibre> tags, calibre, calibre portable, css, html import to calibre |
|
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 |