org-noter
org-noter copied to clipboard
Feature request: Make notes associated with HTML files
I'm not sure how hard this would be to implement but I might be interested in working on it. Do you have any pointers on how I would go about doing this?
In my current use-case I would read the html in eww. It already works fine. The only things missing are the view-syncing features and the ability to open org-noter from eww-mode.
I think the package author's philosophy is that he doesn't deal with data that can't paginate.
That said EPUB files are "just" zipped up HTML files, so you could ostensibly have a workflow that crosses over to that format. Ditto rendering HTML in Word files.
I agree with the use case though.
You could also print the buffer to postscript with ps-print-buffer, which should be DocView compatible.
Yeah, things that don't paginate or that are not stable (eg. a PDF that is modified, and things move around) may not work too well with org-noter.
However, for EPUBs, I do it based on the (point) selected by the user on the buffer rendered by nov.el, so it stops working if shr starts rendering it differently (in a way that modifies the character count).
If the HTML is static, like a page you download for example, it could be done if you really want it.
You just need a way to obtain a value or reference given by the user that can non-ambiguously be dereferenced. Even a string search may work (like org-noter-pdftools).
This summer, when org-noter-pdftools was proposed, instead of merging it in, I started abstracting functionality into several functions that may have augmented functionality via hooks. If you see the code I made for org-noter-pdftools, you'll see that it has functions (eg. org-noter-pdftools--convert-to-location-cons) that are put in hooks (eg. org-noter--convert-to-location-cons-hook) that are then called by org-noter when applicable.
The list of hooks available is on the top of org-noter.el, and more can be added if you need them.
You don't need to have a function for every hook there, only for the ones that do what you need.
I hope this gave you some insight on how to do what you want :)
Hi,
This discussion makes me think of one thing. Org-noter is an essential tool in my daily work as a researcher. I am also curious about the development of Polar, which seeks to make it possible to annotate pdf and html for a wider audience.
The solution he proposes for html is a static format... but I don't know if docview or Emacs in general could read it one day...