aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-03-16support multiple resultsRobin Haberkorn1-70/+109
* if a search word yields multiple results, which can happen quite frequently, interactively ask the user which one to display by showing both the accented words (sometimes the only difference is in accentuation) and the translations in brackets
2019-03-16allow lookups containing accentuation character (Unicode 0x0301)Robin Haberkorn2-5/+20
* they are simply ignored * in openrussian.lua, we delegate Unicode handling to SQLite * for Bash completions, we ignore accents during matching but (have to) preserve them in the prefix -- see comments. * also properly escape SQL strings preserving accidental code injection. This means we do not necessarily have to port openrussian-completion.bash to Lua.
2019-03-15added Makefile and simple Bash completionsRobin Haberkorn4-16/+58
* this allows precompiling openrussian.lua, automatically downloads, converts and VACUUMs the openrussian database and provides an `install` target * Bash completions allow completing "bare" Russian words for the time being. Unfortunately we cannot complete with accents, since Bash completions do not allow to change the already typed word (apparently) and users aren't going to type in accents.
2019-03-15imported mysql2sqlite script from https://github.com/dumblob/mysql2sqliteRobin Haberkorn1-0/+278
* this will practically be required by everyone since I won't add any pre-generated databases. * this could be added as a submodule as well, but it's probably not worth it for a single Awk script
2019-03-15improved command-line interface, find database automatically, and adapted to ↵Robin Haberkorn1-12/+40
schema changes * ./openrussian -p <word> now directly prints to stdout, which is useful for postprocessing lookups.
2019-02-02initial commitRobin Haberkorn3-0/+280
* matches have to be direct, which is not always practical * there is no reverse search (from English search terms) * missing Makefile * missing Bash completions