Thank you very much for your help, Doitsu! I had downloaded ABBYY Monolingual dictionary (don't know how I got it), but can't find a way to get the the English -> Russian Version. I always used the free Smirnitsky one that is legally downloadable.
But it is not that important, because I am really looking to create my own one. The main reason is that I created
an open source tool that adds stress to all Russian words in an ebook (where the stress doesn't depend on context) . This breaks almost all lookups when using the traditional dictionaries. Additionally I made some steps to gather data from Wiktionary and OpenRussian which contain lots of words and OpenRussian has some German translations which could also be useful.
Your sample file was super helpful! Using this and your linked instructions I managed to create a prototype dictionary that is supposed to work for stressed texts. And it works... a bit, maybe 30% of the lookups that it is supposed to know actually work, and there does not seem to be any pattern to this. For example (and all words appear in the xhtml files):
working:
роди́телей
забежа́ла
что́бы
себя́
штра́фа
необходи́мо
not working:
тюрьму́
заплати́ть
приняла́сь
тече́ние
вы́бралась
су́нул
I will have to gather more data on this, it is all very strange. I have uploaded the epub zip file if someone feels inclined to throw a look, and I will post an update once I figure out the mistake. It is really random, I made code that removed some duplicates, and some words that worked before suddenly stopped working (which were totally unrelated to the duplicate removal).