Hi all,
here you can find a Python 2.x script to extract the annotations and highlights from an .annot file generated by the Odyssey.
You need Python 2.x and python-lxml installed. Confirmed to work under Linux and Windows.
Usage:
Code:
$ python export_Odyssey_notes.py [ARGUMENTS]
Arguments:
-h, --help : print this usage message and exit
-f, --file <file> : <file> is the path to .annot file
-c, --csv : output CSV values, instead of human-readable strings
-o, --output <file> : write output to <file>
Exit codes:
0 = no error
1 = invalid argument(s) error
2 = specified file not found
4 = provided file is not a valid .annot file
8 = output file cannot be written
Examples:
1. Print this usage message
$ python export_Odyssey_notes.py -h
2. Print annotations and highlit passages in human-readable form
$ python export_Odyssey_notes.py -f ebook.epub.annot
3. As above, but output to output.txt
$ python export_Odyssey_notes.py -f ebook.epub.annot -o output.txt
4. As above, but output in CSV form
$ python export_Odyssey_notes.py -c -f ebook.epub.annot
5. As above, but output to output.csv
$ python export_Odyssey_notes.py -c -f ebook.epub.annot -o output.csv