11-16-2011, 02:00 PM | #1 |
Addict
Posts: 320
Karma: 56788
Join Date: Jun 2011
Device: Kindle
|
RTF conversion
It looks like calibre sometimes inserts the following code
Code:
<br class="calibre8" /> I was wondering A) why, and B) how to make it stop. I've run across these calbire "br classes" before, too. Any general color on what they are and how they behave would be appreciated. |
11-16-2011, 02:55 PM | #2 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
A br tags signifies a line break just like a carriage return does. An empty carriage return between paragraphs in an RTF file serves the same purpose as a br tag between paragraphs in an HTML file.
|
Advert | |
|
11-16-2011, 03:45 PM | #3 | |
Well trained by Cats
Posts: 29,817
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:
.chapter { text-align: center; text-indent: 0; } doing this trick in Sigil, will include both lines in the TOC on ONE LINE |
|
11-16-2011, 04:47 PM | #4 |
Addict
Posts: 320
Karma: 56788
Join Date: Jun 2011
Device: Kindle
|
Hmmm. From what I've observed, a </br> tag is creates a single-spaced paragraph break, whereas a <p> tag creates a double spaced paragraph break.
But what I'm really wondering is what the "calibre8" thing is all about... when is it generated, and why? |
11-16-2011, 05:03 PM | #5 | |
Well trained by Cats
Posts: 29,817
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:
<br> also does not indent like the beginning line. the <br class="calibre#" /> allows that style to control lots more about a break. Line-height, or font-size (it still applies) Since Calibre does not always use the same numbers, look at the stylesheet and see what your does (or prevents from defaulting) Styles override the device defaults. |
|
Advert | |
|
11-20-2011, 08:58 PM | #6 |
Addict
Posts: 320
Karma: 56788
Join Date: Jun 2011
Device: Kindle
|
@theducks - Of course, you're absolutely right. I finally realized that the br/p difference was as much a function of the tags as it was the specific style settings! Thanks
|
11-21-2011, 09:02 AM | #7 |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
... in the HTML file's <style> definition or a style defined in a separate CSS stylesheet, if they exist. If they don't exist, the application displaying the HTML file (e.g. browser, ereader, ...) will use it's own defaults. The defaults used by various display apps tend to differ.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
conversion from .rtf problems | gondwild | Calibre | 7 | 02-06-2010 11:18 PM |
Error with RTF Conversion | daesdaemar | Calibre | 4 | 01-29-2009 05:42 PM |
rtf conversion | martingUSA | Calibre | 11 | 11-29-2008 10:38 AM |
RTF conversion. | Riocaz | iRex | 15 | 08-08-2006 11:55 AM |
RTF Conversion with Plucker | cactusjack | Reading and Management | 9 | 11-16-2004 07:44 PM |