Open JonathanReeve opened 4 years ago
Something like this maybe? This is a harder problem than I'd imagined it would be.
<biblStruct xml:id="#id-in-criticism">
...
</biblStruct>
<standOff type="textMatching">
<link target="#id-in-FW #id-in-criticism">
<ptr xml:id="#id-in-FW" xpointer="string-range(start, end)">
<ptr target="#id-in-criticism" xpointer="string-range(start, end)">
</link>
</standOff>
I think for string-range()
it should probably reference the line xml-id: <l xml:id="L1.1.16.28">
and then the word. This will require converting the character offset to lineNo-word.
I'm going to check in with the TEI listserv people about the formatting of this.
Going forward with this structure:
<?xml version="1.0" encoding="utf-8"?>
<standOff type="textMatching">
<listBibl>
<biblStruct xml:id="id-in-criticism">
<!-- bibliographic stuff here -->
</biblStruct>
</listBibl>
<linkGrp>
<!-- for each match -->
<link target="string-range(#id-in-FW, start, end) string-range(#id-in-criticism, start, end)" />
<!-- end for -->
</linkGrp>
</standOff>
<link>
element<standoff>
element
This will require thinking of a way to format the matches. It'll most likely have to be in a standoff format (in a separate file) to avoid overlapping XML tags.