6

Like the title says, is it possible to add something like a Table of Contents to a .cbz file, maybe as an additional text file used to better navigate the content? And if it is, how should it be structured?

2 Answers 2

2

Since the CBZ format is not standardised, there are some pitfalls if you try to achieve this.

The best you can do is render the ToC as an image and add it at the front of list of image files contained in the CBZ. Adding an extra file with the ToC information might break existing readers, if that ToC is not an image file.

An alternative is to load the data in the file comment of the CBZ file. This is limited in size (64K IIRC). There is an effort for metadata in CBZ this way (using JSON) that you could piggy-back on.

Disadvantage of a metadata solution is that there are no tools that currently display that information.

A bigger problem might be to get the information that you want to put into the ToC. Contrary to analysing the text of EPUB files after they are generated, the individual images of a CBZ have little to form the basis of a ToC.

3
  • Thanks,but that's not really what I'm looking for. Both the metadata and the image won't be useful to navigate it from any reader.
    – Sekhemty
    Dec 22, 2013 at 18:41
  • @Sekhemty, so what reader are you using? Does is support some kind of ToC already?
    – Anthon
    Dec 22, 2013 at 18:56
  • I'm using a Kobo Glo and Okular (KDE document reader), and they support, as any other reader that I'm aware of, TOCs for PDF, EPUB, MOBI, and so on. But given that a comic archive is a different kind of file, I was curious if if it could support this feature too.
    – Sekhemty
    Dec 22, 2013 at 21:45
0

Yes, but not directly. You can name each image file with a specific name-description (ex."Story-A", "Story-B" etc). You can see this "table of contents"(TOC) in some -but not all- cbz viewers, Pocketbook reader supports it. The "TOC" contents are displayed in alphabetical order and for all files with no exception, so you should name them as: Story-A-1, Story-A-2, Story-A-3 , Story-B1, Story-B2 etc. Another option is to convert the cbz file to PDF or epub and then add a real TOC to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.