isosphere / annotation-translator

A translation utility for book and document annotation metadata.
MIT License
0 stars 0 forks source link

Support LogSeq PDF Annotations #1

Open isosphere opened 8 months ago

isosphere commented 8 months ago

The PKMS software logseq is capable of viewing and annotating PDF files.

These annotations are stored in markdown files with this naming convention:

hls__FILENAME_TIMESTAMP_0.md

Where FILENAME is the name of the PDF being annotated, minus its extension, with special characters converted to underscores, and TIMESTAMP is what appears to be a unix timestamp.

These files contain file and file-path properties (in logseq speak) that contain the a link to the PDF file with anchor text representing its full, unstripped filename (minus path), and plain text that is identical to the anchor for the prior link.

Following these properties are [:span] sections, one per annotation. Each has the following properties:

isosphere commented 8 months ago

Literature Review

Are there existing rust crates we can get logseq annotation parsing from?

TBD

Is there any source code available that might be helpful?

TBD