weirdNox / org-noter

Emacs document annotator, using Org-mode
GNU General Public License v3.0
1.08k stars 101 forks source link

The notes position not correct in Nov.el while reading ePUB files #85

Open usman-f opened 4 years ago

usman-f commented 4 years ago

I used 'i' to insert notes in specific locations in an ePUB files using Nov.el.

Afterwards, if I use C-M-p/n to move between the notes the positions in the Nov.el buffer are not the same as when the notes were added.

I am on Windows and the default font that I use is not mono-spaced. Sharing that in case if it might be contributing to the issue.

weirdNox commented 4 years ago

Hi there! I just tested this and I believe this is working like intended, which probably isn't what you expected. When simply clicking i, I didn't know where to place the note, so, by default, it goes to the middle of the current view (by middle I mean "(min visible pos + max visible pos)/2"). You probably want it to go to where the cursor is, right? The only way to do that (without defining a function on your init.el, which works too), is to press M-i and select with your mouse where you want the note to be.

Note that, with nov.el, there's no guarantee that anything will work in the long run, as it could change the rendering engine and modify the number of characters that each page has (the chapter would probably be okay).