View Single Post
Old 06-17-2023, 06:01 AM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,217
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by droopy View Post
Hi Kovid developer,

I searched for some text in a book and it found it. But it says

"This text is hidden and cannot be displayed".

Please see screenshot.
Using Calibre 6.20.
Looks like a bug to me.

When searching for a term that is not visible on the viewer, you get that message. The numbers are probably hidden either by CSS (display: none) or using the HTML 'hidden' property. But that should not affect searching for the term near it, hence the bug.

Test case:

Code:
<p>Ordinary text being displayed.</p>
<p style="display:none">Hidden text</p>
If you search for 'Ordinary text being displayed', you get that same error. I think that's because calibre also get the surrounding context when displaying the searched term. And when it gets a hidden text for context, then the bug occurs.
thiago.eec is online now   Reply With Quote