You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

640 B

xml-commedia

Storage for XML files used to represent Dante's Divine Comedy.

Plaintext to XML with canticle-to-xml.sh

I used shell scripts to convert plaintext cantos to XML documents with the following format:

<?xml version="1.0" encoding="UTF-8"?>

<canto num="1" num_comm="1">
	<terzine>
		<terzina num="1">
			<word>Nel</word> <word>mezzo</word> <word>del</word> <word>cammin</word> ...
			<word>mi</word> <word>ritrovai</word> <word>per</word> <word>una</word> <word>selva</word> ...
			<word>che</word> ... <word>smarrita.</word>
		</terzina>
		...
		<terzina num="...">
			...
		</terzina>
	</terzine>
</canto>