![]() |
#1 |
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
Table of contents does not have all entries
Hi,
I'm new here. I have a book created with LibreOffice (file.odt), which I convert to epub using Calibre. The problem I have is that the epub, when viewed with the Calibre epub viewer, limits the table of content to 50 entries (and the same in my kobo touch reader when uploaded). After noticing this, in the conversion dialog, Table of content section, I change the number of links from the default 50 to 70, convert again, but it doesn't work. This happens with 4 books made from the same template. After reading the sticky here, that you want a sample file to reproduce the problem, I create a copy of the book, empty its contents, fill it again with only chapter lines (Heading 2 style), up to 60 such lines. Like this: Code:
Title Author En un lugar de La Mancha (text body style) Heading 1 (Heading 1 style) 01 uno (Heading 2 style) En un lugar de La Mancha... (text body style) 02 dos (Heading 2 style) En un lugar de La Mancha (text body style) ... etc .... 60 diez (Heading 2 style) En un lugar de La Mancha (text body style) table of contents Where should I look? I'm using Calibre 0.9.30 running on Linux (openSUSE 12.1), installed directly using the instructions at http://calibre-ebook.com/download_linux. Thanks. |
![]() |
![]() |
![]() |
#2 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Go to Preferences - Common Options - Table of Contents and change the TOC link limit from 50 to whatever you like.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
Thanks!
I tried this immediately. I set the default to 70 entries. Converted again the book, (clicked "restore to defaults on the table of contents, which changed the number to 70), and all the entries appeared on view on the resulting epub. Fantastic! However, I did the same conversion on the 3 other similar books (same template, it is a series), and these were again trimmed to 50 entries. I exited calibre, changed default settings to 60, tried the conversion on the second book, again trimmed at 50. (Baffled) |
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,631
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I think you will need to hit the reset default (Alt/D) on all such books Or you can do it on multiple books - if you uncheck the check box top left then the defaults wil be applied Good luck BR |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
BetterRed:
Thanks, tried Alt/D, checked that the content section says that the limit is 70, converted, viewed the file: still cut at 50. Only the first file got past the limit, the first one. The rest, no way. kovidgoyal: No, these files have no DRM at all. They are my own .odt files that I'm converting to .epub. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |||
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
Table of contents does not have all entries
Oh, I see! Sorry, did not notice the link.
Quote:
Quote:
Still, the output has 50 contents entries. Quote:
Code:
Convert book 1 of 1 (Patente de corso - 2012) Resolved conversion options calibre version: 0.9.30 {'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(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'/tmp/calibre_0.9.30_tmp_jareCu/EwbdWR.jpeg', 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_split_on_page_breaks': False, 'duplicate_links_in_toc': False, 'embed_font_family': None, 'enable_heuristics': False, 'epub_flatten': False, 'extra_css': None, 'extract_to': None, 'filter_css': u'', 'fix_indents': True, 'flow_size': 260, 'font_size_mapping': None, 'format_scene_breaks': True, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x111d810>, 'insert_blank_line': False, 'insert_blank_line_size': 0.5, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': True, '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, 'markup_chapter_headings': True, 'max_toc_links': 70, 'minimum_line_height': 120.0, 'no_chapters_in_toc': False, 'no_default_epub_cover': False, 'no_inline_navbars': False, 'no_svg_cover': False, 'output_profile': <calibre.customize.profiles.KoboReaderOutput object at 0x111df90>, 'page_breaks_before': u'/', 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': False, 'pretty_print': True, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/tmp/calibre_0.9.30_tmp_jareCu/z8_jnL.opf', 'remove_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': True, 'replace_scene_breaks': u'', 'search_replace': '[]', 'series': None, 'series_index': None, 'smarten_punctuation': False, 'sr1_replace': None, 'sr1_search': None, 'sr2_replace': None, 'sr2_search': None, 'sr3_replace': None, 'sr3_search': None, 'start_reading_at': None, 'subset_embedded_fonts': False, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: EPUB Input running on /tmp/calibre_0.9.30_tmp_jareCu/ZwH85c.epub Found HTML cover titlepage.xhtml Parsing all content... Parsing index_split_053.xhtml ... Parsing index_split_007.xhtml ... Parsing index_split_041.xhtml ... Parsing index_split_042.xhtml ... Parsing index_split_003.xhtml ... Parsing index_split_000.xhtml ... Parsing index_split_024.xhtml ... Parsing index_split_008.xhtml ... Parsing index_split_040.xhtml ... Parsing index_split_030.xhtml ... Parsing index_split_043.xhtml ... Parsing index_split_037.xhtml ... Parsing index_split_055.xhtml ... Parsing index_split_029.xhtml ... Parsing index_split_011.xhtml ... Parsing index_split_048.xhtml ... Parsing index_split_052.xhtml ... Parsing page_styles.css ... Parsing index_split_039.xhtml ... Parsing index_split_044.xhtml ... Parsing index_split_006.xhtml ... Parsing index_split_001.xhtml ... Parsing index_split_016.xhtml ... Parsing index_split_022.xhtml ... Parsing index_split_010.xhtml ... Parsing index_split_038.xhtml ... Parsing index_split_002.xhtml ... Parsing index_split_027.xhtml ... Parsing index_split_017.xhtml ... Parsing index_split_047.xhtml ... Parsing index_split_054.xhtml ... Parsing index_split_051.xhtml ... Parsing index_split_018.xhtml ... Parsing index_split_031.xhtml ... Parsing index_split_009.xhtml ... Parsing index_split_019.xhtml ... Parsing index_split_028.xhtml ... Parsing index_split_020.xhtml ... Parsing index_split_036.xhtml ... Parsing titlepage.xhtml ... Parsing stylesheet.css ... Parsing index_split_033.xhtml ... Parsing index_split_021.xhtml ... Parsing index_split_013.xhtml ... Parsing index_split_046.xhtml ... Parsing index_split_050.xhtml ... Parsing index_split_005.xhtml ... Parsing index_split_035.xhtml ... Parsing index_split_004.xhtml ... Parsing index_split_023.xhtml ... Parsing index_split_026.xhtml ... Parsing index_split_014.xhtml ... Parsing index_split_034.xhtml ... Parsing index_split_032.xhtml ... Parsing index_split_015.xhtml ... Parsing index_split_025.xhtml ... Parsing index_split_012.xhtml ... Parsing index_split_045.xhtml ... Parsing index_split_049.xhtml ... Reading TOC from NCX... Merging user specified metadata... Detecting structure... Flattening CSS and remapping font sizes... Source base font size is 12.00000pt Removing fake margins... Found 204 items of level: p_1 p_1 left margin stats: Counter({u'0': 148, u'4.99mm': 53, u'9.98mm': 3}) p_1 right margin stats: Counter({u'0': 204}) Cleaning up manifest... Trimming unused files from manifest... Trimming u'cover1.jpeg' from manifest Trimming u'titlepage.xhtml' from manifest Creating EPUB Output... Splitting markup on page breaks and flow limits, if any... Looking for large trees in index_split_053.xhtml... No large trees found Looking for large trees in index_split_007.xhtml... No large trees found Looking for large trees in index_split_041.xhtml... No large trees found Looking for large trees in index_split_042.xhtml... No large trees found Looking for large trees in index_split_003.xhtml... No large trees found Looking for large trees in index_split_000.xhtml... No large trees found Looking for large trees in index_split_024.xhtml... No large trees found Looking for large trees in index_split_008.xhtml... No large trees found Looking for large trees in index_split_040.xhtml... No large trees found Looking for large trees in index_split_030.xhtml... No large trees found Looking for large trees in index_split_043.xhtml... No large trees found Looking for large trees in index_split_037.xhtml... No large trees found Looking for large trees in index_split_055.xhtml... No large trees found Looking for large trees in index_split_029.xhtml... No large trees found Looking for large trees in index_split_011.xhtml... No large trees found Looking for large trees in index_split_048.xhtml... No large trees found Looking for large trees in index_split_052.xhtml... No large trees found Looking for large trees in index_split_039.xhtml... No large trees found Looking for large trees in index_split_044.xhtml... No large trees found Looking for large trees in index_split_006.xhtml... No large trees found Looking for large trees in index_split_001.xhtml... No large trees found Looking for large trees in index_split_016.xhtml... No large trees found Looking for large trees in index_split_022.xhtml... No large trees found Looking for large trees in index_split_010.xhtml... No large trees found Looking for large trees in index_split_038.xhtml... No large trees found Looking for large trees in index_split_002.xhtml... No large trees found Looking for large trees in index_split_027.xhtml... No large trees found Looking for large trees in index_split_017.xhtml... No large trees found Looking for large trees in index_split_047.xhtml... No large trees found Looking for large trees in index_split_054.xhtml... No large trees found Looking for large trees in index_split_051.xhtml... No large trees found Looking for large trees in index_split_018.xhtml... No large trees found Looking for large trees in index_split_031.xhtml... No large trees found Looking for large trees in index_split_009.xhtml... No large trees found Looking for large trees in index_split_019.xhtml... No large trees found Looking for large trees in index_split_028.xhtml... No large trees found Looking for large trees in index_split_020.xhtml... No large trees found Looking for large trees in index_split_036.xhtml... No large trees found Looking for large trees in index_split_033.xhtml... No large trees found Looking for large trees in index_split_021.xhtml... No large trees found Looking for large trees in index_split_013.xhtml... No large trees found Looking for large trees in index_split_046.xhtml... No large trees found Looking for large trees in index_split_050.xhtml... No large trees found Looking for large trees in index_split_005.xhtml... No large trees found Looking for large trees in index_split_035.xhtml... No large trees found Looking for large trees in index_split_004.xhtml... No large trees found Looking for large trees in index_split_023.xhtml... No large trees found Looking for large trees in index_split_026.xhtml... No large trees found Looking for large trees in index_split_014.xhtml... No large trees found Looking for large trees in index_split_034.xhtml... No large trees found Looking for large trees in index_split_032.xhtml... No large trees found Looking for large trees in index_split_015.xhtml... No large trees found Looking for large trees in index_split_025.xhtml... No large trees found Looking for large trees in index_split_012.xhtml... No large trees found Looking for large trees in index_split_045.xhtml... No large trees found Looking for large trees in index_split_049.xhtml... No large trees found The cover image has an id != "cover". Renaming to work around bug in Nook Color EPUB output written to /tmp/calibre_0.9.30_tmp_jareCu/4vkGwU.epub Thanks for the help so far... |
|||
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The reason you are getting 50 is because you are converting a document that already has a ToC and that toc has only 50 entries. Check what file you are using as input.
|
![]() |
![]() |
![]() |
#10 |
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
No, the document TOC has 59 entries. I did alt-V and counted them.
This TOC is also included as a page at the end of the epub file and it is complete. It is the TOC that you get when you click on view table of contents in the calibre epub viewer, and in the kobo touch ereader, that contain only 50 entries. |
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,631
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Some things to try/examine in no particular order, and with no particular reasons or expectations
BR |
![]() |
![]() |
![]() |
#12 |
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
Ok, I removed both ORIGINAL_EPUB and the current EPUB. Did the conversion again, and the table of contents was complete. I repeated for the two other odt files, and same result, it worked, table is complete.
As this worked, I don't know what the toc.ncx could contain, it has been erased. I can recover an older copy from the kobo touch device, though, if anyone is interested in investigating it. Or set the limit to 50, erase files, convert, back to 70 without erasing, see if the fault repeats. As far as I'm concerned, problem is solved, thanks :-) |
![]() |
![]() |
![]() |
#13 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
No need to investigate. All conversions, if there is an original_epub, will use the original as a source. As Kovid stated (and you confirmed by deleting) it had a TOC with 50 entries. It is just a typical calibre learning curve, everything worked exactly as expected.
|
![]() |
![]() |
![]() |
#14 | |
Carlos E. R.
![]() Posts: 16
Karma: 10
Join Date: May 2013
Location: Spain
Device: Kobo touch
|
Quote:
There was an original_epub file, yes, but also there was the source .ODT file. I assumed that if I selected "convert" with changed options the conversion would be done from the original source file (the .odt), not the epub from a previous conversion with old settings. Is there a different command to force a full conversion from the source odt with current settings, then? |
|
![]() |
![]() |
![]() |
#15 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,631
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The only action I know that creates an ORIGINAL_EPUB is to convert EPUB to EPUB, which I sometimes do inadvertently. I keep a beady eye on Formats in Book details and delete them when I do that. And if Carlos_ER was converting ODT to EPUB, and he was resetting defaults then why would the existence of an ORIGINAL_EPUB have any effect. As you say part of the learning curve. I'd quite like to have a Tweak where I could choose to have an "Are You Sure?" question if I convert like to like, its an easy rabbit burrow to fall down. Carlos - are you really sure that the Input Format was ODT, I'm not sure why but sometimes I find its EPUB, but I never convert from EPUB intentionally - its where I'm going not where I'm coming from. I just looked at my preferences->behaviour. EPUB was at the top of the Preferred Input Formats, again - I'm sure I've pushed it down before, more than once in fact. Its now last! But I wouldn't bet that it wasn't me who did something to push it up to first ![]() Anyway, your problems is solved and that's what matters most. Good Luck BR Last edited by BetterRed; 05-14-2013 at 09:15 PM. Reason: Respond to Carlos |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of Contents not being identified as Table of Contents | openletter | Conversion | 2 | 10-19-2012 12:54 AM |
Using Table of Contents | sammieb77 | enTourage Archive | 7 | 01-14-2011 08:01 PM |
Help with my Table of Contents | Skylinefranc | Calibre | 0 | 03-19-2010 12:55 AM |
only the table of contents | wang960 | Sony Reader | 3 | 08-29-2008 12:45 PM |
Creator Table of Contents | Nate the great | Kindle Formats | 5 | 07-10-2008 05:55 AM |