Grammalecte  Check-in [c4df2bb8f2]

Overview
Comment:[njs] Cli update doc with new command
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nodejs
Files: files | file ages | folders
SHA3-256: c4df2bb8f2f6615d1b8288ca97fe528f5cb39218272c96ba84933f4d1f9d128c
User & Date: IllusionPerdu on 2018-10-21 17:31:33
Other Links: branch diff | manifest | tags
Context
2018-10-21
21:45
[njs] core add Set Dictionary for main and personal check-in: 8959d8c2be user: IllusionPerdu tags: nodejs
17:31
[njs] Cli update doc with new command check-in: c4df2bb8f2 user: IllusionPerdu tags: nodejs
15:16
[njs] Export noew function getIgnoreRules check-in: ba941ad2d4 user: IllusionPerdu tags: nodejs
Changes

Modified gc_lang/fr/nodejs/cli/bin/gramma-cli.js from [e6be35662d] to [7a17b93c22].

107
108
109
110
111
112
113






114
115
116
117
118
119
120
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126







+
+
+
+
+
+







    },
    gceoption: {
        short: "",
        arg: "+/-name",
        description: "Définit les options à utiliser par le correcteur grammatical.",
        execute: ""
    },
    gcerule: {
        short: "",
        arg: "+/-name",
        description: "Définit les règles à exclure par le correcteur grammatical.",
        execute: ""
    },
    tfoption: {
        short: "",
        arg: "+/-name",
        description: "Définit les options à utiliser par le formateur de texte.",
        execute: ""
    }
};
157
158
159
160
161
162
163
164

165
166
167
168
169
170
171
163
164
165
166
167
168
169

170
171
172
173
174
175
176
177







-
+







function toTitle(aStr) {
    return aStr.charAt(0).toUpperCase() + aStr.slice(1);
}

function repToText(oRep) {
    //console.log(oRep);
    let repText = "";
    for (const action of ["json", "perf", "gceoption", "tfoption"]) {
    for (const action of ["json", "perf", "gceoption", "tfoption", "gcerule"]) {
        if (action in oRep) {
            repText += toTitle(action) + " " + oRep[action];
        }
    }

    for (const action of ["morph", "lemma"]) {
        if (action in oRep) {

Modified gc_lang/fr/nodejs/cli/readme.md from [242a3d44cf] to [4ab9518690].

25
26
27
28
29
30
31

32
33
34
35
36
37
38
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39







+







| check     | texte    | Vérifie la grammaire et l’orthographe d'un texte.             |
| lexique   | texte    | Affiche le lexique du texte.                                  |
| spell     | mot      | Vérifie l’existence d'un mot.                                 |
| suggest   | mot      | Suggestion des orthographes possible d’un mot.                |
| morph     | mot      | Affiche les informations pour un mot.                         |
| lemma     | mot      | Donne le lemme d’un mot.                                      |
| gceoption | +/-name  | Définit les options à utiliser par le correcteur grammatical. |
| gcerule   | +/-name  | Définit les règles à exclure par le correcteur grammatical. |
| tfoption  | +/-name  | Définit les options à utiliser par le formateur de texte.     |

## Client interactif

Le mode interactif est un mode question/réponse. Pour le lancer vous devez saisir `gramma-cli -i`.

Exemple pour les vérifications portant sur un mot: