Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2010, 01:58 AM   #46
GreenMonkey
DRM hater
GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.
 
GreenMonkey's Avatar
 
Posts: 945
Karma: 2066176
Join Date: Jun 2010
Location: Michigan
Device: Nook ST glow, Kindle Voyage
Quote:
Originally Posted by ldolse View Post
Without having your rtf to test with I still have no idea what you're actually seeing. Unless you look in the html there isn't really any way to tell whether the spaces you're referring to are actually in the html or in the css styling. Itimpi and myself have asked you to check the html several times now to no avail.

I've attached an rtf file that converts fine on my system. It's the test file I used when investigating your original report about soft breaks being deleted.

This rtf converts to epub with spacing between paragraphs - but not blank lines - that's Calbre's default style. If you want to get rid of them add the following line to extra css under look and feel - note I've already explained this to you:
Code:
p {margin-top: 0em; margin-bottom: 0.3em}
Hi Idolse. Thanks for your patience.

I tried your test RTF. It behaves the same way. As in, I cannot get it to convert to epub without either getting a bunch of extra blank spaces (Default), or without the original spaces being removed (remove blank lines option). To be sure, I uninstalled Calibre 0.7.33 and re-installed up to 0.7.34.

I tried maximum line height 100%. I wasn't quite sure what this did since I didn't see much of a change.

Your CSS code does the trick with a minor change. I ended up with this:

p {margin-top: 0em; margin-bottom: 0em}

which gives me the desired results: Retaining the original look of the text with occasional whitespace for scene change, etc. Thanks! I added it as the default...hopefully it doesn't cause problems with any other filetypes or anything.

Adding blank lines between paragraphs is still a strange default in my book, but that's another topic . Your CSS code seems to be setting the paragraph margins = 0...right? That's why no blank space between paragraphs added.

This would make a better checkbox than the "remove blank lines" option IMO. That seems to be, if I understand right, add paragraph margins (blank lines), and then remove them...which results problem I started this thread about - all lines, even the ones that were there originally, being removed.

I appreciate the help. A little extra CSS code is easier than converting to filtered html in Word first.

Last edited by GreenMonkey; 12-22-2010 at 02:05 AM.
GreenMonkey is offline   Reply With Quote
Old 12-27-2010, 04:25 PM   #47
tscamera
Enthusiast
tscamera began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
Cool answer by dr.ruth

Quote:
Originally Posted by GreenMonkey View Post
Hey guys

I've noticed this on a lot of RTF files and I haven't been able to figure it out.

When I convert to EPUB, I get extra line breaks after each paragraph, that weren't in the original RTF.

¶ here stands for Paragraph break in the original RTF:

Like this in the RTF:

This is a paragraph¶
This is paragraph two.

Comes out:

This is a paragraph

This is paragraph two.



If I ask Calibre to "Remove spacing between paragraphs" under Look & Feel...it removes them. But it removes ALL breaks, then...including the ones that ARE supposed to be there.

So if I have this in the RTF:
This is a paragraph¶

This is paragraph two.

I get:

This is a paragraph.
This is paragraph two.


Any fix for this kind of behavior? I searched the forum...tried tweaking the Xpath detection stuff with a \ (even though RTF isn't HTML related). I did open the doc and turn on all formatting characters to make sure there weren't any extra breaks. Nope. Just (p).

I seem to either get: spaces between all paragraphs, or, no space ever. What I don't get is why I'm getting blank lines between paragraphs at all - they aren't present in the original RTF.
Hey,
i tried to figure out, but i get:

<body class="calibre">
<div class="calibre1">
<p class="calibre2">&nbsp;</p>

<div class="calibre1">
<p class="calibre2">Like this in the RTF:</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">This is a paragraph</p>

<p class="calibre2">This is paragraph two.</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">So if I have this in the RTF:</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">This is a paragraph</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">This is paragraph two.</p>
</div>
</div>
</body>

so, what's wrong about it?
...said by dr.ruth westheimer

so, use SIGIL or unpack the epub and post the code.
then everybody will know a bit.
tscamera is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra paragraph line when converting from LRF jhempel24 Calibre 3 08-18-2010 07:00 AM
Stripping extra line returns jwhayn Sony Reader 3 02-27-2010 06:46 PM
Odd line/paragraph breaks in epub and FB2? PKFFW Calibre 4 10-01-2009 07:49 AM
No line breaks ecpepper Amazon Kindle 3 08-09-2009 06:42 PM
Removing extra line breaks plemming Calibre 0 07-31-2008 07:50 PM


All times are GMT -4. The time now is 08:14 AM.


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