@inhabitant You could start with taking a look at
this thread and search mobileread forums further to turn the wiki-dump into a dictionary. When you've generated it and can't convert it to pocketbook, I am willing to help.
If you write a howto or at least give the relevant links about how to convert the wiki dump to a dictionary, I am willing to look into whether it can be included in the script.