aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-08-21fixup: renamed openrussian.fish to openrussian-completion.fish (refs #6)HEADmasterRobin Haberkorn1-0/+0
2024-08-22Merge pull request #6 from ehmry/fishRobin Haberkorn3-0/+20
Add fish shell completion
2024-08-22Add fish shell completionEmery Hemingway3-0/+20
2024-04-25use single quotes for SQL string constants consistentlyRobin Haberkorn1-9/+9
* Double quotes apparently cause problems with newer sqlite versions where they are automatically interpreted as column names. * Should fix lookup of English/German words.
2024-01-12fixed piping to GroffRobin Haberkorn1-1/+1
* nroff does not always support `-K`
2024-01-12added support for Zsh autocompletionsRobin Haberkorn3-3/+30
* actually autocompletions are much more powerful than on Bash
2024-01-12support FreeBSDRobin Haberkorn3-2/+26
* Instead of relying on `man -`, we call Groff directly. * Naturally, we must depend on Groff as well. * man-db is not available on FreeBSD
2023-10-06Merge pull request #3 from vs49688/masterRobin Haberkorn1-2/+2
postprocess: remove use of double-quoted strings
2023-10-06postprocess: remove use of double-quoted stringsZane van Iperen1-2/+2
As of SQLite 3.41.0, their use is disabled by default.
2021-04-23Merge pull request #2 from vs49688/masterRobin Haberkorn3-64/+18
Remove NixOS files and update README
2021-04-23README: add NixOS installation instructionsZane van Iperen1-0/+18
2021-04-23nix: remove {default,shell}.nixZane van Iperen2-64/+0
Is now upstreamed.
2021-04-20fixed formatting of adjectives where the declension ids are missing (affects ↵1.0.0Robin Haberkorn1-16/+18
only "fri")
2021-04-20Merge pull request #1 from vs49688/masterRobin Haberkorn4-3/+69
Makefile tweaks and Nix{,OS} support
2021-04-20meta: add Nix build scriptsZane van Iperen2-0/+64
2021-04-20Makefile: add phony targetsZane van Iperen1-0/+2
2021-04-20Makefile: don't rm the downloaded zip on cleanZane van Iperen1-1/+1
As it's in git.
2021-04-20openrussian-sql.zip: update as of 2021-04-20Zane van Iperen1-0/+0
2021-04-19Makefile: update database urlZane van Iperen1-1/+1
2021-04-19Makefile: don't rely on the shebang of mysql2sqliteZane van Iperen1-1/+1
On NixOS, /usr/bin/awk doesn't exist.
2020-05-21fixed display of accents when formatting the PARTNER sectionRobin Haberkorn1-2/+2
* the corresponding database columns (seldom) contain the accenting character (see e.g. sresat') * as noted in the comments, always accenting the partner is not trivial
2020-02-03updated the database dumpRobin Haberkorn2-3/+5
* the schema didn't change * included a fix for "pered" which failed to format with the new DB * "saliwnij" and "paraf" still cause errors with `make check` since they are stored errounously accented in words.bare
2019-12-07README: document how to register short Bash aliasesRobin Haberkorn1-0/+20
2019-05-17allow multiple translation languages to be specified via -LRobin Haberkorn3-65/+97
* useful for maximizing the information on each page if you speak both English and German
2019-05-17automatically update the mandb on `make install`Robin Haberkorn1-0/+1
2019-05-17some more minor output normalizationsRobin Haberkorn1-6/+6
2019-04-19added a manpage and finalized READMERobin Haberkorn3-4/+170
2019-04-19improved normalization of listsRobin Haberkorn1-5/+5
* single VARCHAR cells will sometimes contain (semi)colon separated lists - sometimes with and sometimes without additional whitechar. They are now always normalized to ", ".
2019-04-19make check: test page generation for all words; various fixesRobin Haberkorn3-51/+73
* using the new `make check` target various bugs have been discovered. All of them were related to missing database fields.
2019-04-19changed the orientation of noun and adjective tablesRobin Haberkorn1-53/+55
* the cases are now represented by rows instead of columns - this makes table widths shorter * make sure that there is a space after each table * improved formatting of some lists in declension tables, COMPARATIVE and SUPERLATIVE sections
2019-04-18added COPYING and READMERobin Haberkorn2-0/+789
2019-04-18major changes (unfortunately not done systematically)Robin Haberkorn6-97/+542
* keep the openrussian-sql.zip to avoid bitrot (sudden breakage when building the project against a recent DB) * allow lookups against inflections. A special table `bare_inflections` was added to the DB in order to speed this up. * authentic autocompletions taking every parameter into account, using a magic `-C` parameter * language selection via locale or -L<lang> * translation lookup * allow multiple search terms on the command line without escaping * all SQL strings are properly escaped now to avoid (accidental) code insertion * luautf8 is mandatory now and used much more, which is safer than handling Unicode strings with the builtin functions * ignore "disable" database entries * added option -V (verbatim) * more protections against empty fields * print "DERIVED FROM", "AUDIO", "USAGE" and various word relation sections * print word ranking and level (A1-C2...)
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