CentreForDigitalHumanities / lidia-zotero

Zotero plugin for capturing PDF reader annotations for the LIDIA project
https://lidia.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Make text in React component selectable #51

Closed ar-jan closed 9 months ago

ar-jan commented 1 year ago

This makes text selectable, but not yet copyable.

ar-jan commented 1 year ago

User text selection does not affect what is copied. By default it seems to copy the entire annotation (selected text, annotation metadata, and annotation comment text). For example:

“The selected text” ([Corver et al., 2015, p. 57](zotero://select/library/items/GVSG8HQ5)) ([pdf](zotero://open-pdf/library/items/T8AWTHP8?page=57&annotation=XJA6NMXW)) \~~~~LIDIA~~~~  
argname: ""  
linglevel: ""  
arglang: nld  
argcont: ""  
pagestart: ""  
pageend: ""  
articleterm: ""  
lexiconterm: ""  
description: ""  
relationType: ""  
relationTo: ""

We would probably have to override the Ctrl+C behavior?

A workaround seems like it may be sufficient: double click the selected text in Zotero's left sidebar for editing, then select and copy from that.

ar-jan commented 9 months ago

The workaround (or using the lidia-browser website) is sufficient.