07-14-2010, 05:13 AM | #1 |
Nameless Being
|
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 |
07-14-2010, 09:50 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
POst the conversion log.
|
Advert | |
|
07-14-2010, 02:52 PM | #3 |
Nameless Being
|
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 |
07-14-2010, 06:14 PM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
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 /
|
07-14-2010, 07:36 PM | #5 |
Nameless Being
|
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? |
Advert | |
|
07-14-2010, 10:38 PM | #6 |
creator of calibre
Posts: 43,860
Karma: 22666666
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.
|
07-14-2010, 11:24 PM | #7 | |
Nameless Being
|
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:
Last edited by december; 07-14-2010 at 11:28 PM. |
|
07-15-2010, 01:07 AM | #8 |
creator of calibre
Posts: 43,860
Karma: 22666666
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
|
07-15-2010, 09:47 AM | #9 |
Nameless Being
|
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. |
|
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 |