Differences From Artifact [8ec24a7015]:
- File cli.py — part of check-in [cee9fdd1aa] at 2017-06-25 23:41:22 on branch trunk — [core] ibdawg: suggestion mechanism update (user: olr, size: 12095) [annotate] [blame] [check-ins using]
To Artifact [2ae9df701e]:
- File cli.py — part of check-in [d99a910d73] at 2017-06-28 19:40:53 on branch trunk — [core] ibdawg: draw path taken by word in dawg (user: olr, size: 12185) [annotate] [blame] [check-ins using]
| ︙ | |||
204 205 206 207 208 209 210 211 212 213 214 215 216 217 | 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | + + |
echo("* " + sWord)
for sMorph in oDict.getMorph(sWord):
echo(" {:<32} {}".format(sMorph, oLexGraphe.formatTags(sMorph)))
elif sText.startswith("!"):
for sWord in sText[1:].strip().split():
if sWord:
echo(" | ".join(oDict.suggest(sWord)))
elif sText.startswith(">"):
oDict.drawPath(sText[1:].strip())
elif sText.startswith("/+ "):
gce.setOptions({ opt:True for opt in sText[3:].strip().split() if opt in gce.getOptions() })
echo("done")
elif sText.startswith("/- "):
gce.setOptions({ opt:False for opt in sText[3:].strip().split() if opt in gce.getOptions() })
echo("done")
elif sText.startswith("/-- "):
|
| ︙ |