Feature Requests item #2712760, was opened at 2009-03-25 22:01 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2712760...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: interwiki Group: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: regexp functionality for -hint option
Initial Comment: 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 By: Nobody/Anonymous (nobody) Date: 2009-03-26 07:10
Message: 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"
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz) Date: 2009-03-26 00:18
Message: 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 =)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2712760...