From 7bd7f6d344dde7ebfd5176981a3f81545035f611 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 29 May 2016 16:39:35 -0700 Subject: [PATCH] Show popular terms in bold --- yomi_base/reader_util.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/yomi_base/reader_util.py b/yomi_base/reader_util.py index e64fc79..0ff4fd9 100644 --- a/yomi_base/reader_util.py +++ b/yomi_base/reader_util.py @@ -201,15 +201,22 @@ def buildVocabDef(definition, index, query): glossary += u'
  • {0}
  • '.format(g) glossary += u'' + expression = u'' + if 'P' in definition['tags']: + expression += u'{}'.format(definition['expression']) + else: + expression += definition['expression'] + expression += u'' + html = u''' {links} - {expression} + {expression} {reading} {rules} {glossary}

    '''.format( links = links, - expression = definition['expression'], + expression = expression, reading = reading, glossary = glossary, rules = rules