-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Sync article annotations to Wallabag using plugin #7143
Comments
I'll have to check with the API, but translation from one format to the other might be quite challenging. |
Testing with one annotation, it seems the formats are somewhat similar, at least in how the highlight's position in the text is stored. This is how Wallabag stores a highlight of a section of the KOReader wiki home page:
KOReader stores a highlight of the same section this way, in the
|
That looks XPath-ish on both sides, but I think CRe's idea of XPaths can be a bit peculiar at times... @poire-z might be able to drop some knowledge on that front ;). |
Don't know much about the real XPath syntax - but it indeed looks like names/indexes are similar on both sides, with added DocFragment and .text() stuff. So, one could try at converting between the 2 formats (outside of crengine of course :) Code involved if needed to understand the xpointers format (the V2 stuff): |
So, is this doable ? 😃 |
Currently have a proof of concept mostly working (for sending notes) here, should be able to get it into a usable shape before the year is out |
@Kreest just tried your patch and it seems that it breaks downloading articles as ePub. I get HTML files without extension instead (that I can't see from KOReader's internal file browser). Did I miss something? |
@pipoprods You probably didn't try the patch but the entire file. Sometimes that's the same thing, but in this case the entire file doesn't have #11532. |
Oh yes, that's it… I'll try again later. |
Does your feature request involve difficulty completing a task? Please describe.
Currently, if one uses the Wallabag plugin to read articles on the device, there is no way to transfer highlights made with KOReader back to Wallabag.
Describe the solution you'd like
It would be nice if the Wallabag plugin supported syncing annotations from KOReader to Wallabag.
Additional context
Wallabag has an API to fetch and upload annotations (https://app.wallabag.it/api/doc).
The text was updated successfully, but these errors were encountered: