Generate summary differently depending on profile
Former-commit-id: 69909c0ba08ff806081bcdd67969e1f44293f638
This commit is contained in:
parent
6b63422efb
commit
20b67e53d2
@ -455,10 +455,13 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
|
|||||||
if factId is None:
|
if factId is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if profile == 'vocab':
|
||||||
if markup['reading']:
|
if markup['reading']:
|
||||||
summary = u'{expression} [{reading}]'.format(**markup)
|
summary = u'{expression} [{reading}]'.format(**markup)
|
||||||
else:
|
else:
|
||||||
summary = markup['expression']
|
summary = markup['expression']
|
||||||
|
else:
|
||||||
|
summary = markup['character']
|
||||||
|
|
||||||
self.addedFacts.append(factId)
|
self.addedFacts.append(factId)
|
||||||
self.listDefinitions.addItem(summary)
|
self.listDefinitions.addItem(summary)
|
||||||
|
Loading…
Reference in New Issue
Block a user