MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   TOC location of Calibre recipe ebook output (https://www.mobileread.com/forums/showthread.php?t=104899)

tylau0 10-31-2010 07:23 PM

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

DoctorOhh 11-01-2010 12:39 AM

Quote:

Originally Posted by tylau0 (Post 1192689)
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?

I don't have a Kindle but I'm sure the TOC can be access via the joystick.

tylau0 11-01-2010 08:59 AM

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:

Originally Posted by dwanthny (Post 1193014)
I don't have a Kindle but I'm sure the TOC can be access via the joystick.


kovidgoyal 11-01-2010 02:02 PM

click menu and then click got to table of contents to access the table of contents.

tylau0 11-02-2010 07:35 PM

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?

kovidgoyal 11-02-2010 07:45 PM

change your output profile to something other than a kindle.

tylau0 11-03-2010 08:17 AM

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.

tylau0 11-04-2010 07:33 PM

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.

tylau0 11-06-2010 10:48 AM

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.