One edit to the scanned text: replace length characters at offset with replacement.
length
offset
replacement
How many characters of the original it covers.
Where the edit starts, in the original text.
What replaces them (empty to remove).
How dangerous the finding behind it is; the higher one wins when edits overlap.
One edit to the scanned text: replace
lengthcharacters atoffsetwithreplacement.