Zotfile: setting highlight extraction opacity

edited September 22, 2019
Hello,

I hope it is okay to ask for help with Zotfile on this forum.

I'm currently extracting highlighted text including the color of the highlight. However the opacity is such that it is barely readable. I'm wondering if I can add something to the string that I'm using (below) to lower the opacity of the background color.

p><span style="background-color:%(color);">"%(content)"</span> (%(cite))</p>

Cheers,

Haydn
  • I believe it should work to change:
    style="background-color:%(color);"

    To:
    style="background-color:%(color);opacity:0.5;"
  • edited September 22, 2019
    Thanks for the suggestion. It did lower the background opacity. Unfortunately, it also makes the text more transparent.

    Bit of further info: this field is called:
    extensions.zotfile.pdfExtraction.formatAnnotationHighlight

    I don't know whether there are further related fields.
  • Okay, you could try to use the rgba() parameter, something like this:
    style="background-color:rgba(%(color).concat(.5));"
Sign In or Register to comment.