Bug 130940

Summary: Remove special handling of soft hyphens in search code
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore Misc.Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, darin, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch andersca: review+

Description Alexey Proskuryakov 2014-03-30 01:25:57 PDT
ICU knows to ignore soft hyphens, so we don't need to replace them before searching.

See aso <rdar://problem/9464270>.
Comment 1 Alexey Proskuryakov 2014-03-30 01:27:46 PDT
Created attachment 228125 [details]
proposed patch
Comment 2 Anders Carlsson 2014-03-30 12:48:41 PDT
Comment on attachment 228125 [details]
proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=228125&action=review

> Source/WebCore/ChangeLog:3
> +        Remove special handling of soft hyphens in search code

Why?
Comment 3 Alexey Proskuryakov 2014-03-30 19:57:33 PDT
> Why?

Quoting bug description, "ICU knows to ignore soft hyphens, so we don't need to replace them before searching."
Comment 4 Anders Carlsson 2014-03-31 07:45:01 PDT
(In reply to comment #3)
> > Why?
> 
> Quoting bug description, "ICU knows to ignore soft hyphens, so we don't need to replace them before searching."

Ah! Can you put that in the ChangeLog as well?
Comment 5 Alexey Proskuryakov 2014-03-31 09:33:05 PDT
Committed <http://trac.webkit.org/r166507>.
Comment 6 Darin Adler 2014-03-31 09:41:35 PDT
(In reply to comment #0)
> ICU knows to ignore soft hyphens

Has that always been true, or is this a recent development?
Comment 7 Alexey Proskuryakov 2014-03-31 10:00:13 PDT
I've been told that ICU "already" does this, and EWS confirmed that it's true as of 10.8 at least. I think that this code was added before Mac WebKit started to use ICU, and it was recently needed because of other non-ICU platforms that we used to support.

This is some history that I'm aware of, although it doesn't fully answer your question.