Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2010, 05:13 AM   #1
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
Kindle inserting page breaks?

All right, I think I've spent enough time trying to figure this one out on my own; time to call in some help!

Here's my problem: I've hand-made a perfectly nice .epub file, so I know there's no junk code getting in the way. (A stripped-down version is uploaded below, so the Table of Contents is calling to a lot of chapters that I've removed due to copyright concerns, but I've preserved everything through the first chapter, which should be enough for troubleshooting.)

Calibre (version 0.7.1, if it makes a difference) seems to convert the .epub to .mobi format just fine, and when I view the .mobi version in the Calibre reader, everything looks fine -- this is the same code layout and the same conversion process I used dozens of times prior to the 2.3 Kindle update, and everything worked just fine back then.

But when I load the converted .mobi file into my Kindle, the title page text which should all be displaying on one page is instead split into two pages -- no matter how I change the font size, it always splits just after the "Falling Free" title and before the "Book 1 of the..." subtitle.

I'm having the same problem with my other books with the same code base, too, despite copy/pasting my CSS code directly from older books ported on the Kindle before the 2.3 update which had worked just fine (I haven't tried re-uploading them to see what happens in case the same bug hits them too). I would blame it on the update -- but again, this weird thing with the split remaining despite font scaling has me wondering if there might be some other reason I've missed.

Thoughts?

Last edited by december; 07-15-2010 at 09:49 AM. Reason: edited to remove the attachment after problem was solved
december is offline   Reply With Quote
Old 07-14-2010, 09:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,125
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
POst the conversion log.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 07-14-2010, 02:52 PM   #3
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
Okay, here's the conversion log for the .epub --> .mobi conversion of the full file:

Convert book 1 of 1 (Falling Free [Vorkosigan #1])
Resolved conversion options
calibre version: 0.7.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': 'c:\\users\\(username)\\appdata\\local\\temp\\cali bre_0.7.1_yxi48m.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_compress': False,
'extra_css': None,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x05123B30>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': True,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x05123E10>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\(username)\\appdata\\local\\temp\\cali bre_0.7.1_yice0w.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\(username)\Documents\E-Book Library\Calibre Archive\Bujold_ Lois McMaster\Falling Free [Vorkosigan #1] (6)\Falling Free [Vorkosigan #1] - Bujold_ Lois McMaster.epub
Parsing all content...
Parsing OEBPS/Text/Chap13.xhtml ...
Parsing OEBPS/Styles/StyleTitle.css ...
Parsing OEBPS/Text/AboutAuthor.xhtml ...
Parsing OEBPS/Text/Chap02.xhtml ...
Parsing OEBPS/Text/Chap06.xhtml ...
Parsing OEBPS/Text/Chap09.xhtml ...
Parsing OEBPS/Text/Summary.xhtml ...
Parsing OEBPS/Text/Chap15.xhtml ...
Parsing OEBPS/Text/Dedication.xhtml ...
Parsing OEBPS/Text/TOC.xhtml ...
Parsing OEBPS/Text/Chap08.xhtml ...
Parsing OEBPS/Text/Chap14.xhtml ...
Parsing OEBPS/Text/Chap12.xhtml ...
Parsing OEBPS/Text/Chap11.xhtml ...
Parsing OEBPS/Text/Chap01.xhtml ...
Parsing OEBPS/Text/Chap05.xhtml ...
Parsing OEBPS/Text/Chap04.xhtml ...
Parsing OEBPS/Text/Chap03.xhtml ...
Parsing OEBPS/Text/Chap07.xhtml ...
Parsing OEBPS/Text/Chap10.xhtml ...
Parsing OEBPS/Styles/StyleNovel.css ...
Parsing OEBPS/Text/TitlePage.xhtml ...
Parsing OEBPS/Text/Chap16.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Book 1 of the Vorkosigan Saga
Detected chapter: Chapter 1
Detected chapter: Chapter 2
Detected chapter: Chapter 3
Detected chapter: Chapter 4
Detected chapter: Chapter 5
Detected chapter: Chapter 6
Detected chapter: Chapter 7
Detected chapter: Chapter 8
Detected chapter: Chapter 9
Detected chapter: Chapter 10
Detected chapter: Chapter 11
Detected chapter: Chapter 12
Detected chapter: Chapter 13
Detected chapter: Chapter 14
Detected chapter: Chapter 15
Detected chapter: Chapter 16
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating flat CTOC ...
CNCX utilization: 1 record, 0% full
Indexing navPoints ...
Generating INDX ...
Serializing images...
MOBI output written to c:\users\(username)\appdata\local\temp\calibre_0.7 .1_77sswn.mobi
december is offline   Reply With Quote
Old 07-14-2010, 06:14 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,125
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the conversion options find the setting called insert page breaks before (or something similar) and change it to /
kovidgoyal is offline   Reply With Quote
Old 07-14-2010, 07:36 PM   #5
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
Odd... that seemed like it should have worked, but the page-break problem is still there. Tried it twice, and still no luck; just as before, it seems to be a hard break, with resizing of the text having no effect on that first page.

Should I go ahead and open a ticket for this one?
december is offline   Reply With Quote
Old 07-14-2010, 10:38 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,125
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Did you change that setting in the general preferences or the settings for the particular book. You have to change it for the particular book.
kovidgoyal is offline   Reply With Quote
Old 07-14-2010, 11:24 PM   #7
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
I changed it in both general and book-specific settings, yes. It still seems to be picking up the subtitle line ("Book 1 of the...") as a separate chapter in itself.

Here's the conversion log for the attempt. "Preprocess input file..." is checked, "/" is the input, and all other settings are held constant as before.

Quote:
Convert book 1 of 1 (Falling Free [Vorkosigan #1])
Resolved conversion options
calibre version: 0.7.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_compress': False,
'extra_css': None,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0510FB10>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': True,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x0510FDF0>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'preprocess_html': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\(username)\\appdata\\local\\temp\\cali bre_0.7.1_jfhpym.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\(username)\Documents\E-Book Library\Calibre Archive\Bujold_ Lois McMaster\Falling Free [Vorkosigan #1] (6)\Falling Free [Vorkosigan #1] - Bujold_ Lois McMaster.epub
Parsing all content...
Parsing OEBPS/Styles/StyleNovel.css ...
Parsing OEBPS/Styles/StyleTitle.css ...
Parsing OEBPS/Text/AboutAuthor.xhtml ...
Parsing OEBPS/Text/Chap02.xhtml ...
Parsing OEBPS/Text/Chap05.xhtml ...
Parsing OEBPS/Text/Chap07.xhtml ...
Parsing OEBPS/Text/Chap16.xhtml ...
Parsing OEBPS/Text/Chap13.xhtml ...
Parsing OEBPS/Text/Chap15.xhtml ...
Parsing OEBPS/Text/Dedication.xhtml ...
Parsing OEBPS/Text/TOC.xhtml ...
Parsing OEBPS/Text/Chap12.xhtml ...
Parsing OEBPS/Text/Chap03.xhtml ...
Parsing OEBPS/Text/Chap09.xhtml ...
Parsing OEBPS/Text/Chap01.xhtml ...
Parsing OEBPS/Text/Chap04.xhtml ...
Parsing OEBPS/Text/Chap06.xhtml ...
Parsing OEBPS/Text/Chap08.xhtml ...
Parsing OEBPS/Text/Chap11.xhtml ...
Parsing OEBPS/Text/Chap14.xhtml ...
Parsing OEBPS/Text/Summary.xhtml ...
Parsing OEBPS/Text/TitlePage.xhtml ...
Parsing OEBPS/Text/Chap10.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Book 1 of the Vorkosigan Saga
Detected chapter: Chapter 1
Detected chapter: Chapter 2
Detected chapter: Chapter 3
Detected chapter: Chapter 4
Detected chapter: Chapter 5
Detected chapter: Chapter 6
Detected chapter: Chapter 7
Detected chapter: Chapter 8
Detected chapter: Chapter 9
Detected chapter: Chapter 10
Detected chapter: Chapter 11
Detected chapter: Chapter 12
Detected chapter: Chapter 13
Detected chapter: Chapter 14
Detected chapter: Chapter 15
Detected chapter: Chapter 16
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating flat CTOC ...
CNCX utilization: 1 record, 0% full
Indexing navPoints ...
Generating INDX ...
Serializing images...
MOBI output written to c:\users\(username)\appdata\local\temp\calibre_0.7 .1__jutht.mobi

Last edited by december; 07-14-2010 at 11:28 PM.
december is offline   Reply With Quote
Old 07-15-2010, 01:07 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,125
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You'll have to change teh chapter detection expression as well, since taht also matches on h1 and h2 elements with the word Book in them
kovidgoyal is offline   Reply With Quote
Old 07-15-2010, 09:47 AM   #9
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
Oh, geez, do I feel stupid - that was definitely the problem! Took out the "book|" expression from the chapter detection statement, and now everything displays correctly. Hooray!

Thanks so much for bearing with me here, Kovid! It's a little thing, but it was driving me utterly crazy, and goodness only knows how long it would have taken me to figure that out on my own.

december is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page breaks in ebooks, Yes or No? nomesque General Discussions 30 06-12-2010 06:43 AM
Problem with --page-breaks-before pepak Calibre 5 10-24-2009 04:50 PM
Page breaks enarchay Calibre 18 05-31-2009 06:57 PM
eb1150 and page breaks sea2stars Fictionwise eBookwise 10 09-13-2007 01:28 PM
Page breaks in Plucker? K12 Handhelds Reading and Management 2 02-19-2005 03:05 PM


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


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