[Mediawiki-api] API not resolving certain simplified->traditional redirects on Chinese wikipedia?
Joel Rosen
joel.rosen at gmail.com
Thu Nov 24 19:03:36 UTC 2011
Hi, I have a question about the functionality of the API on zh.wikipedia.org
:
It appears that the API isn't performing redirects that involve conversion
of certain simplified Chinese page titles to traditional, but these
redirects _are_ supported by the wiki's frontend. For example:
When I enter http://zh.wikipedia.org/wiki/ÁúÃÅ·É¼× into my browser, this
redirects automatically to http://zh.wikipedia.org/wiki/ýéTïw¼×.
But when I do the equivalent query through the api with redirects enabled (
http://zh.wikipedia.org/w/api.php?action=query&titles=ÁúÃŷɼ×&redirects), I
get no results.
Other simplified to traditional redirects do work in both the frontend and
the API. For example both http://zh.wikipedia.org/wiki/Öйúand
http://zh.wikipedia.org/wiki/ÖÐø lead to the same page. I do notice that
here, unlike in my previous example, the request for the simplified title
shows on the page that the results are a redirect
(£¨Öض¨Ïò×ÔÖйú<http://zh.wikipedia.org/w/index.php?title=%E4%B8%AD%E5%9B%BD&redirect=no>
£©), so something different must be going on.
Does anyone know what's going on here, or is there another Chinese language
forum I should address this question to?
Many thanks,
Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20111124/2b00e6e3/attachment-0001.htm
More information about the Mediawiki-api
mailing list