Worked on the rendering of the apparatus, specifically on the showing of the relevant line in a popup, with the lemma highlighted:
- Modified
poem.xslso that it makes the lemma into a link which calls a JavaScript function. - Wrote JavaScript to find the relevant line.
- Wrote functions to render out the text of the line, ready for highlighting.
- Added a function to highlight any instances of the lemma in the line, then pop up the rendered line on the right of the screen.
- Added CSS as appropriate (will need some tweaking for subtlety).
- Tested.
Everything works, except that:
- Sometimes there's a lemma which is not quite the same as the line, or portion of it. See LDev005 line 17 for an example. In this case, nothing is highlighted. That might be OK.
- Sometimes there are elements in the line which shouldn't be part of the popup, such as notes or figures. These need to be suppressed. See LDev005 line 31 for an example.
Adding this as a task so that I get the above two things looked at before my vacation.