[okular] [Bug 376692] Search function fails to find phrases split over two lines

Tom Colley bugzilla_noreply at kde.org
Fri Mar 3 23:35:28 UTC 2017


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

--- Comment #4 from Tom Colley <tcolley at livingdata.com.au> ---
(In reply to Albert Astals Cid from comment #3)
> Searching code is hard given we basically have to guess what's in the PDF.

Hi Albert - I don't understand your comment. This request is not about
searching code; it's about searching for text (a phrase), in a pdf file. By a
phrase, I mean two or more words separated by space. The PDF creation process
tends to eliminate spaces at the end of lines and Okular's search function
doesn't appear to take this into account. I guess I'm asking for a search
function that can interpret line breaks as spaces, though the implementation
would have to be more considered.  Some attention has already been put into
Okular's search function around this, as shown by the way searching the
provided pdf for:

"united states"

finds the third instance, which is formatted with a dash and a line break:

"Unit-
ed States"

So the search function will find instances of phrases split by a dash and a
line break, but not separated by a line break only!

Effective searching for phrases is a feature most users will find helpful.

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


More information about the Okular-devel mailing list