[sword-devel] OSIS catchWord

DM Smith dmsmith at crosswire.org
Sun Oct 14 18:37:42 MST 2012


In working on the ESV, catchWord is used a lot in notes to tie the note to the text in the verse. I'm running into a problem with Exodus 3:14.

The input text I'm coming from is:
<verse num="14">
God said to Moses, “<span class="divine-name">I am who I am</span>.”<note class="alternative">Or <span class="divine-name"><span class="catch-word">I am</span> what I am</span>, or <span class="divine-name"><span class="catch-word">I</span> will be what I will be</span></note> And he said, “Say this to the people of Israel, ‘<span class="divine-name">I am</span> has sent me to you.’”
</verse>

The most natural way to represent the verse is:
<verse osisID="Exod.3.14">
God said to Moses, “<divineName>I am who I am</divineName>.”<note type="alternative">Or <divineName><catchWord>I am</catchWord> what I am</divineName>, or <divineName><catchWord>I</catchWord> will be what I will be</divineName></note> And he said, “Say this to the people of Israel, ‘<divineName>I am</divineName> has sent me to you.’”
</verse>

(I've simplified this by replacing the <q> element with the quotation mark, removing the cross reference note, removing italics and not showing the attributes that add nothing to the question. Just kept what showed the problem.)

The problem is that catchWord while being allowed in <note> is not allowed in <divineName>. (FYI: catchWord is only allowed in <note> and <p>)

catchWord does allow for many elements, including divineName, so I can flip the nesting and code this as:
<verse osisID="Exod.3.14">
God said to Moses, “<divineName>I am who I am</divineName>.”<note type="alternative">Or <catchWord><divineName>I am</divineName></catchWord><divineName> what I am</divineName>, or <catchWord><divineName>I</divineName></catchWord><divineName> will be what I will be</divineName></note> And he said, “Say this to the people of Israel, ‘<divineName>I am</divineName> has sent me to you.’”
</verse>

This will validate and it will render correctly, but it is just bad.

Any advice?

In Him,
	DM


More information about the sword-devel mailing list