11-04-2010, 01:51 PM | #1 |
Junior Member
Posts: 2
Karma: 12
Join Date: Nov 2010
Device: Kindle 3
|
PDB converting ignores blank lines
Hi all, I'm a new owner of a Kindle, and I thought I'd give it a try with some books in my language (Czech), converting them in Calibre. I grabbed one ebook that's in PDB format. Now the problem is, no matter what options I set for the conversion to MOBI, I can never produce the formatting that's in the original printed book:
Code:
Paragraph 1........ .......................end. Paragraph 2........ .......................end. Paragraph 3........ .......................end. In the original file, this kind of break is indicated by a blank line between lines 2 and 3. Is there any way to force Calibre to turn every single line it encounters, even blank ones, to a paragraph? |
11-08-2010, 08:15 AM | #2 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2010
Location: Germany
Device: Kindle3
|
I can't answer this, Tom, but I'm sure someone can! :-)
And welcome to the forums! |
Advert | |
|
11-09-2010, 03:41 AM | #3 |
Junior Member
Posts: 2
Karma: 12
Join Date: Nov 2010
Device: Kindle 3
|
This is the solution I ended up using:
- open the PDB in PSPad - Replace reg. exp. ^(.+)$ with <p>$1</p> (turns all lines into paragraphs) - Replace reg. exp ^$ with <br/> (turns all blank lines into line breaks) - add a HTML head for the additional meta info including encoding - save as HTML and import to Calibre This will keep the original formatting in the final MOBI output. |
11-26-2010, 07:53 AM | #4 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2010
Device: iPod touch, ipad, android phone
|
Word > PDB
Could this solution work for the same problem, but from word (nicely formatted ebook) to pdb? I lose all formatting, sometimes it's even difficult to read.
I also use eReader for ipod touch. Thanks. |
11-26-2010, 09:27 PM | #5 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
pdb/ereader is an extremely archaic format that supports very little in the way formatting features. If you're creating ebooks to read on the itouch then use epub and Stanza. Output html from MS Word, Convert to epub, and then use Calibre's content server to serve the file to Stanza.
|
Advert | |
|
11-26-2010, 11:02 PM | #6 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
If your iDevice has iOS4 installed, then you may also want to consider using iBooks as the reader as Calibre has inbuilt integration to iBooks via iTunes. It all depends on whether transferring books via WiFi/3G or USB is more important that is likely to be a deciding factor.
|
12-03-2010, 04:39 AM | #7 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2010
Device: iPod touch, ipad, android phone
|
Hi guys!
Thanks so much for the replies! I understand that the Pdb is kind of a very simple format. Actually, I've used stanza for a long long time. But stanza lacks a feature that is extremely important to me: highlighting (yes, stanza does have it, but it's too complicated to get something highlighted in stanza). That's why I changed to eReader. And about ibooks, I really don't like it. Its features are really poor if you compare it to stanza or erader. But thanks anyway, guys! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) | David Derrico | Calibre | 5 | 08-04-2010 12:13 AM |
Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM |
Removing blank lines between paragraphs? | corroonb | Workshop | 3 | 08-13-2009 04:23 PM |
Insert Blank Lines Between Paragraphs | Timoleon | Calibre | 14 | 03-22-2009 02:43 PM |
Blank Lines | vivaldirules | Upload Help | 55 | 03-02-2009 03:17 PM |