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

Method dump_map

stardict.py:1250–1256  ·  view source on GitHub ↗
(self, dictionary, lower = True)

Source from the content-addressed store, hash-verified

1248
1249 # 返回词典里所有词的 map,默认转为小写
1250 def dump_map (self, dictionary, lower = True):
1251 words = {}
1252 for _, word in dictionary:
1253 if lower:
1254 word = word.lower()
1255 words[word] = 1
1256 return words
1257
1258 # 字典差异导出
1259 def discrepancy_export (self, dictionary, words, outname, opts = ''):

Callers 4

discrepancy_exportMethod · 0.95
discrepancy_importMethod · 0.95
compile_stardictMethod · 0.80
compile_mdxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected