Skip to content

Commit

Permalink
sorted speaker list for KWIC (issue #188)
Browse files Browse the repository at this point in the history
  • Loading branch information
EleFri committed Jul 2, 2024
1 parent 6835d3b commit da28ef4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.XMLConstants;
Expand Down Expand Up @@ -55,7 +56,7 @@ public DefaultKWICSnippet apply(Document transcriptDoc,

DefaultKWICSnippet matchSnippet = new DefaultKWICSnippet();
ArrayList<KWICSnippetToken> content = new ArrayList();
Set<String> speakers = new HashSet<>();
SortedSet<String> speakers = new TreeSet<>();
xPath.setNamespaceContext(new ISOTEINamespaceContext());

String xPathString = "//tei:*[@xml:id = '" + leftMatchId + "']";
Expand Down

0 comments on commit da28ef4

Please sign in to comment.