Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse matches into TEI format #6

Open
JonathanReeve opened this issue Mar 18, 2020 · 5 comments
Open

Parse matches into TEI format #6

JonathanReeve opened this issue Mar 18, 2020 · 5 comments

Comments

@JonathanReeve
Copy link
Member

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.

@JonathanReeve JonathanReeve added this to To do in Align with Criticism via automation Mar 18, 2020
@JonathanReeve JonathanReeve moved this from To do to In progress in Align with Criticism Mar 18, 2020
@JonathanReeve
Copy link
Member Author

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>

@JonathanReeve
Copy link
Member Author

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.

@JonathanReeve
Copy link
Member Author

I'm going to check in with the TEI listserv people about the formatting of this.

@JonathanReeve
Copy link
Member Author

@JonathanReeve
Copy link
Member Author

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Align with Criticism
  
In progress
Development

No branches or pull requests

1 participant