Differences From Artifact [4b02966a37]:
- File grammalecte-cli.py — part of check-in [e0ce6b10d7] at 2020-09-10 12:17:59 on branch salxg — [core][graphspell][fx][cli] lexicographer: update (user: olr, size: 18556) [annotate] [blame] [check-ins using] [more...]
To Artifact [26cba906c4]:
- File grammalecte-cli.py — part of check-in [b5ba52c145] at 2021-01-07 13:48:47 on branch trunk — [cli] clear text beginning by TEST: (user: olr, size: 18778) [annotate] [blame] [check-ins using]
| ︙ | |||
359 360 361 362 363 364 365 366 367 368 369 370 371 372 | 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | + + + + |
for dSubToken in dToken["lSubTokens"]:
if dSubToken["sValue"]:
echo(" · {0:20}".format(dSubToken["sValue"]))
for sMorph, sLabel in zip(dSubToken["lMorph"], dSubToken["aLabels"]):
echo(" {0:40} {1}".format(sMorph, sLabel))
#echo(txt.getReadableErrors(dSentence["lGrammarErrors"], xArgs.width))
else:
if sText.startswith("TEST: "):
sText = sText[6:]
sText = sText.replace("{{", "").replace("}}", "")
sText = re.sub(" ->> .*$", "", sText).rstrip()
for sParagraph in txt.getParagraph(sText):
if xArgs.textformatter:
sParagraph = oTextFormatter.formatText(sParagraph)
sRes, _ = oGrammarChecker.getParagraphWithErrors(sParagraph, bEmptyIfNoErrors=xArgs.only_when_errors, nWidth=xArgs.width, bDebug=xArgs.debug)
if sRes:
echo("\n" + sRes)
else:
|
| ︙ |