mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
update nvim config
This commit is contained in:
15
bin/kobo-parse-highlights
Executable file
15
bin/kobo-parse-highlights
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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)
|
||||
Reference in New Issue
Block a user