A.S.SP
speech numbering and rendering
: Martin Holmes
Minutes: 90
We have a fairly meticulously-worked-out specification for giving ids to individual speeches which identify their position in the play structure, and for some plays those ids have already been added. Now we’ve reached the stage where we need to be able to render them out on the page.
JJ and NV raised a feature request on GitHub for this, and today I’ve done a minimal implementation which:
- adds a 6rem margin to the entire play text to make room for these things;
- places an inline-block anchor/link in that margin with the abbreviated text of the speech identifier; and
- adds a title element with the full expansion of the speech identifier.
If the build for this succeeds, then the next stage will be to make a final decision on what should actually appear on desktop and mobile, and how access to the full expansion should be triggered on mobile. My current thought is that a little info icon could appear to the right of the abbreviated form and trigger a popup showing the full form.