I need to convert .ass subtitles file into .xml file. So far I did it by hand, but I have to do more and more of it.
That's how process looks like:
Input .ass file:
Dialogue: 0,0:00:08.03,0:00:10.57,Default,,0000,0000,0000,,Actor says something
Dialogue: 0,0:00:11.28,0:00:21.05,Default,,0000,0000,0000,,Actor says something
etc.
Output .xml file:
<p begin="00:00:08.03" end="00:00:10.57">Actor says something</p>
<p begin="00:00:11.28" end="00:00:21.05">Actor says something</p>
etc.
I dodn't know how to solve this task.
csvmodule to parse the input (provided you remove the "Dialogue" thing at the beginning), and then use an xml emitter to get your output (xml.dom.minidomshould do the trick).