View Single Post
Old 01-26-2015, 10:13 AM   #703
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Quote:
Originally Posted by sadowski View Post
Could some of this be easier done in the startdict source? I see in the sdcv code that some language-specific query modification is done for English, e.g., -ies/-y in lib/lib.cpp, LookupSimilarWord(). I just did not figure out how to cross-compile for Kobo, otherwise I would give it a try.
Of course you can hack your way through the sdcv code. But don't dump the changes at koreader - better have them go upstream. Chances are, however, that people are not willing to staple more hacks on those that are already present. At least, I don't consider these hardcoded modifications a "clean approach". Without investigation, I simply guess that they were a fast way to scratch an itch.

Reimplementing sdcv in Lua serves another approach, however. At least that is the reason I started to do so. On Android builds of Koreader, it's a bit messy to start external processes. And it would simply be nice to have an implementation that is easy to hack on. E.g. a language-based plugin system could be so much easier to do in Lua, since Lua allows for a bit more dynamic approach to developing stuff. (not meant to start a language war. C++ is also a fine language.)
hawhill is offline   Reply With Quote