(adapts to differing widths in a table. assumes spaces are used as field separator. looks only at one row.) function adaptColMarkings(text1, text2, rowMarking, colMarkings) row1 = text1.getRow(rowMarking) row2 = text2.getRow(rowMarking) cols1 = findColumns(row1) cols2 = findColumns(row2) newColMarkings = [] for colMarking in colMarkings: idx = cols1.indexOf(colMarking) col2 = cols2.get(idx) add col2 to newColMarkings with label of colMarking end return newColMarkings end