Feature Idea: Resolve annotations without CFIs by searching for the text and generating a CFI on first click #1619
kit-lawless
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
I do think something like this would be useful. The main issue is in the implementation. Like how does it match for the text? Foliate's search module might work but it's not really designed for this. Does it search the whole book or only in some specific chapter? And it would probably be better if you can do it for all the annotations at once. One could also argue that generating CFIs should be for the external tool that converts the annotations, and doesn't have to be implemented in Foliate. But it's still useful, for example, when the book is edited. CFI itself has text assertions (which are not supported by Foliate), so one can say that matching by text is something that is quite appropriate or even necessary for any CFI implementation. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I often import highlights from Kindle clippings and creating a simple script to convert them into Foliate-compatible JSON is easy enough but generating the CFIs is harder. Annotations with no CFI show up in the side bar but nothing happens when you click on them. However, it seems to me that Foliate's search functionality could solve this problem.
Proposed Behaviour
When an annotation has no CFI, Foliate could:
textas a search query in the current book.This would leverage existing functionality to make Foliate much friendlier to imported annotations and could be built upon in future for greater import/export functionality for annotations.
Questions
Thanks for any feedback, just thought I would ask before I try prototyping this myself.
All reactions