Handling of glosses: implemented a new feature
While marking up the Sayers article, we came up against a problem: there are many instances of discussion in the text in which words are glossed using quotation marks, as in the following:
The cognate of such a name in Old Norse would be based on bjartr “bright, shining” (and in Old English on beorht), although it should be conceded at the outset that Snorri’s list, as we have it, does not contain it.
Our normal practice would be to mark up the glosses using the <gloss>
tag, which would result in their appearing with square brackets instead of quotations. However, JT feels that there's something intrinsic to this kind of glossing (which arises out of the fact that the glossing itself is at the heart of the discussion itself, rather than peripheral to it) which means that the quotation marks are preferable to the square brackets. After some discussion and thought, JT decided we should add a second category of gloss to handle this. My approach is to use <gloss rend="quoted">
, which could then be transformed into quotes instead of square brackets in the XSLT. I've implemented this in the XSLT (PDF and XHTML output), with the added wrinkle that we need to take account of possible instances of Spanish or French text that would require different quote marks. I've tested the result using the partially-marked-up Sayers paper, and it seems to be working fine.