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

Jaydeep Solanki jaydp17 at gmail.com
Mon Jul 15 11:18:24 UTC 2013


here<https://github.com/jjmcd/mi-arpsc/blob/master/downloads/Michigan_2010_Summary/epub/ARPSC-2010-Michigan_2010_Summary-en-US.epub>'s
a link to the file.



On Fri, Jul 12, 2013 at 2:23 PM, E L <nakeee at gmail.com> wrote:

> Hi,
> Any chance you can send me the file which has problems?
>
> The code was supposed to handle that case, maybe I got the wrong
> xml function.
>
> Thanks,
> nakee
>
>
> On Thu, Jul 11, 2013 at 6:07 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
>>
>> _______________________________________________
>> Okular-devel mailing list
>> Okular-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/okular-devel
>>
>>
>
> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130715/283f9b93/attachment.html>


More information about the Okular-devel mailing list