[Okular-devel] Reading TOC using 'ebook-tools'

Jaydeep Solanki jaydp17 at gmail.com
Thu Jul 11 15:27:52 UTC 2013


Here's the diff file.


On Thu, Jul 11, 2013 at 8:37 PM, Jaydeep Solanki <jaydp17 at gmail.com> wrote:

> Hello,
> I guess PinoTree is the maintainer of 'ebook-tools'.
>
> I noticed that epubs with a prefix in toc.ncx don't succeed in parsing toc.
> In my case I have an epub which contains the following in toc.ncx:
> <ncx:elementName />
> where 'ncx' is a prefix.
>
> Seeing a function named '_get_possible_namespace', I thought it would be
> doing what I want, but I'm not sure it does the same.
>
> So I created a small function which compares key elements (like navPoint,
> navMap, etc.) with given prefix. In my case 'ncx'.
>
> I have seen that it is really rare of people using prefixes.
>
> BTW, is 'ncx' the default prefix ? or there can be others ?
>
> Cheers,
> Jaydeep
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130711/61d40554/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 8454 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130711/61d40554/attachment.obj>


More information about the Okular-devel mailing list