I have spent some time looking at TWPUB - https://twpub-tools.org. I have been particularly interested in the Notes sidebar tab. I have been studying how it works, but have hit a wall.
I have been using Dynannotate to annotate articles and recently have begun using it to annotate epubs. The epubs have been converted to plugins using epub2twpub.
In my wiki I display the annotations under a sidebar tab. I am seeking to have my annotations appear as they do in the TWPUB wiki.
I am looking to incorporate two of the features of the Notes sidebar tab ($:/plugins/immateriel/twpub-tools/sidebar/notes) into my single Story View wiki:
-
returning to the spot in the epub where the annotation/highlighting was made and
-
The annotation tiddler contains a field labeled annotate-colour. This field contains the color that was selected when the annotation/highlight was made. The user may select a different color for each highlight. In the Notes tiddler there is a div statement which is using the value of the annotate-colour field in the div statement to set the background color of each annotation (<div style=“border: 1px solid #888; padding: 1em;” style.background-color={{{ [get[color]else[#ff0]] }}} style.color=<>>).
I have attempted to set the style.background-color to the annotate-colour field. The result is a black background rather than the color value of the annotate-colour field.
Any help will be appreciated.
Thank you for your time.
Charles