Grammalecte  Check-in [36a06e8ba5]

Overview
Comment:[cli] add comment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | cli
Files: files | file ages | folders
SHA3-256: 36a06e8ba504e8f43c8412999e0a93327d10063cc0d982888164dbb1224b26c2
User & Date: olr on 2020-03-05 20:37:43
Other Links: manifest | tags
Context
2020-03-06
14:33
[fr] faux positif check-in: 78731ea046 user: olr tags: trunk, fr
2020-03-05
20:37
[cli] add comment check-in: 36a06e8ba5 user: olr tags: trunk, cli
19:07
[cli][server][graphspell][core] interactive correction with CLI check-in: c8ad079d57 user: olr tags: trunk, cli, core, server, graphspell
Changes

Modified grammalecte-cli.py from [660294b341] to [bdbcf2787c].

225
226
227
228
229
230
231

232
233
234
235
236
237
238
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239







+







                output(sText, hDst)
                bComma = True
            if hDst:
                echo("§ %d\r" % i, end="", flush=True)
        if xArgs.json:
            output("\n]}\n", hDst)
    elif xArgs.interactive_file_to_file:
        # file processing: interactive mode
        sFile = xArgs.interactive_file_to_file
        hDst = open(sFile[:sFile.rfind(".")]+".res.txt", "w", encoding="utf-8", newline="\n")
        for i, sText, lLineSet in generateParagraphFromFile(sFile, xArgs.concat_lines):
            if xArgs.textformatter:
                sText = oTextFormatter.formatText(sText)
            while True:
                sResult, lErrors = oGrammarChecker.getParagraphWithErrors(sText, bEmptyIfNoErrors=False, bSpellSugg=True, nWidth=xArgs.width)