[okular] [Bug 458516] Spaces in content filenames causes a second copy of the book's content to be shown; TOC points to the second copy.

Duane bugzilla_noreply at kde.org
Wed Sep 14 01:35:37 BST 2022


https://bugs.kde.org/show_bug.cgi?id=458516

--- Comment #5 from Duane <duane-tech at evenson.ca> ---
On 2022-09-13 15:57, Albert Astals Cid wrote:
> https://bugs.kde.org/show_bug.cgi?id=458516
>
> --- Comment #3 from Albert Astals Cid <aacid at kde.org> ---
> I don't see any problem with the attached file.
>
> What is wrong with it?
>
The file itself is OK. The problem is in Okular's displaying of the 
file. I've added a screenshot of Okular illustrating the problem to the 
bug report [ https://bugsfiles.kde.org/attachment.cgi?id=152038 ].

Note that the TOC shows chapters 1-3 pointing to pages 4-6. This is the 
second copy of the content. The first copy of chapters 1-3 is on pages 
1-3. Page through the document and you'll see it displayed as:
page 1  Chapter 1
page 2  Chapter 2
page 3  Chapter 3
page 4  Chapter 1 (pointed to by TOC)
page 5  Chapter 2 (pointed to by TOC)
page 6  Chapter 3 (pointed to by TOC)
page 7  (blank)

Yet, the epub contains only (chapter) files:
te st_split_000.html
te st_split_001.html
te st_split_002.html

Rename the epub files to "test_split_000.html", "test_split_001.html", 
and "test_split_002.html", and edit "content.opf" and "toc.ncx" to 
contain the new names and Okular stops displaying the first copy of the 
chapters. Pages in the TOC are corrected as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list