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 07-20-2011, 04:30 AM   #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
Formatting problems from HTM (ZIP) to RTF

I generally do proofing and formatting corrections in RTF, but have run into a snag recently in HTM-to-RTF. I'm hoping one of the resident geniuses can sort me out.

It boils down to this: converting from HTM to RTF, an extra line is added between paragraphs.

Code:
<p>some text.</p>
<p>some more text. </p>
yields:
some text.

some more text.

instead of:
some text.
some more text.

I checked off the "Remove spacing between paragraphs" box in the Conversion dialog, but that didn't make a darn bit of difference one way or another.

I have that perfectly dangerous level of computer savvy: not enough to achieve what I want to, but just enough to make real hash of things. Any help here would be appreciated.
ElMiko is offline   Reply With Quote
Old 07-20-2011, 09:48 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by ElMiko View Post
I generally do proofing and formatting corrections in RTF,
RTF is simple, and offers a few more formatting options than TXT, but it's not used much and not supported well. I used to use it, too, but I'd suggest that you might want to switch to using EPUB or HTML directly.

Quote:
It boils down to this: converting from HTM to RTF, an extra line is added between paragraphs.

Code:
<p>some text.</p>
<p>some more text. </p>
That code is HTML, not RTF, and it has no "extra line" so you're not actually getting an extra line. You are probably seeing a formatting line spacing issue in CSS or in your reader's display settings. Where do you see this extra line?
Starson17 is offline   Reply With Quote
Advert
Old 07-20-2011, 12:16 PM   #3
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
Quote:
Originally Posted by Starson17 View Post
That code is HTML, not RTF, and it has no "extra line" so you're not actually getting an extra line. You are probably seeing a formatting line spacing issue in CSS or in your reader's display settings. Where do you see this extra line?
Thanks for the response.

Yes, I know it's HTM -- the code I gave was the input. Which is why I'm trying to figure out why that input is inserting a line break into the RTF document (the output) that isn't indicated by the input. And I can assure you, there is an extra line being inserted during the conversion process. However, it is gratifying to know that you agree: based on that code, it should not be adding additional lines between paragraphs. The question is: why is Calibre doing it, and how can I make it stop?

As to editing ebooks in EPUB format, I haven't found a program that is intuitive enough for me to grasp it. As to editing the HTM directly (in a text editor, I presume), there are some formatting operations that I could conceivably perform, but again, my comfort level is such that I would vastly prefer to do the bulk of the editing in RTF.

Again, thanks in advance for any insight you guys may be able to add.
ElMiko is offline   Reply With Quote
Old 07-20-2011, 12:44 PM   #4
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
When you have a paragraph tag, it is supposed to add a line in between. That's how you tell paragraphs apart.

Maybe you really wanted a br tag, instead?
susan_cassidy is offline   Reply With Quote
Old 07-20-2011, 02:00 PM   #5
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by ElMiko View Post
Thanks for the response.
Yes, I know it's HTM -- the code I gave was the input.
OK, if that's the input then Susan has your answer. The HTM->RTF conversion will treat a <p> tag as defining a block of paragraph text and the standard is to put two returns at the end of each paragraph. If only one is used, you would need some other way to see where the paragraph breaks (initial indent, etc.).

The conversion code is working as intended.
Starson17 is offline   Reply With Quote
Advert
Reply

Tags
conversion, htm, paragraph spacing, rtf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
htm and html show as Zip format? charlie94 Calibre 6 07-19-2010 01:44 PM
Bug, calibre adding .htm ebooks as ZIP ? carpii Calibre 3 02-27-2010 04:58 PM
RTF formatting question Amalthia Workshop 6 09-17-2009 06:07 PM
RTF formatting problems Chai_kovsky Sony Reader 1 02-02-2007 11:41 PM
RTF formatting questions kenbaldwin Sony Reader 7 10-30-2006 12:48 PM


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


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