Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2011, 02:00 PM   #1
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
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" />
into empty carriage returns between paragraphs when converting from RTF to anything else.

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.
ElMiko is offline   Reply With Quote
Old 11-16-2011, 02:55 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
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.
user_none is offline   Reply With Quote
Advert
Old 11-16-2011, 03:45 PM   #3
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,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:
Originally Posted by ElMiko View Post
It looks like calibre sometimes inserts the following code
Code:
<br class="calibre8" />
into empty carriage returns between paragraphs when converting from RTF to anything else.

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.
<h3 class="chapter"> Chapter 1 <br />A Subtitle Underneath</h3>


.chapter {
text-align: center;
text-indent: 0;
}


doing this trick in Sigil, will include both lines in the TOC on ONE LINE
theducks is offline   Reply With Quote
Old 11-16-2011, 04:47 PM   #4
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
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?
ElMiko is offline   Reply With Quote
Old 11-16-2011, 05:03 PM   #5
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,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:
Originally Posted by ElMiko View Post
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?
<p> creates whatever top and bottom margins are set.
<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.
theducks is offline   Reply With Quote
Advert
Old 11-20-2011, 08:58 PM   #6
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
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
ElMiko is offline   Reply With Quote
Old 11-21-2011, 09:02 AM   #7
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by theducks View Post
<p> creates whatever top and bottom margins are set ...
... 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.
dwig is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 01:57 PM.


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