Last modified: 2014-07-27 11:24:38 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1483/ Reported by: reza1615 Created on: 2012-07-02 10:01:55 Subject: cosmetic_changes bug on citation's number and punctuation Original description: class fixArabicLetters\(\) changes Latin citation's number and punctuation \(,\) to Persian number and punctuation \(،\) and it is not correct please set it if the text around the number is in Latin do not convert numbers. http://fa.wikipedia.org/w/index.php?title=%D8%A7%D8%B1%DB%8C%DA%A9\_%D8%AA%D8%B1%DB%8C%D9%86%DA%A9%D8%A7%D8%B3&diff=7277416&oldid=7277411
in fa.wiki we have gadget that works fine it has function \(digits \(\) \) that convert numbers correctly my be it will useful for solving this bug http://fa.wikipedia.org/wiki/%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Extra-Editbuttons-Functions.js
Is there any regularity for these citations e.g. "\\\(<en-fullmonthname> \d\{2\}, \d\{4\}\\\)"?
defining regularity for date or address in external urls is not simple the best rule is when number is inside English or latin text it should be English Number and others that are in Farsi text should be convert to Farsi Numbers.
I would like to propose disabling this function for now to avoid unintended vandalism by bots. Later, we need to translate the JS code reza1615 mentioned into python and incorporate it in the bot.
fixArabicLetters\(\) disabled in r10451 for now
thank you also please disable punctuation part , to ، is not correct and it needs to define many exceptions. http://fa.wikipedia.org/w/index.php?title=%D9%81%D9%87%D8%B1%D8%B3%D8%AA\_%D8%AC%D9%85%D8%A7%D8%B9%D8%AA%E2%80%8C%D9%87%D8%A7%DB%8C\_%D8%AA%D8%A7%D8%AC%DB%8C%DA%A9%D8%B3%D8%AA%D8%A7%D9%86&diff=prev&oldid=7333963