Does anybody have a script to convert a wikipedia dump into an SDict source file? 

I know that there are premade .dct files available but Id like to rebuild my own so I can make them case and accent insensitive.

Thanks.