09-08-2012, 07:56 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2012
Device: iRiver Story HD Basic
|
Problem with chapter headings from Caliber 0.8.66 onwards
Hi,
I've been using Calibre since version 0.8.40 to produce epubs on my own, and everything worked perfectly. I use an iRiver Story HD (Basic) and a Sony PRS-T1. My conversion output format ist epub for generic e-ink devices. But starting with Calibre 0.8.66 all the chapter headings are bold & UNDERLINED instead of bold only on the iRiver (on the iRiver only, that is). I checked the stylesheet.css files in the epub files and found that from Calibre 0.8.66 (definititely!) onwards they are generated differently. Using the same ZIP-source for the conversion, I get the following: Calibre 0.8.66: [snip] .calibre { background-color: white; display: block; font-size: 1em; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; padding-left: 0; padding-right: 0 } .calibre1 { font-weight: bolder } .calibre10 { display: block } .calibre11 { display: block; font-family: "Times New Roman"; font-size: 2em; font-weight: bold; line-height: 1.2; margin-bottom: 18pt; margin-left: 21.55pt; margin-right: 0; margin-top: 12pt; text-indent: -21.55pt } .calibre12 { color: inherit; cursor: inherit; line-height: 1.2; text-decoration: inherit } .calibre13 { line-height: 1.2 } .calibre14 { display: block; font-family: "Times New Roman"; font-size: 1.29167em; font-weight: bold; line-height: 1.2; margin-bottom: 12pt; margin-left: 0; margin-right: 0; margin-top: 24pt; page-break-after: avoid } .calibre15 { font-style: italic } .calibre16 { text-decoration: underline } [....] The corresponding html-file with a heading looks like this ("Lektion 1 ..." is displayed in large, but not underlined letters, as I want it) : <?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="Microsoft Office HTML Filter 2.0" name="Generator"/> <meta content="Microsoft Word 9" name="Originator"/> <title>My Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link href="stylesheet.css" type="text/css" rel="stylesheet"/> <link href="page_styles.css" type="text/css" rel="stylesheet"/> </head> <body vlink="purple" link="blue" class="calibre"> <h1 id="calibre_toc_2" class="calibre11"><a name="_Toc331864474" class="calibre12" id="_Toc331864474"><span lang="EN" class="calibre13">Lektion 1: Einleitung</span></a></h1> [....] But now Calibre 0.8.67 produces this: [snip] .calibre { background-color: white; display: block; font-size: 1em; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; padding-left: 0; padding-right: 0 } .calibre1 { font-weight: bolder } .calibre10 { display: block; font-family: "Times New Roman"; font-size: 2em; font-weight: bold; line-height: 1.2; margin-bottom: 18pt; margin-left: 21.55pt; margin-right: 0; margin-top: 12pt; text-indent: -21.55pt } .calibre11 { line-height: 1.2 } .calibre12 { display: block; font-family: "Times New Roman"; font-size: 1.29167em; font-weight: bold; line-height: 1.2; margin-bottom: 12pt; margin-left: 0; margin-right: 0; margin-top: 24pt; page-break-after: avoid } .calibre13 { font-style: italic } .calibre14 { text-decoration: underline } .calibre15 { display: block; font-family: "Times New Roman"; font-size: 1em; font-weight: bold; margin-bottom: 6pt; margin-left: 0; margin-right: 0; margin-top: 12pt; page-break-after: avoid } .calibre16 { display: block; font-family: "Times New Roman"; font-size: 1.66667em; font-weight: bold; line-height: 1.2; margin-bottom: 12pt; margin-left: 0; margin-right: 0; margin-top: 30pt; page-break-after: avoid } [and so on] The corresponding html-file with a heading looks like this ("Lektion 1 ..." is displayed in large, but UNDERLINED letters, as I want it) : <?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="Microsoft Office HTML Filter 2.0" name="Generator"/> <meta content="Microsoft Word 9" name="Originator"/> <title>My Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link href="stylesheet.css" type="text/css" rel="stylesheet"/> <link href="page_styles.css" type="text/css" rel="stylesheet"/> </head> <body vlink="purple" link="blue" class="calibre"> <h1 id="calibre_toc_2" class="calibre10"><a name="_Toc331864474" class="calibre11" id="_Toc331864474"><span lang="EN" class="calibre11">Lektion 1: Einleitung</span></a></h1> [...] Do you notice the differences in the usage of "text-decoration: inherit" and the different generation of .calibre* styles? Maybe this causes the iRiver the behave erratically. I had to fall back to Calibre 0.8.65, which works perfectly for me. Please note again: The Sony PRS-T1 and the Calibre ebook viewer are not affected by this, only the iRiver, but the support of iRiver is literally non-existent. I'm not an expert on CSS, so I need your advice. Please help. Any ideas? Is there any tweak available? Thanks, Froebisch. |
09-08-2012, 08:32 AM | #2 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can use an appropriate rule in extra css to override it. Something like
a { text-decoration: none } or more specifically: h1 a { text-decoration: none } |
Advert | |
|
09-09-2012, 04:12 PM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2012
Device: iRiver Story HD Basic
|
Thanks for your quick response!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre: Chapter Headings | Paxman53 | Introduce Yourself | 5 | 10-22-2011 10:13 AM |
Chapter Headings | Paxman53 | Conversion | 3 | 10-12-2011 01:31 PM |
Chapter Headings on their own page? Help! | Lee5150 | Calibre | 3 | 10-06-2011 09:12 AM |
Why H1 and H2 Chapter Headings? | Ransom | Calibre | 11 | 08-10-2011 05:29 PM |
Help converting chapter headings | p3aul | Conversion | 6 | 04-03-2011 01:56 PM |