ALTO upload: Parse Styles
Depends #152 (closed)
If the <Styles>
section is present, it should be parsed and stored in a dictionary (mapping style IDs to the corresponding list of metadata expected by the endpoint).
If a node has the STYLEREFS
attribute (split the content on
), the corresponding metadata will be added to the list that will be published on Arkindex (see #152 (closed)).
Crash if the ref doesn't exist.
Styles section
<Styles>
<TextStyle FONTSIZE="100" ID="TXT_1" FONTFAMILY="Times"/>
<TextStyle FONTSIZE="8" ID="TXT_2" FONTFAMILY="Times"/>
</Styles>
Publish every attribute except the ID
attribute. If the value can be parsed as an integer, use the numeric
metadata type.
Edited by Yoann Schneider