#!/usr/bin/env python3
|
|
# script to print all the Kobo highlights in a human readable fashion
|
|
|
|
import sys
|
|
import xml.etree.ElementTree as ET
|
|
|
|
tree = ET.parse(sys.argv[1])
|
|
root = tree.getroot()
|
|
|
|
|
|
for annotation in root:
|
|
for target in annotation:
|
|
for fragment in target:
|
|
for text in fragment:
|
|
print("-", text.text)
|