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-12-2010, 03:20 PM   #1
n1ch0las
Junior Member
n1ch0las began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2010
Device: bebook one 2010 edition
spaces lost during converting to fb2 format

Hello, i dont know if this would count as a bug or has been posted here before ( i did do a search but couldn't find anything)

i have some properly formatted standard .txt files with nice spaces in between all of the appropriate lines

Kind of like this:-

chapter one

John sat on the chair.

Elsewhere joan was standing.



When i convert the files to fb2 format it removes the spaces between the lines:-

chapter one
John sat on the chair.
Elsewhere joan was standing.


i am using the latest version of calibre and have tried using all of the options on and off during conversion, if i convert to epub then the lines stay in the right places, but if i then convert the epub files to fb2 format it removes the lines.

Not sure why it is doing this but i really wanted to use fb2 format as it gives more accurate page numbers than epub

Help!
n1ch0las is offline   Reply With Quote
Old 12-12-2010, 05:32 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,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Open a ticket (So I don't forget) for FB2 to support the "Insert Blank Line" option and I will implement this functionality.
user_none is offline   Reply With Quote
Advert
Old 12-12-2010, 08:50 PM   #3
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You just opened a bug on this, but the description here and the description in the bug tracker are different.

Did you enable the 'treat each line as a paragraph' option before you converted it?

edit:
There is also an 'insert blank line' option under look and feel that might do what you want as well.
ldolse is offline   Reply With Quote
Old 12-12-2010, 08:53 PM   #4
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,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
@ldolse, I recently rewrote the FB2 output code. It's basic at this moment and does not currently support everything it used to. I plan to add support for the 'treat each line as a paragraph' option over the next few days.
user_none is offline   Reply With Quote
Old 12-12-2010, 09:07 PM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Cool, not sure I completely understand how that's even possible but I'll leave it to you
ldolse is offline   Reply With Quote
Advert
Old 12-12-2010, 10:35 PM   #6
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,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by n1ch0las View Post
use fb2 format as it gives more accurate page numbers than epub
I'm curious, how do you perceive one format having more accurate page numbers over another? Compared to what?
DoctorOhh is offline   Reply With Quote
Old 12-13-2010, 05:37 PM   #7
Zetmolm
Guru
Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.
 
Posts: 615
Karma: 2362786
Join Date: Jan 2010
Device: PocketBook Verse Pro Colour
I also prefer the fb2 page numbering. On a 6" reader, one page in fb2 more or less corresponds to one screen (depending on font size of course), whereas one page in ePub may be 2-3 screens. So in that sense fb2 page numbering is more 'accurate'.
Zetmolm is offline   Reply With Quote
Old 12-17-2010, 05:13 AM   #8
n1ch0las
Junior Member
n1ch0las began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2010
Device: bebook one 2010 edition
Quote:
Originally Posted by dwanthny View Post
I'm curious, how do you perceive one format having more accurate page numbers over another? Compared to what?
When reading a mobi formatted book or an epub, page numbers are not accurate, the amount of page numbers may be 1119, when the book may stop at 950 or so, which was starting to annoy me, ( i think its an estimate by the book based on content when opening) with the fb2 format though the layout of the page is much nicer ( numbers and title at the top) and the page numbers are completely accurate.

And i have tried every option on and off methodically when converting books, the insert line and each line as a paragraph function were both tested
n1ch0las is offline   Reply With Quote
Old 12-17-2010, 05:50 AM   #9
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The count of total pages being wrong when reading a book means there is a fault in the reading software I would think. Certainly on my devices the count is accurate, and if I dynamically change the font size I am using both the value for the current page and the total number of pages change accordingly.
itimpi is offline   Reply With Quote
Old 12-17-2010, 11:42 AM   #10
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Adobe DE based epub engines do something weird with page calculation. They create some sort of canonical version of a 'page' when the file is opened and stick with that page count no matter how you change the display. Depending on the font size you're using you could page across several user perceived pages and the ADE engine will tell you you are still on the same original page number. It's weird and I just ignore it. I think this is what the users are complaining about.
ldolse is offline   Reply With Quote
Old 12-17-2010, 06:52 PM   #11
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,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by n1ch0las View Post
When reading a mobi formatted book or an epub, page numbers are not accurate, the amount of page numbers may be 1119, when the book may stop at 950 or so, which was starting to annoy me
I have never run into that for epubs. The book *always* ends as predicated.

Quote:
Originally Posted by n1ch0las View Post
And i have tried every option on and off methodically when converting books, the insert line and each line as a paragraph function were both tested
Have you tried checking both settings at the same time? Also changing global conversion settings doesn't automatically translate to conversion setting being changed for books that had been previously converted, read this post and view attachments to it.

Quote:
Originally Posted by ldolse View Post
Adobe DE based epub engines do something weird with page calculation. They create some sort of canonical version of a 'page' when the file is opened and stick with that page count no matter how you change the display. Depending on the font size you're using you could page across several user perceived pages and the ADE engine will tell you you are still on the same original page number. It's weird and I just ignore it. I think this is what the users are complaining about.
I don't find this weird. No matter what font size you use page 124 is page 124. When the font size is larger you might need to page through 8-9 screens to get past one page. But the page doesn't change based on what font size you're using.

Basically, unless told other wise via a page map ADE creates page numbers by breaking up the data into chunks based on the following format.

From the EPUB Best Practices Guide found on Adobe's site here.

Quote:
Synthetic page names
When page map is not available in the document, Adobe Digital Editions will synthesize a page-map based on the document content. The approach used is the following:
  • Determine a compressed byte length of each resource which is referenced in the spine, subtracting any known encryption overhead (IV size)
  • Assume that there is a page for each 1024 bytes in each resource, rounding up to the nearest whole number of pages for each resource
  • To map page breaks into a resource, use the number of pages for the resource as determined in step 2, count the number of Unicode characters in the resource; distribute synthetic page breaks in the resource evenly between the characters by dividing the number of characters by the number of pages; if the number of characters don’t divide evenly among the pages, round the number of characters per page up and let the last “page” contain less characters than the rest.
I like having a relatively constant set of page numbers no matter what epub I'm reading or what font size I choose. Calibre's viewer does something similar.
DoctorOhh is offline   Reply With Quote
Old 12-17-2010, 08:37 PM   #12
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by dwanthny View Post
I don't find this weird. No matter what font size you use page 124 is page 124. When the font size is larger you might need to page through 8-9 screens to get past one page. But the page doesn't change based on what font size you're using.

Basically, unless told other wise via a page map ADE creates page numbers by breaking up the data into chunks based on the following format.

I like having a relatively constant set of page numbers no matter what epub I'm reading or what font size I choose. Calibre's viewer does something similar.
There's nothing unreasonable about that, but I think most users (including myself) think of a page as what's visible to a user on a single page turn. It's a simpler concept to understand, even if it means the number of pages changes based on the font size.

I don't personally care either way though, and perhaps I'm putting words in the other guys' mouths.
ldolse is offline   Reply With Quote
Old 12-24-2010, 05:00 AM   #13
n1ch0las
Junior Member
n1ch0las began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2010
Device: bebook one 2010 edition
pages

All i was saying was, that the reason i wanted to use fb2 as a format is that when you look at a book it will give you an accurate set of page numbers.
The epub and mobi formats used on my reader (bebook one 2010 edition) will say a book has 1150 pages when you start, when you are reading the page number will change with every page turn, but when you get to about 1000 pages in the book will end, it will go from page 999 to page 1150 on one turn and the book is finished.
It was a minor gripe with the way mobi and epub books are displayed and it was not the thrust of my original question, i only mentioned it as a reason for using fb2 as a format; which by the way, is a much better format on my reader, it has more options for changing the page layout, it keeps the time on the page and has a faster rendering time for page turns!

Since this thread started Calibre has been updated and has fixed the original problem with the formatting.

Thanks
n1ch0las is offline   Reply With Quote
Old 12-24-2010, 06:11 AM   #14
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,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by n1ch0las View Post
The epub and mobi formats used on my reader (bebook one 2010 edition) will say a book has 1150 pages when you start, when you are reading the page number will change with every page turn, but when you get to about 1000 pages in the book will end, it will go from page 999 to page 1150 on one turn and the book is finished.
If my reader jumped like that I might search for a different format too. Epub on Sony's don't end abruptly like that. Maybe someday bebook will update the firmware to correct this.

Quote:
Originally Posted by n1ch0las View Post
Since this thread started Calibre has been updated and has fixed the original problem with the formatting.
I'm glad to here it's been corrected. Kudos to the developers.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failure converting zip to fb2 rbruce1314 Calibre 2 11-17-2010 05:39 PM
Converting PDF - FB2 issue (0.72) kgn Calibre 3 06-16-2010 07:22 AM
error converting from fb2 format jomaweb Calibre 3 04-23-2010 05:41 AM
.fb2 format Clemente Which one should I buy? 10 02-25-2010 02:56 AM
TOC not created converting from FB2 regul8or Calibre 1 08-03-2009 12:26 PM


All times are GMT -4. The time now is 12:37 PM.


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