Now that I’ve settled on the types of comments to support, where do they appear? What is commentable?
I’ve given a lot of thought to this lately, and have had more than one really good conversation about it. In a comment to an earlier post, Kathleen Burns recommended I investigate CommentPress, which supports annotation on a paragraph-by-paragraph level with a spiffy UI. At the Lone Star Ruby Con this weekend, Gregory Foster pointed out the limitations of XML for delimiting commentable spans of text if those spans overlap. As one door opens, another one closes.
What kinds of things can comments (as broadly defined below) be applied to? Here’s my list of possiblities, with the really exciting stuff at the end:
- Users: See comments on user profile pages at LibraryThing.
- Articles: See annotations to article pages at Pepys’ Diary.
- Collections: Since these serve as the main landing page for sites on FromThePage, it makes sense to have a top-level discussion (albeit hidden on a separate tab).
- Works: For large works, such as the Julia Brumfield diaries, discussions of the work itself might be appropriate. For smaller works like letters, annotating the “work” might make more sense than annotating individual pages.
- Pages: This was the level I originally envisioned for comment support. I still think it’s the highest priority, based on the value comments add to Pepys’ Diary, but am no longer sure it’s the smallest level of granularity worth supporting.
- Paragraphs within a transcription: This is what CommentPress does, and it’s a really neat idea. They’ve got an especially cool UI for it. But why stop at paragraphs?
- Lines within a transcription: If it works for paragraphs, why not lines? Well, honestly you get into problems with that. Perhaps the best way to handle this is to have comments reference a line element within the transcription XML. Unfortunately, this means that you have to use LINE tags to be able to locate the line. Once you’ve done that, other tags (like my subject links) can’t span linebreaks.
- Spans of text within a transcription: Again, the nature of XML disallows overlapping elements. As a result, in the text “one two three”, it would be impossible to add a comment to “one two” and a different comment to “two three”.