Last modified: 2013-10-05 04:22:20 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 T57089, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55089 - regexp functionality for -hint option
regexp functionality for -hint option
Status: NEW
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:22 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-05 04:22 UTC (History)
0 users

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:22:14 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/187/
Reported by: Anonymous user
Created on: 2009-03-25 22:01:02
Subject: regexp functionality for -hint option
Original description:
it would be great if -hint option in interwiki.py bot could accept regular expressions. this can be helpful, e.g. if in one wiki the article is entitled "XXX, YYY" and the corresponding article in another wiki is "XXX \(YYY\)", or if titles differ in some letters and these differences are regular between languages.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:22:16 UTC
Interesting suggestion \(but I haven't looked at how to implement this -- yet\)

Do you have any actual application for this? Any such regular patterns between two different wikis that you already know?
That would be quite useful to provide some concrete examples here, to help potential devs =\)
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:22:17 UTC
The syntax might be similar to that used in replace.py. For example, to use English hint \(Abbeville, Alabama\) for the French article "Abbeville \(Alabama\)", the command might look something like: python interwiki.py -lang:fr -hint:en -regex ".+ \\\(.+\\\)" "\1, \2"

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


Navigation
Links