In to_altoxml_text()
words = []
space_idxs = [-1] + space_idxs + [len(aligned_letters)]
for i in range(len(space_idxs[1:])):
if space_idxs[i] != space_idxs[i + 1] - 1:
words.append([aligned_letters[space_idxs[i] + 1], aligned_letters[space_idxs[i + 1] - 1]])
splitted_transcription = self.transcription.split()
words and splitted_transcription do not fit, which causes a failure in indexing -> splitted_transcription[w]
- python split ignores the tab, but, porbably, align_text() does not
Where to handle the TABs?
In to_altoxml_text()
words and splitted_transcription do not fit, which causes a failure in indexing -> splitted_transcription[w]
Where to handle the TABs?