def markdown_single_text(self, catalog, cdli_number):
        """
        Prints single text in file in markdown.
       :param catalog: text ingested by cdli_corpus
       :param cdli_number: text you wish to print
       :return: output in filename.md
       """
        if cdli_number in catalog:
            pnum = catalog[cdli_number]['pnum']
            edition = catalog[cdli_number]['edition']
            metadata = '\n\t'.join(catalog[cdli_number]['metadata'])
            transliteration = '\n\t'.join(catalog[cdli_number]['transliteration'])
            normalization = '\n\t'.join(catalog[cdli_number]['normalization'])
            translation = '\n\t'.join(catalog[cdli_number]['translation'])
            m_d = """{edition}
{pnum}
---
### metadata
    {metadata}
### transliteration
    {trans}
### normalization
    {norm}
### translation
    {translation}  
""".format(pnum=pnum, edition=edition, metadata=metadata,
           trans=transliteration, norm=normalization,
           translation=translation)
            self.markdown_text = m_d
def markdown_single_text ( self , catalog , cdli_number ) : if cdli_number in catalog : pnum = catalog [ cdli_number ] [ 'pnum' ] edition = catalog [ cdli_number ] [ 'edition' ] metadata = '\n\t' . join ( catalog [ cdli_number ] [ 'metadata' ] ) transliteration = '\n\t' . join ( catalog [ cdli_number ] [ 'transliteration' ] ) normalization = '\n\t' . join ( catalog [ cdli_number ] [ 'normalization' ] ) translation = '\n\t' . join ( catalog [ cdli_number ] [ 'translation' ] ) m_d = """{edition}
{pnum}
---
### metadata
    {metadata}
### transliteration
    {trans}
### normalization
    {norm}
### translation
    {translation}  
""" . format ( pnum = pnum , edition = edition , metadata = metadata , trans = transliteration , norm = normalization , translation = translation ) self . markdown_text = m_d
Prints single text in file in markdown.
       :param catalog: text ingested by cdli_corpus
       :param cdli_number: text you wish to print
       :return: output in filename.md