[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2024-09-03 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

istillal...@live.cn changed:

   What|Removed |Added

 CC||istillal...@live.cn

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2022-01-07 Thread Phos
https://bugs.kde.org/show_bug.cgi?id=435535

Phos  changed:

   What|Removed |Added

 CC||phosph0phyll...@yandex.com

--- Comment #14 from Phos  ---
Any update on this? I also have the exact same issue and it makes it impossible
to read epubs with Okular

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-11-10 Thread Luigi Baldoni
https://bugs.kde.org/show_bug.cgi?id=435535

Luigi Baldoni  changed:

   What|Removed |Added

 CC||aloi...@gmx.com

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-13 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=435535

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-11 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #13 from Yuri Chornoivan  ---

Ok. Here's oneliner that will be never accepted (but tested to work). ;)


diff --git a/generators/epub/converter.cpp b/generators/epub/converter.cpp
index 291b9caed..2f79dbc9b 100644
--- a/generators/epub/converter.cpp
+++ b/generators/epub/converter.cpp
@@ -217,6 +217,7 @@ QTextDocument *Converter::convert(const QString &fileName)
 // as QTextCharFormat::anchorNames() ignores sections, replace it with

 htmlContent.replace(QRegExp(QStringLiteral("< *section")),
QStringLiteral("maxContentHeight();

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-11 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

ber...@codewiz.org changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|NOT A BUG   |---

--- Comment #12 from ber...@codewiz.org ---
Oh, I see now: only cover.xhtml has style="background-color:black;". The
following sections don't specify the background-color for , but Okular
keeps on using black throughout the entire book.

Reopening the bug.

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-11 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #11 from ber...@codewiz.org ---
On second thought, it seems Calibre is ignoring the "background-color:black" in
, because the background is painted in the Breeze-dark window background
color.
Similarly, http://epubreader.1bestlink.net/ renders page backgrounds in white.

Perhaps Okular is ignoring those "background: transparent" attributes in the
css file? I'm not sure in what order they should be applied...

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-11 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #10 from ber...@codewiz.org ---
> I might be wrong, but isn't it already here
> (one of the options on the "Accessibility" page)?

I tried a few of them, and...

 - "Change Paper Color" has no effect on this book
 - "Invert Colors" renders white background with white text (so it's still
unreadable)
 - "Change Dark & Light Colors" renders both page and text in the dark color
 - "Convert to Black & White" leaves text & page to black
 - "Invert..." and "Shift..." also have no effect.

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-11 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #9 from Yuri Chornoivan  ---
(In reply to bernie from comment #8)
> Do you think I could file a feature request for an option similar to Calibre?
> 
>Override all book colors:
>( ) Never
>(o) In dark mode
>( ) Always

I might be wrong, but isn't it already here (one of the options on the
"Accessibility" page)?

https://docs.kde.org/trunk5/en/okular/okular/configaccessibility.html

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-11 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #8 from ber...@codewiz.org ---
Do you think I could file a feature request for an option similar to Calibre?

   Override all book colors:
   ( ) Never
   (o) In dark mode
   ( ) Always

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=435535

Yuri Chornoivan  changed:

   What|Removed |Added

 Resolution|--- |NOT A BUG
 Status|CONFIRMED   |RESOLVED

--- Comment #7 from Yuri Chornoivan  ---
There is



in cover.xhtml. With style="background-color:black;" removed, everything works
as expected. So I think it's not a bug.

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #6 from ber...@codewiz.org ---
Thank you for analyzing this bug, Yuri!

Calibre also renders black text on a dark background when using the default
system theme, but it is possible to fix it by either switching to a light
theme, or by selecting "Override all book colors... in dark mode".

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=435535

Yuri Chornoivan  changed:

   What|Removed |Added

 Status|NEEDSINFO   |CONFIRMED
 Ever confirmed|0   |1
 Resolution|WAITINGFORINFO  |---

--- Comment #5 from Yuri Chornoivan  ---
Confirmed. Calibre viewer shows the white background and Okular shows black.

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #4 from ber...@codewiz.org ---
Created attachment 137450
  --> https://bugs.kde.org/attachment.cgi?id=137450&action=edit
Cut-down EPUB file to demonstrate the bug

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread Yuri Chornoivan
https://bugs.kde.org/show_bug.cgi?id=435535

Yuri Chornoivan  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 Status|REPORTED|NEEDSINFO
 CC||yurc...@ukr.net

--- Comment #3 from Yuri Chornoivan  ---
Can you replace all the text of your restricted book with "Lorem ipsum" or
something similar using Sigil or Calibre editor and attach the file (if it's
reproducible) to this bug report?

Thanks in advance for your answer.

P.S. I cannot reproduce the bug with the CSS attached and calibre-crafted book.

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #2 from ber...@codewiz.org ---
I tried deleting all the occurrences of "color: #00;" and "background:
transparent;" from the CSS and then repack the EPUB, but it still renders black
over black.

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

[okular] [Bug 435535] Okular EPUB backend renders black background with black text

2021-04-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #1 from ber...@codewiz.org ---
Created attachment 137446
  --> https://bugs.kde.org/attachment.cgi?id=137446&action=edit
CSS file found inside the EPUB

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