On 31/12/11 18:08, kracekumar ramaraju wrote:
>     The API does not provide a way to get just the IPA pronunciation, or
>     just the synonyms, or fetch any other semantic information. The only
>     thing that is offered is separation into sections using ==Headers== ,
>     for anything else you'll have to extract the information yourself
>     AFAIK.
>
> Instead of separating contents with ==Headers== it will be freaking
> awesome if it is returned as array, This makes easy for end users. Else
> I need to write my own parser.

The API is content-agnostic. A wiki could contain the IPA pronunciation 
inside {{IPA|...}}, another could mark the definition with <font 
color="green"> </font> and most wouldn't even contain IPA not 
definitions (eg. it could be granny's blog).

That means that usually, you need to make your wiki-specific parser to 
fetch the pieces relevant for you.

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to