|
| 1 | +# Installation |
| 2 | +pip install [pnu-conjuguer](https://pypi.org/project/pnu-conjuguer/) |
| 3 | + |
| 4 | +# CONJUGUER(1) |
| 5 | + |
| 6 | +## NAME |
| 7 | +conjuguer — conjugaison des verbes Francais |
| 8 | + |
| 9 | +## SYNOPSIS |
| 10 | +**conjuguer** |
| 11 | +\[-c|--columns NUM\] |
| 12 | +\[-d|--dictionary PATH\] |
| 13 | +\[-n|--nocolor\] |
| 14 | +\[--debug\] |
| 15 | +\[--help|-?\] |
| 16 | +\[--version\] |
| 17 | +\[--\] |
| 18 | +verb [...] |
| 19 | + |
| 20 | +## DESCRIPTION |
| 21 | +The **conjuguer** utility displays a French conjugation table for the verbs supplied on the command line. |
| 22 | + |
| 23 | +It will display the verb modes and tenses in color, unless you use the *-n|--nocolor* option. |
| 24 | + |
| 25 | +The display will be made in 4 columns, Bescherelle style (a famous verbs dictionary), |
| 26 | +or in 1 or 2 columns if you use the *-c|--columns* option. |
| 27 | + |
| 28 | +The data is obtained from a DELA or ABU type inflected French dictionary, rather than generated. |
| 29 | +The dictionary will be selected from the *DICTPATH* environment variable, |
| 30 | +or obtained from the *-d|--dictionary* option if used. |
| 31 | +The dictionary type is automatically detected. |
| 32 | + |
| 33 | +### OPTIONS |
| 34 | +Options | Use |
| 35 | +------- | --- |
| 36 | +-c\|--columns NUM|Choose number of columns to display between 1, 2 or 4 |
| 37 | +-d\|--dictionary PATH|Select a specific dictionary |
| 38 | +-n\|--nocolor|Disable color output |
| 39 | +--debug|Enable debug mode |
| 40 | +--help\|-?|Print usage and a short help message and exit |
| 41 | +--version|Print version and exit |
| 42 | +--|Options processing terminator |
| 43 | + |
| 44 | +## ENVIRONMENT |
| 45 | +The CONJUGUER_DEBUG environment variable can be set to any value to enable debug mode. |
| 46 | + |
| 47 | +The DICTPATH environment variable is searched for one of the default dictionary files. |
| 48 | + |
| 49 | +Alternatively, the CONJUGUER_DICT environment variable can also be set to the path of the dictionary file you want to use. |
| 50 | + |
| 51 | +## FILES |
| 52 | +The *dict-fr-DELA* file is the preferred dictionary used, if found in the *DICTPATH*. |
| 53 | + |
| 54 | +Else, the *dict-fr-ABU-mots_communs* file (which contains half of the verbs in the DELA) will be used instead. |
| 55 | + |
| 56 | +## EXIT STATUS |
| 57 | +The **conjuguer** utility exits 0 on success, and >0 if an error occurs. |
| 58 | + |
| 59 | +## SEE ALSO |
| 60 | +typo(1), |
| 61 | +spell(1), |
| 62 | +ispell(1), |
| 63 | +aspell(1), |
| 64 | +hunspell(1), |
| 65 | +dict(7) |
| 66 | + |
| 67 | +## STANDARDS |
| 68 | +The **conjuguer** utility is not a standard UNIX command. |
| 69 | + |
| 70 | +This utility tries to follow the [PEP 8](https://www.python.org/dev/peps/pep-0008/) style guide for [Python](https://www.python.org/) code. |
| 71 | + |
| 72 | +## HISTORY |
| 73 | +This utility was made for the [PNU project](https://github.com/HubTou/PNU), |
| 74 | +both as a way to test inflected dictionaries, and to validate the data inside. |
| 75 | + |
| 76 | +## LICENSE |
| 77 | +It is available under the [3-clause BSD license](https://opensource.org/licenses/BSD-3-Clause). |
| 78 | + |
| 79 | +## AUTHORS |
| 80 | +[Hubert Tournier](https://github.com/HubTou) |
| 81 | + |
| 82 | +The source code also includes a [snippet of code](https://stackoverflow.com/questions/14693701/how-can-i-remove-the-ansi-escape-sequences-from-a-string-in-python) from Martijn Pieters, for stripping ANSI sequences in strings. |
| 83 | + |
| 84 | +## CAVEATS |
| 85 | +The results are only as good (or bad) as what's included in the dictionary used. |
| 86 | +The data in both the ABU and DELA dictionaries obviously contains errors, often on the same verbs... |
| 87 | +I do not know yet the proportion of correct conjugations. |
| 88 | +For example, "aimer" is OK, but "sortir" is horribly wrong! |
| 89 | + |
| 90 | +I do not have a French localized version yet, which is weird for a French language utility. |
| 91 | + |
| 92 | +## BUGS |
| 93 | +There are probably lots of peculiarities that would need specific processing, |
| 94 | +the verbs conjugated with the "etre" auxiliary for example. |
| 95 | + |
| 96 | +Though the software is probably mostly correct, I will consider it as Beta quality |
| 97 | +till I get a better idea of the quality of the source data and offer a way to improve it... |
0 commit comments