Thread: Kobo Bug thread
View Single Post
Old 10-07-2013, 09:27 PM   #279
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by glos View Post
remember this, david?
I think it was/is a problem to the TOC of that book (possibly only with that chapter, idk!). I've been trying the same procedure on other chapters *btw,, I always was trying to bookmark on the first page of a chapter* and it works, I can now bookmark (and I then see the bookmarks), when I re-open the book it opens on the page I was reading and on the home the tile for the book shows the right reading %.
Idk what it is, the only weird thing is that when I go to the TOC of the book, wherever I am, it indicates I'm always on the first chapter.
When I was getting it ready to be transferred to the device I used the edit TOC function in calibre to ONLY rename the TOC titles, because the first 20 or so were "chapter 1, chapter 2, etc" while the others had the chapter title. So I adjusted the entries to have them all similar with the titles of the chapters. Maybe only that ch. 5 has a problem...I'm now around ch 8, and I'm sure I also modified its toc title, still, it works. Anyway, all seems to be normal now (and I didn't do a thing, I was waiting to run out of battery first).

- sorry for the long post/hijacking the topic with this, seems now unrelated to kobo and more a book problem -
I had a play with the files you send me, and had the same problem with the kepub. I ran epubcheck over both versions and there were warnings about spaces in the internal file names. Which triggered a memory and some testing showed what was happening.

The problem is the spaces in the file names. This is because in some places that refer to the files the names are escaped, and in others they are not. Unfortunately, when the book is first processed by the Kobo devices, it doesn't handle that properly. It appears to be expecting the names without escaping anywhere. When I changed the file names to remove spaces and fixed the references, it worked. When I removed the escaping it also works.

What are the solutions to this:

- It would be best if Kobo handled this. I'll report it on the beta group. It will be a low priority as they don't really support sideloaded kepubs.
- It is possible the extended driver could fix this. This has been discussed before but I don't remember if jgoguen was involved. Or if the driver was around at the time.
- Get the tool that produced the epub to not use spaces in the internal file names. As this was fan fiction, the ffdl plugin already seems to do this. Someone would need to suggest a change to the web downloader you use.
- Manually edit and fix the files. That's only practical if it happens rarely or you edit your epubs for other reasons. Doing this in Sigil is fairly easy as you can select a group of files and rename them with a sequence number. That should automatically fix the TOC and OPF references. But rebuilding the TOC is one button.
davidfor is offline   Reply With Quote