Finds each library's contiguous run of tags and replaces it with one aggregate tag.
Runs are applied from the end of the document backwards so offsets stay valid. Overlapping runs are refused: two libraries claiming one tag means the match is wrong.
Finds each library's contiguous run of tags and replaces it with one aggregate tag.
Runs are applied from the end of the document backwards so offsets stay valid. Overlapping runs are refused: two libraries claiming one tag means the match is wrong.