MCPcopy
hub / github.com/skywind3000/ECDICT / word_level

Method word_level

dictutils.py:71–81  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

69 return text.strip()
70
71 def word_level (self, data):
72 head = ''
73 collins = data.get('collins', '')
74 if isinstance(collins, str) or isinstance(collins, unicode):
75 if collins in ('', '0'):
76 collins = None
77 if collins:
78 head = str(collins)
79 if data.get('oxford'):
80 head = 'K' + head
81 return head.strip()
82
83 def word_exchange (self, data, style):
84 if not data:

Callers 4

compile_stardictMethod · 0.95
compile_mdxMethod · 0.95
_generate_htmlMethod · 0.95
get_levelMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected