Okular version: 0.16.97 (from KDE SC 4.10.97 aka 4.11 RC2) Okular doesn't render Fiction Book files properly. English texts are displayed as plain xml. Ukrainian or russian ones aren't displayed at all (just one empty page). This is true for me for every FB2 I have. Reproducible: Always Steps to Reproduce: 1. Download any FB2 (russian: http://gribuser.ru/xml/fictionbook/2.0/example.fb2) 2. Open it using okular Actual Results: Empty page for at least russian/ukrainian (see example url), and plain xml for english texts. Expected Results: Well-formated book (as in Okular from KDE SC 4.10).
Confirmed for the current git/master
Just commited a fix, will be there for 4.11.0 thanks for the report!
Thanks for answer and fix!
This bug happens again for Okular5. Instead of FB2 backend TXT backend is working for *.fb2 files. So there is no text or full xml is shown.
There is no such thing as Okular5, you should really not be using the frameworks branch unless you're prepared to fix the bugs you encounter.
I understand frameworks branch is under developepment ATM, just thought it would be easy to port stable version patch to frameworks. Should I close this bug?
In the future, don't reuse a bug that was fixed 3 years ago, it doesn't make sense thinking that code that was added 3 years ago somehow vanished.
Sorry for that.
Git commit 89e5f175426aea6139c118d11e26386f60572c1b by Martin T. H. Sandsmark. Committed on 13/07/2016 at 01:23. Pushed by sandsmark into branch 'frameworks'. Improve matching of generators Instead of trying to use the plain text generator for everything, try to find a more specialized one first. M +16 -0 core/document.cpp http://commits.kde.org/okular/89e5f175426aea6139c118d11e26386f60572c1b