|
|
#1 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2
Karma: 2010
Join Date: Jun 2016
Location: Philadelphia, PA
Device: Samsung Tablet, Windows PC
|
Calibre Conversion Removes Original Paragraph Styles
When I convert an E-Book to the ePUB format from some other format (Mobi or AZW3, for example), Calibre creates a completely brand new set of paragraph styles, and it also adds a set of Calibre style classes. All of the original paragraph styles are removed from the converted E-Book.
Often, there are so many new Calibre paragraph style codes (Calibre2 through Calibre30, for example), that editing the new ePUB book is nearly impossible for me. I can't figure out which Calibre styles are for Heading1, Heading2, the Table of Contents, and the body text. Also, I don't understand why there must be Calibre style classes as well as Calibre paragraph styles. Question: Is there any way to make Calibre just accept the original paragraph style names, leaving those names alone while converting a book to ePUB? This would make life so much easier. Thanks for your help. |
|
|
|
|
|
#2 |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,235
Karma: 174315444
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
|
|
|
|
#4 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Someone feel free to contradict me if I've got any of the following wrong. A mobi does not contain any style class names so a mobi->epub conversion has no choice other than create new class names for the epub, usually "calibren" plus "bold" and "italic" as span classes. Calibre always assigns a class to 'bare' tags, e.g. <body> or <h2> will end up as <body class="calibren"> and <h2 class="calibren"> after conversion. Calibre always flattens CSS so it will not retain styling like p+p {text-indent:1em} or h2>p{...}. They will be converted to new calibren classes. And also ... I think if calibre finds, say, 5 style class names, all with the same style content, 4 of the class names will be removed during conversion and the first class name used for all of them. Other than the above my experience is that these days calibre does a reasonable job of trying to retain style class names. For example, see the attached image of a Before vs. After analysis of tag/class combos after an epub->epub conversion of a random book in my library. |
|
|
|
|
|
|
#5 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,235
Karma: 174315444
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| classes, conversion, styles |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there a way to keep paragraph indents in Calibre epub>docx conversion? | Gregg Bell | Conversion | 3 | 02-09-2017 08:40 PM |
| I lose paragraph spacing in epub>docx Calibre conversion | Gregg Bell | Conversion | 9 | 02-09-2017 08:40 PM |
| Conversion removes all my edits in book | LucyOne | Conversion | 2 | 04-16-2014 06:45 AM |
| Mobi conversion removes borders | Hekate | Conversion | 6 | 08-21-2013 11:11 AM |
| Question: paragraph spacing and CSS styles | rhino79 | ePub | 3 | 05-06-2013 06:06 PM |