Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Ah, good point – I recently changed Relevanssi to replace straight apostrophes to spaces (instead of just removing them), but curly apostrophes are still removed. Yeah, I’ll have to fix that.

    Probably better fix is to replace

    $a = str_replace("’", '', $a);

    with

    $a = str_replace("’", ' ', $a);

    That’s what I’m going to do in the next version, anyway. Thanks for noticing this!

    Thread Starter danteand

    (@danteand)

    If you replace the right curly single quote, it probably makes sense to do the same with left curly single, and both left and right double curly quotes, since that’s what happens with the straight ones. That way ’this’ and ‘this’, as well as “you’re” and ”you’re“ will be equivalent.

    I can’t think of many places it would matter, other than contractions and possessives (which are covered by the right curly single) but I suppose most people would expect them to be equivalent.

    Plugin Author Mikko Saari

    (@msaari)

    Yeah, that’s the correct way to do it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] curly or smart apostrophe vs straight’ is closed to new replies.