Bug 308181 - Cannot search for the word 'define'
Summary: Cannot search for the word 'define'
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 14:59 UTC by kikanki
Modified: 2012-11-08 12:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kikanki 2012-10-10 14:59:47 UTC
I cannot search for the word 'define'. It is something special with this word. Maybe a flaw in some regexp?

Reproducible: Always

Steps to Reproduce:
1. Open a pdf document that contains the word 'define'.
2. Ctrl+f, type in 'define' (without the ' ' of course) and press enter.
3. Try search for any other word in the document.
Actual Results:  
Okular do not find the occurances of 'define' but other words are ok.

Expected Results:  
I expect Okular to find 'define' too.
Comment 1 Albert Astals Cid 2012-10-10 15:02:14 UTC
attach the document you are using
Comment 2 kikanki 2012-10-10 15:27:20 UTC
It seems to be known as the 'fi'-problem. The characters f and i, written together, renders quite tight in some fonts, which seems to cause problems. It's not specific to Okular. It happens for instance to adobe acrobat reader to, but only in the browser embedded reader (sic).

I guess we can 'define' this problem resolved.
Comment 3 Albert Astals Cid 2012-10-10 15:30:10 UTC
You're probably using an ultra old version of okular, get a newer one
Comment 4 Christoph Feck 2012-10-10 17:39:09 UTC
Search for "ligatures fl fi".
Comment 5 Pieter Nuyts 2012-11-08 12:49:01 UTC
They're not just put close to each other, but indeed as fi or fl ligatures, which are separate characters.  LaTeX (and probably many other programs) do this on purpose since it looks nicer.  It's indeed not specific to Okular but it would be nice to solve it: whenever a search term contains 'fi' or 'fl', just do a second search with those letters replaced by the ligatures?