Differences From Artifact [ed7458a4d3]:
- File cli.py — part of check-in [4a53af847f] at 2017-06-30 19:38:27 on branch trunk — [core] ibdawg: select entries from dictionary (can uncompress the full dictionary) (user: olr, size: 12482) [annotate] [blame] [check-ins using] [more...]
To Artifact [a5ccfdebb3]:
- File cli.py — part of check-in [1edae62ad8] at 2017-11-07 11:56:37 on branch spellsugg — [core] ibdawg: another suggestion method (user: olr, size: 12546) [annotate] [blame] [check-ins using]
| ︙ | |||
206 207 208 209 210 211 212 213 214 215 216 217 218 219 | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | + |
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)))
echo(" | ".join(oDict.suggest2(sWord)))
elif sText.startswith(">"):
oDict.drawPath(sText[1:].strip())
elif sText.startswith("="):
for sRes in oDict.select(sText[1:].strip()):
echo(sRes)
elif sText.startswith("/+ "):
gce.setOptions({ opt:True for opt in sText[3:].strip().split() if opt in gce.getOptions() })
|
| ︙ |