Skip to content
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

[Feature/Enhancement] support for integration with document readers #1524

Open
jfferson opened this issue Jan 6, 2024 · 3 comments
Open

Comments

@jfferson
Copy link

jfferson commented Jan 6, 2024

Enhancement / feature description:
I am considering the possibility of referencing the notes and bookmarks done through document readers. For enabling it the user could define a program for searching those metadata on the mindforger settings; other than that for this application what would be required is that it signals the search key to be used on the program

for it to work the developer would also need to show a relation of index/content, so that the user knows how to make the refference, but the developer could provide that interface independently, or this application could provide a field for the listing; the really essential part from here is the signaling

then what would happen is that mindforger would transparently request the search as needed to the program (say if the user clicks on the link name) and open the content of the search as a view of a plain document or a section

another option is that mindforger could just have its own file format as an index store for enabling such integration

particularly I would be using it for providing integration with okular
...

Screenshots (with sketch), drawings, mocks, wireframes or diagrams: (if available)

...

@dvorka
Copy link
Owner

dvorka commented Jan 6, 2024

okular

@jfferson This is a very nice and useful idea. I also use Okular - both bookmarks and highlighting, notes only rarely. Anyway, I would like to understand the idea more in depth...

In the new version of MindForger (not released yet) you can configure a document directory (a library) and MindForger indexes all files from subdirectories so that they can be searched, linked from notes and opened. The metadata (PDF) of the documents is not indexed in any way yet.

Could you please describe in more detail how MindForger should retrieve information about notes, bookmarks and highlighted sections? Subsequent saving inside MindForger in a note representing the document will already be easy with what I have done.

Thanks again for the idea and your interest in MindForger!

@jfferson
Copy link
Author

jfferson commented Jan 7, 2024

The option I explored for this feature is using a specialized library for executing the parsing and a while ago I found out that libokular provides those representations for multiple types of documents, hence the idea of integration, though only pdf has metadata written directly on the document, for the others okular creates a .okular file. Anyway at least for getting it from a page in a document there is a solution that can be get from https://superuser.com/questions/673917/modify-okular-highlight-to-automatically-copy-highlighted-text-into-comment and jsqliu/okular@ee9a8f5 ; that is for the work of getting the information. Then that execution would be called with also the index of the relevant annotation when it is requested for that annotation to be shown and would output the textual content to the consumer or handler. For it to work the user needs to have beforehand an option to have a listing of the pairs of [index,annotation] on the whole documents so that the user can do the refferences on the notes

@dvorka
Copy link
Owner

dvorka commented Jan 8, 2024

Nice! It looks doable. Thank you for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants