Image for post
Image for post

Interactive marginalia

Some asides about asides

For this year’s annual Interactive Fiction Competition, I entered a hypertext story called Harmonia. (It came in third place, hooray.) The story, in part, pertains to the ways in which narratives are re-read and re-interpreted over time, as expressed by annotations and scholarly commentary. I’ve always been fascinated by the scribbles found in old or scanned books; I once wrote a program to deface books for me. Harmonia is a story about the dialogue that annotation represents between readers separated by years, decades, or even centuries.

A very brief history of annotations on the web

The Golden Notebook Project, a collaborative reading of the Doris Lessing novel by seven selected readers, is my go-to ur-text for digitally annotated fiction. The site is from 2008 but I still draw inspiration from it:

Image for post
Image for post
Collaborative reading of Doris Lessing’s The Golden Notebook (site by Peter Collingridge/Apt)
Image for post
Image for post
Note the use of colored highlights to tie the annotation back to the main flow.
Image for post
Image for post

Marginalia versus modals

Presenting an annotation as a pop-up has some decided advantages over rendering it in the margin of the page:

  • It is a native digital affordance, so potentially a good fit for a digital story.
  • The position of a pop-up makes it crystal-clear which text is being annotated.
  • Popups are awkward to use: they require one click to open and one click to close, and closing them usually means clicking on some kind of button — also not very book-like.
  • Popups overlay the text until they are closed. It was important to me that the reader be able to have the narrative and the annotations fully readable at all times.

Asides and links in hypertext

In the narrative of Harmonia, characters are frequently commenting on other texts. In some cases, the commentary is a modern scholar writing notes in the margins about a work from a hundred years ago. In the bulk of the story, though, the commenter is also the narrator, as the protagonist Abby reflects back on her experiences from an unknown time in the future.

Image for post
Image for post
Image for post
Image for post
  1. Consistency: The back arrow is clearly marked, close to the text, and always in the same place. When the reader clicks “back,” the main text loads quickly. The experience is smooth, stable, and predictable.

Hyperlink-centric annotations

The fundamental unit of hypertext is the link—specifically, the exact words that are linked. Consider this sequence of text from Stephen Granade’s moving hypertext story about the dissolution of memory, Will Not Let Me Go:

The final design

Harmonia’s annotations are initially presented as normal hyperlinks in the narrative:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Line items

The connecting lines are implemented using the jsPlumb library, which can draw SVG bezier curves between arbitrary HTML elements. The annotations are absolutely positioned in the margin, and as a consequence I needed to manually handle collision—the annotation code will try to drop new notes below existing ones. This can be buggy, especially if the reader clicks links out of the linear reading order, and if I had to do over again I’d use a different positioning strategy and let the browser manage all that for me.

Animations

As seen above, the lines animate when drawn. I knew that the overall design of Harmonia was quite busy, with lots of fonts, text colors, line drawings, and embedded documents, so I hoped that a subtle animation would help orient readers without annoying the hell out of them.

Mobile last

Initially I thought I’d have to prepare an alternate design for phone-sized screens. When I tested with my phone in portrait mode, it was indeed too narrow to accommodate the UI, but to my surprise, landscape worked fine and the text was still readable even with my middle-aged farsightedness.

Future interfaces

Many of the entries in this year’s Interactive Fiction Competition featured novel or custom web interfaces for their stories. I’d love to see more discussion about UI and UX best practices for browser-based hypertext fiction—topics like:

  • Accessibility: should hypertext fiction be usable by mobile browsers? By screenreaders? How can we facilitate translations? How can non-technical authors get help making their stories more accessible? (There’s already funded activity in this space, which is terrific.)
  • Best practices in use of multimedia: when are sound, video, and animation additive rather than distracting? How can authors augment their stories in creative and meaningful ways without alienating readers?

References

Image for post
Image for post

Engineering Director at @TheDemocrats. I try to make nice things with games, books, and bots. https://lizadaly.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store