Hello

I have transliterization enabled at my site and catch that some russian letters are being transformed to apostroph sign (') which mallforms URL and it not opens. This thing happens because transliterization is coming after punctuation cleanup.

Here's the patch.

Comments

neochief’s picture

StatusFileSize
new1.67 KB

Pard me, too fast buggy patch. Here's correct one.

Freso’s picture

Thanks for catching this - and well caught! :)

This new behaviour is probably how it ought to be. It doesn't make sense to remove punctuation and stuff, when we still have a bunch of non-ASCII strings in the text. I'm wondering whether we should toss the ASCII-stripping in here, after the transliteration?

On the patch, I moved the comment "Replace or drop punctuation based on user settings" so it would be next to the code it actually commented on. So here's a re-roll! :) The -d5 is for 5.x-2.x and 6.x-1.x (applies to both, though with some offset to one) and -d6 is for 6.x-2.x.

I don't see how this would break anything, but if anyone could test these, it'd be excellent. Thank you. :)

dave reid’s picture

asb’s picture

sub

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Makes a lot of sense. Will commit later today.

dave reid’s picture

Status: Reviewed & tested by the community » Fixed
asb’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.