zotero / reader

PDF/EPUB/HTML reader for Zotero
Other
129 stars 30 forks source link

Feature: Typewriter Annotation support #102

Closed bfahrenfort closed 1 year ago

bfahrenfort commented 1 year ago

A lot of people (including myself) want to see the Typewriter annotation from pdf.js implemented in Zotero. I don't know enough about the viewer application to complete it, but this is what I have so far.

New annotation type: freetext

New editor mode: typewriter

New icon: IconFreetext

Other issues:

Help is appreciated--I'd love to see this feature as it would mean I don't have to swap to Okular or something else with just a hint more functionality than Zotero to finish out my workflow.

bfahrenfort commented 1 year ago

This is the object that currently gets created when I use the Typewriter mode, rather than the freetext I specify to create:

[
  {
    "type": "image",
    "color": "#ffd400",
    "position": {
      "pageIndex": 0,
      "rects": [
        [
          355.404,
          114.894,
          519.319,
          144.766
        ]
      ]
    },
    "text": "",
    "comment": "",
    "tags": [],
    "id": "EAI3CTGM",
    "dateCreated": "2023-05-16T22:49:37.470Z",
    "dateModified": "2023-05-16T22:49:37.470Z",
    "authorName": "John",
    "isAuthorNameAuthoritative": true,
    "pageLabel": "1",
    "sortIndex": "00000|003887|00647",
    "image": <a stupidly long hash>
  }
]
mrtcode commented 1 year ago

Already implemented. But thanks anyway.