Last modified: 2014-07-27 11:24:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57185, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55185 - cosmetic_changes bug on citation's number and punctuation
cosmetic_changes bug on citation's number and punctuation
Status: NEW
Product: Pywikibot
Classification: Unclassified
Cosmetic changes (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Amir Ladsgroup
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:39 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-27 11:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:39:19 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
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:39:21 UTC
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
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:39:23 UTC
Is there any regularity for these citations e.g. "\\\(<en-fullmonthname> \d\{2\}, \d\{4\}\\\)"?
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:39:25 UTC
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.
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:39:26 UTC
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.
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:39:28 UTC
fixArabicLetters\(\) disabled in r10451 for now
Comment 6 Kunal Mehta (Legoktm) 2013-10-05 04:39:30 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links