mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
factor out add_textequiv
This commit is contained in:
parent
b3dd6685e7
commit
23e97a5e0b
2 changed files with 15 additions and 32 deletions
|
@ -32,3 +32,7 @@ def create_page_xml(imageFilename, height, width):
|
|||
|
||||
return pcgts, page
|
||||
|
||||
def add_textequiv(parent, text=''):
|
||||
textequiv = ET.SubElement(parent, 'TextEquiv')
|
||||
unireg = ET.SubElement(textequiv, 'Unicode')
|
||||
unireg.text = text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue