Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2011, 03: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: 299
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, 03: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,465
Karma: 986493
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
Old 11-16-2011, 04:45 PM   #3
theducks
Grand Sorcerer
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: 15,054
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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, 05: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: 299
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, 06:03 PM   #5
theducks
Grand Sorcerer
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: 15,054
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
Old 11-20-2011, 09: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: 299
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, 10:02 AM   #7
dwig
Guru
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: 982
Karma: 1382338
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro, Kindle 3/WiFi - Retired:Clie UX50, T415, ...
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conversion from .rtf problems gondwild Calibre 7 02-07-2010 12:18 AM
Error with RTF Conversion daesdaemar Calibre 4 01-29-2009 06:42 PM
rtf conversion martingUSA Calibre 11 11-29-2008 11:38 AM
RTF conversion. Riocaz iRex 15 08-08-2006 12:55 PM
RTF Conversion with Plucker cactusjack Reading and Management 9 11-16-2004 08:44 PM


All times are GMT -4. The time now is 03:13 PM.


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