def get_tag_translate(self, tag):
translate_dict = {
"p": "p",
"punctuation": "",
"heading": "span style='font-style: bold'",
#"heading": "span style='font-style: bold; font-size:150%'",
#"h1": "span style='font-style: bold; font-size:150%'",
"boldface": "b",
"italics": "i",
"underline": "u",
"superscript": "sup",
"subscript": "sup",
"object": "object",
"text": "html"}
if tag in translate_dict:
return translate_dict[tag]
else:
print("unsupported tag: ", tag)
return tag
评论列表
文章目录