FR: Unified Annotation CFI for Koreader, Calibre, Zotero Edit
**Does your feature request involve difficulty completing a task? Please describe.**
It is hard to convert a CFI (EPUB Canonical Fragment Identifier) from KOreader to a Calibre compatible one and even more a zotero, and could possible corrupt the file or make the whole database unusable in the case of zotero.
**Describe the solution you'd like**
That's why I'd propose having one unified way of handling CFI's for annotations, that doesn't mean the old system has to be replaced it could also be made in addition.
One unified way of doing it with Calibre at least would help a ton!
**Describe alternatives you've considered**
I've already made this script https://github.com/l-konrad/Calibre-Highlights-to-Zotero which utilizes https://github.com/eliascotto/export-kobo to convert the CFI, but the script is buggy and I just ran into problems today:
```
Fetching highlights for: Yahama Sound Reinforcement
Could not find ToC
Could not use precise highlight targeting for bookmark a75a95b8-36d2-4813-bbe9-1f2ae07d8d50
Could not use precise highlight targeting for bookmark 4d0c770d-d3be-48e4-9ed4-37323b9c1e2b
```
And attempts have been made at making a transfer from KOreader too, although they don't work for me at all:
https://github.com/renke/koreader-to-calibre-highlights
and seems to use ai to generate their code
I'm also making a request for each repository and will attach them below
It is hard to convert a CFI (EPUB Canonical Fragment Identifier) from KOreader to a Calibre compatible one and even more a zotero, and could possible corrupt the file or make the whole database unusable in the case of zotero.
**Describe the solution you'd like**
That's why I'd propose having one unified way of handling CFI's for annotations, that doesn't mean the old system has to be replaced it could also be made in addition.
One unified way of doing it with Calibre at least would help a ton!
**Describe alternatives you've considered**
I've already made this script https://github.com/l-konrad/Calibre-Highlights-to-Zotero which utilizes https://github.com/eliascotto/export-kobo to convert the CFI, but the script is buggy and I just ran into problems today:
```
Fetching highlights for: Yahama Sound Reinforcement
Could not find ToC
Could not use precise highlight targeting for bookmark a75a95b8-36d2-4813-bbe9-1f2ae07d8d50
Could not use precise highlight targeting for bookmark 4d0c770d-d3be-48e4-9ed4-37323b9c1e2b
```
And attempts have been made at making a transfer from KOreader too, although they don't work for me at all:
https://github.com/renke/koreader-to-calibre-highlights
and seems to use ai to generate their code
I'm also making a request for each repository and will attach them below
Upgrade Storage
https://github.com/koreader/koreader/issues/14690