Page MenuHomePhabricator

Keep working when 2 typo rules have the same "find"
Closed, DeclinedPublic

Description

Would it be possible to modify AWB so that it doesn't block when 2 typo rules have the same "find" value but different "replace" value ?
I'm not even asking that AWB use both "replace" values, just that it doesn't show an error message, and that it keeps working with the typo rules.

See discussion on AWB bugs page.

Basically, I'd like to use this possiblity to define 2 replacements for comma+2 apostrophes+whitespace: either 2 apostrophes+comma+whitespace (the apostrophes are the end of italics formatting for the word before the comma) or comma+whitespace+2 apostrophes (the apostrophes are the beginning of italics for the word after the comma).
I tried it on frwiki: it was taken into account by WPCleaner (both suggestions displayed), but it created problems for AWB.

Event Timeline

NicoV raised the priority of this task from to Needs Triage.
NicoV updated the task description. (Show Details)
NicoV added a project: AutoWikiBrowser.
NicoV subscribed.

@NicoV the second rule would be void since the first rule would replace all instances in AWB

@Magioladitis It's not a problem for me : AWB would keep working as if there was only the first rule, WPCleaner would use both rules to give 2 suggestions instead of one.

This rule helps cleaning up the mess made both by VE and CX for italics/bold that takes extra whitespace or punctuation inside what should be put in italics/bold.

Why don't you create a different file? We had a similar request in the past called "typo fixing with possibilities" but I can't find it.

That could be an option, I will do this next week.

Ok, I have created a second page for typos that is only known to WPCleaner and not to AWB.
https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:WPCleaner/Typos

Magioladitis claimed this task.

Marked as resolved. We may consider in the future to get advantage of this page,

Josve05a changed the task status from Resolved to Declined.Sep 11 2015, 12:13 PM

Marking as declined, since no change was done. Semantics...