GNOME Bugzilla – Bug 339167
Bookmark search should ignore special characters
Last modified: 2006-06-05 12:10:52 UTC
1. Bookmark a site under the name "Foo bar (baz)" 2. Type "baz" in te location bar Expected: 3. The bookmark appears in the list. Actual: 3. The bookmark does not appear in the list. This is really annoying, because I have a lot of bookmarks that have parentheses in the name field, eg.: - Apache XML Formatting Objects Processor (FOP) - Bazaar-NG (bzr) - Someone. S. Fullname (nickname)
Created attachment 66351 [details] [review] Bookmark search stops on punctuation, not just spaces I got hit by the same problem, bookmarking bugs, they appear as: Bug 339167 - Bookmark search should ignore special characters (epiphany) and I hoped to type "epihany" and get the relevant bugs. It doesn't work because of this bug. So here is a patch, replacing a check for ' ' by a call to g_ascii_ispunct().
Thanks for the patch! Please commit to HEAD and gnome-2-14. I wonder if it would make sense to allow non-ascii punctuation, using g_unichar_ispunct?
Commited; not testing on g_unichar_ispunct since the code iterates the string char by char, without any knowledge about UTF-8.
My bookmark "Bla Doxygen Documentation" does not show up when I type "doxygen". Is this related?
Are you typing the quotes ? Are the quotes part of the bookmark ?
No quotes at all, Frederic.
Confirming the this as described in comment 4.
Please revert this code in CVS. The previous behaviour, even though it didn't work in all cases, was much better than the current behaviour.
Created attachment 66768 [details] [review] Improved patch This patch fixes the aforementioned problems for me. The first while loop finds the "end" of the current token (search up to the next space/punct char). The next while loop finds the "start" of the next token (search up to the next NON-space/punct char).
HEAD and gnome-2-14. Let's keep the bug open for rewriting that with g_unichar_ispunct for propert i18n cleanliness.
2006-06-05 Wouter Bolsterlee <uws+gnome@xs4all.nl> * lib/widgets/ephy-location-entry.c: (keyword_match): Improve next-token logic for bookmark completion. Fixes #339167 (hopefully for real this time).
Committed to gnome-2-14 branch too.
Christian, I filed #343906 about the unicode support.