jacknoutch / eclogues_commentary

A Digital Commentary of Vergil's Eclogues
MIT License
0 stars 0 forks source link

Comments system #7

Open jacknoutch opened 2 months ago

jacknoutch commented 2 months ago

A new comments system is required.

It should:

When a word is selected, the info card should display the relevant comments which include that word.

When a comment is selected, all the words which are included in that comment should be given focus. (The word originally clicked should itself be highlighted in some other, distinctive way.)

Further possible enhancements:

jacknoutch commented 2 months ago

If comments are to include hyperlinks to other parts of the poem, then the site will need to resolve URLs that point to various resources, such as other comments.

An alternative method would be not to use hyperlinks proper, but a JS function which does something more custom dynamically.

The first of these is the cleaner for writing comments. However, even in that instance, it seems likely that some preprocessing will need to take place in order to convert .md files to properly actionable XML. Probably this will include some custom processing of markdown to convert the links into something more substantial than the writer of the comment has set out.

jacknoutch commented 2 months ago

🐞 Words with multiple comments will not work - the function only gives the first entry found.