![]() |
TOC location of Calibre recipe ebook output
Is it possible to have the table of content generated by calibre news recipe to be put at the top rather than the bottom of the ebook output?
Thanks. -Eddie |
Quote:
|
So far I can't find a way to go to the in-document TOC with a few clicks on my Kindle (by neither the joystick nor the menu). :-(
I strongly suggest showing the in-document TOC at the front of the document. I am currently working on some Asian newspaper Calibre recipes for my Kindle 3. I find I can't depend on the Kindle's built-in article list and section list to give the article overviews because the device can't display Asian characters in these lists properly. The in-document TOC is the only way I can find so far to work around. However, that TOC neither is showing up right after opening the document, nor could be reached with a few convenient clicks of the joystick or menu items. Or is there a way to specify the in-document TOC as the default starting page in Calibre news recipe? -Eddie Quote:
|
click menu and then click got to table of contents to access the table of contents.
|
I think I have found a relevant post: https://www.mobileread.com/forums/sho...d.php?t=101754
Kindle doesn't allow "Go to TOC" to show up in menu because the device recognizes the calibre news recipe output to be a periodical not a e-book. Is it possible to ask the calibre news recipe to generate an e-book rather than periodical? |
change your output profile to something other than a kindle.
|
I've tried turning the output profile to Mobipocket reader. However, the .mobi output so generated is still recognized as periodical by the Kindle device.
There are auto-generated links "Next", "Previous", "Section Menu" and "Main Menu", but the latter two don't work on the Kindle device. Is it possible we hardcode the link to toc in some calibre recipe construct, like postprocess_html() function? If so, what should be the statement to link to the toc? Thanks again. |
Or any way I can customize the ebook-convert command line for a particular output profile? I'm not sure if I can delete the -mobi-periodical option to achieve what I want? (Ref: http://www.mobileread.mobi/forums/sh...=48459&page=10)
Thanks. |
I finally work out a satifactory work-around.
In the news recipe that inherits from BasicNewsRecipe, override the function def create_opf(self, feeds, dir=None) with exactly the same content as in the base class http://calibre-ebook.com/user_manual...eeds/news.html, except the line mi.publication_type = 'periodical:'+self.publication_type+':'+self.short _title() Change it to mi.publication_type = self.publication_type+':'+self.short_title() The string "periodical" looks to be why the Kindle device treats the generated document as periodical rather than a book. Relevant Calibre source codes are at here and here. |
| All times are GMT -4. The time now is 10:03 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.