Skip to content

usxconverter

Convert bible usx xml files to giella xml format.

convert2intermediate(filename)

Convert usx xml files to the giellatekno xml format.

Source code in /home/anders/projects/CorpusTools/corpustools/usxconverter.py
109
110
111
112
113
114
115
def convert2intermediate(filename):
    """Convert usx xml files to the giellatekno xml format."""
    usx_doc = etree.parse(filename).getroot()
    remove_unwanted(usx_doc)
    char_to_span(usx_doc)

    return usx_to_document(usx_doc)