MKlamer / Motherhood-Journal

A Digital edition dissertation project
http://www.elizabethgaskelljournal.com
4 stars 0 forks source link

Surrounding unicode long s with "Choice" elements #12

Closed MKlamer closed 4 years ago

MKlamer commented 6 years ago

Elisa,

I've just been updating my XML to surround the long s unicode characters (&#383;) with <choice> element tags.

I debated whether to enclose the whole word or just the unicode characters and ended up just enclosing the character, so that each word using the long s (there were 119 in the document) looks like this "lessons", for example: le<choice><sic>&#383;</sic><reg>s</reg></choice>sons

Is this correct? I thought this made the most sense. My thinking was, that when I render the text using XSLT I'll only want to change the individual character depending on the reading view (annotated would include the long s character whereas a simple reading view would replace it with the standard s character), and the rest of the word will remain the same.

Not fully knowing the procedures for writing the XSLT, though, I wasn't sure.

No hurry to reply - I just wanted to throw the question out there. I managed to use regex to also find the entire word, so if I need to do a find and replace to wrap the whole word in <choice> instead, I'm pretty sure I know how to do it.