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 02-07-2011, 04:27 AM   #16
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by ChristopherTD View Post
Generally my experience has been that soft scene breaks are lost and just the normal paragraph spacing appears. But it has been a long time since I converted my PDB books, so I might wait on 0.7.45 and try some of the new goodness!
If I read it right the preliminary new goodness is in 0.7.44
Quote:
New Features
  • Heuristics: Improved Scene break detection and add option to control what scene breaks are replaced by.
DoctorOhh is offline   Reply With Quote
Old 02-07-2011, 09:30 AM   #17
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
0.7.44 should include the PML input changes to retain soft scene breaks. 0.7.45 has some tweaks tp make detection mre reliable. As always if there are issues this is good place to discus and if there is a bug, the bug tracker is the place to report bugs so they dont get lost.

Also, with 0.7.45 the soft scene breaks will be preserved in PML (eReader PDB) output too.

I did notice that the eReader software (I didnt check with the B&N branded one) will condense 2(?) blank lines into one. So a PML document will need at least 3 blank lines for soft scene breaks. As noted earlier \c \c seems to be often used with soft scene breaks.
user_none is offline   Reply With Quote
Old 02-09-2011, 03:46 AM   #18
diamante
piedra preciosa
diamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura about
 
Posts: 51
Karma: 4170
Join Date: Jan 2011
Location: Boston, Massachusetts
Device: Kindle Oasis 6", Kindle Voyage, Sony PRS-350, etc.
Question

Now I've converted a series of eReader PDB e-books in which there are no soft scene breaks at all. In the original e-books, the first paragraph of each chapter is not indented while other paragraphs have first-line indentation. When I convert the PDBs to EPUB format, the first paragraph of each chapter looks fine, but instead of first-line indentation all other paragraphs are fully indented from the left margin.

Is this a bug, or do I just need to change some settings to get the EPUBs to come out like the originals? In addition to only indenting the first line of each paragraph except the first paragraph of each chapter, can I set Calibre not to insert extra space between paragraphs? This is not as important as the indentation issue, of course, but I'd like to see if I can get the converted e-books to look as much like the originals as possible.
diamante is offline   Reply With Quote
Old 02-09-2011, 06:55 AM   #19
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
Quote:
Originally Posted by diamante View Post
When I convert the PDBs to EPUB format, the first paragraph of each chapter looks fine, but instead of first-line indentation all other paragraphs are fully indented from the left margin.
Sounds like a bug but I can't tell without the file. Please open a ticket and attach the file.


My guess is your book is doing something like:

Code:
\tO\tnce upon at time...
I've seen books that do this and while it sometimes works depending on the reader but it's invalid. According to the PML spec, "\t = Indent block. Start at beginning of a line, close with \t at end of a line." Invalid formatting is pretty much a guess of how it should look.
user_none is offline   Reply With Quote
Old 02-10-2011, 06:15 AM   #20
diamante
piedra preciosa
diamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura about
 
Posts: 51
Karma: 4170
Join Date: Jan 2011
Location: Boston, Massachusetts
Device: Kindle Oasis 6", Kindle Voyage, Sony PRS-350, etc.
Quote:
Originally Posted by user_none View Post
Sounds like a bug but I can't tell without the file. Please open a ticket and attach the file.
The original file is DRM-protected, but here is a sample from the PML, cut and pasted from a text editor (with my comments as the "text"); this e-book is using tab stops instead of first-line indentation:

Code:
This is the last sentence of a chapter.
\p 


\X1\B\c2
\c\B\X1Here begins the first paragraph of the next chapter. This paragraph is not indented.
\T="10%"Subsequent paragraphs look like this. They are supposed to have first-line indentation (and they appear to in eReader; in eBook Studio they have a 10% tab stop at the beginning of each paragraph, but no indentation) but when converted they are block indented.
\T="10%"New paragraph here, same story for all paragraphs except the first paragraph of each chapter.
diamante is offline   Reply With Quote
Old 02-10-2011, 09:09 PM   #21
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
I've pushed up changes to the handling of \t and \T tags. There is no way to get them 100% mapped to XHTML unfortunately. \t and \T can do some very strange things and are highly dependent fix positions within the viewer screen. So, only certain, common cases are handled.
  • \t starting and ending a line (or another line) will create a hard margin indent.
  • \t starting a line and ending anywhere before the end will create a text indent.
  • \T starting a line will create a text indent.
  • \t sets and \T inside of a line will be ignored.

Code:
\tText ... end of Text\t
will produce

Code:
    Text
    ...
    end of text
---

Code:
\tText ...
end of Text\t
will produce

Code:
    Text
    ...
    end of text
---

Code:
\tT\text ... end of Text
will produce

Code:
    Text
...
end of text
---


Code:
\T="5%"Text ... end of Text
will produce

Code:
    Text
...
end of text
---

Code:
Text ... \tend\t of\T="5%" Text
will produce

Code:
Text
...
end of Text
* I'm using the ... in place of a long string of text to denote how it will appear when wrapped.
user_none is offline   Reply With Quote
Old 02-11-2011, 01:58 AM   #22
diamante
piedra preciosa
diamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura about
 
Posts: 51
Karma: 4170
Join Date: Jan 2011
Location: Boston, Massachusetts
Device: Kindle Oasis 6", Kindle Voyage, Sony PRS-350, etc.
That looks great! Thanks very much for addressing the issue, and for the detailed explanation.
diamante is offline   Reply With Quote
Old 02-11-2011, 09:58 AM   #23
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
Quote:
Originally Posted by dwig View Post
I've found both what I think of as "soft" scene breaks (extra blank space) and "hard" scene breaks (extra space with an ornament, three asterisks, or horizontal rule) in books. Usually a book uses one style or the other, but I've seen the occasional book, both printed and ebook, that use both, one indicating a small jump and the other a larger one.
With print books at least, it has been my experience that there is rarely any difference between what you're calling a soft break and a hard break other than where they happen to fall on a page. Where a break would fall somewhere within a page, these breaks typically just have a larger space, though some books couple this with no indentation on the first new paragraph following the break. The breaks with the asterisks or some other symbol are almost always used only where the break falls at the very top or bottom of a page. Other than that, there's typically not really any difference in the severity or importance of the break. Far more often than not, it's just a positional/typesetting thing and most books that I read use both.

Now, that's not to say some certain book or publisher may not use this differently and I'm certain I've read the occasional book that does, but I think these are in the minority.

- Byron
bfollowell is offline   Reply With Quote
Old 02-11-2011, 11:33 AM   #24
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
Both are scene breaks and serve the same purpose. However, they are indicated using differnt typographical techniques. We are making the distinction because we have to use different techiques to determine if we have encountered one or the other when parsing the text.
user_none is offline   Reply With Quote
Old 02-12-2011, 06:24 PM   #25
diamante
piedra preciosa
diamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura aboutdiamante has a spectacular aura about
 
Posts: 51
Karma: 4170
Join Date: Jan 2011
Location: Boston, Massachusetts
Device: Kindle Oasis 6", Kindle Voyage, Sony PRS-350, etc.
Once again, problem fixed. I'm loving Calibre and user_none! Thank you thank you thank you.
diamante is offline   Reply With Quote
Reply

Tags
ereader pdb conversion, horizontal rule, paragraph spacing, pdb to epub, pdb to mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting eReader books mjmcleod Calibre 73 12-18-2012 07:41 AM
PDB file (eReader) - How to keep the formatting? Juliepac Other formats 0 11-26-2010 07:38 AM
eReader (pdb) purchased ebooks on B&N eReader on iPhone? bthoven Reading and Management 5 12-23-2009 06:52 AM
Losing formatting when converting PDB Edwin Fong Calibre 5 10-25-2009 07:20 PM
Converting books to eReader with Dropbook Robotech_Master Workshop 1 12-23-2008 12:46 PM


All times are GMT -4. The time now is 04:29 AM.


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