I have worked a bit on combining webmention and annotations/marginalia. You might be interested in the post about it: https://kartikprabhu.com/articles/marginalia

I reckon this can be extended to work with ebooks which have some canonical URL as well —- or just a URL which accepts webmentions.