code: def html_print_single_text(self, catalog, cdli_number, destination):
          
          if cdli_number in catalog:
              pnum = catalog[cdli_number]['pnum']
              edition = catalog[cdli_number]['edition']
              metadata = '<br>\n'.join(catalog[cdli_number]['metadata'])
              transliteration = '<br>\n'.join(catalog[cdli_number]['transliteration'])
              normalization = '<br>\n'.join(catalog[cdli_number]['normalization'])
              translation = '<br>\n'.join(catalog[cdli_number]['translation'])
              self.html_single = """<!DOCTYPE html>
  <html lang="en">
  <head>
  <meta charset="UTF-8">
  <title>{edition}</title>
  </head>
  <body><table cellpadding="10"; border="1">
  <tr><th>
  <h2>{edition}<br>{pnum}</h2>
  </th><th>
  <h3>transliteration</h3>
  </th><th>
  <h3>normalization</h3>
  </th><th>
  <h3>translation</h3>
  </tr><tr><td>
  {metadata}</td><td>
  <p>{trans}
  </td><td>
  <p>{norm}
  </td><td>
  <font size='2'>
  {translation}
  </font></td></tr>
  
  </table>
  <br>
  </body>
  </html>""".format(
      pnum=pnum, edition=edition, metadata=metadata,
      trans=transliteration, norm=normalization,
      translation=translation)
              with open(destination, mode='r+', encoding='utf8') as t_f:
                  t_f.write(self.html_single)
docs: Prints text_file in html.
          :param catalog: CDLICorpus().catalog
          :param cdli_number: which text you want printed
          :param destination: where you wish to save the HTML data
          :return: output in html_file.html.