<table><tr><td style="">joaonetto retitled this revision from "[WIP]Added option to search for whole words only" to "Added option to search for whole words only".<br />joaonetto edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-pxa5jettelxxqki/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19123">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>This should work for most cases. <br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">I might have a fix for this, let's put this on hold while I figure it out.<br />
<br />
A case that I know for sure that don't work:<br />
-If at the beginning of the text there's two text entities, like "AB" and the text is "ABCD" and I'm searching for BC, it will return that is a word, most errors will be based on this.<br />
<br />
As of now I don't have a clever solution for that. Personally, I think that it would revolve around a lot of corner cases, and not really worth it</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Still some problems with words like para-medic</span>. <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">But I can look into it if absolutely needed. </span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Searching for para or medic would return a result.</span><br />
<br />
<br />
BUG: 204709</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19123">https://phabricator.kde.org/D19123</a></div></div><br /><div><strong>To: </strong>joaonetto, Okular<br /><strong>Cc: </strong>davidhurka, yurchor, aacid, ngraham, okular-devel, tfella, darcyshen<br /></div>