|
|
|
@ -97,7 +97,7 @@ def dictToHtml(sortedDict, sortType, cantoFile): |
|
|
|
elif sortType == 'alpha-black': |
|
|
|
sortInformation = 'Words sorted alphabetically, with blacklist applied.' |
|
|
|
cantoHeaders = '<h1>' + canticle + ' ' + cantoNum + '</h1>\n<h3>' + sortInformation + '</h3>\n' |
|
|
|
boilerplate = '<html>\n' + '<head><meta charset="UTF-8">' + '<head>' + canticleAbbrv + ' ' + cantoNum + ' ' + sortType + '</head>\n' + cantoHeaders + '<table>\n<tr>\n<th>Word</th><th>Count</th>\n</tr>\n' |
|
|
|
boilerplate = '<html>\n' + '<head><meta charset="UTF-8">' + '<title>' + canticleAbbrv + ' ' + cantoNum + ' ' + sortType + '</title></head>\n' + cantoHeaders + '<table>\n<tr>\n<th>Word</th><th>Count</th>\n</tr>\n' |
|
|
|
boilerclose = '</table>\n</html>' |
|
|
|
htmlCanto.write(boilerplate) |
|
|
|
for word, count in sortedDict.items(): |
|
|
|
|