Commit graph

7 commits

Author SHA1 Message Date
1017b876e9
Attempt to calculate annotation offsets
There are clear issues remaining with this approach.

The wallabag-given 'start' and 'end' fields do _not_ just point to the
n-th paragraph all the time (like I thought) but actually represent a
beautifulsoup4 like tree descent.

So:  `p_start_match = re.match(r"/p\[(\d+)\]", annot["ranges"][0]["start"])`
will fail on any annotation not just at the n-th paragraph.

Instead we should see how we can move this tree into the beautifulsoup4
parser and make use of wallabag already having done the work for us?
2025-03-12 20:29:11 +01:00
6f79a12d2b
Add API converter 2025-03-12 20:24:48 +01:00
59aaa74d76
Refactor wallabag conversion to have simple cli 2025-03-12 20:24:47 +01:00
813327f939
Add main.py 2025-03-12 20:24:46 +01:00
36252f6f19
Add shaarli2hoarder 2025-03-12 20:24:46 +01:00
bd04d5bbde
Add wallabag2hoarder directory 2025-03-12 20:24:45 +01:00
b1c427067e
initial scaffold 2025-03-12 20:24:45 +01:00