entab should work when white spaces reach the tabostop - then this run can be replaced with a tab character.
For example, the following line of text (ruller for reference):
1 1 2 2 2 1 8 2 6 0 4 8 -------+---+---+---+---+---+ this is a line
should look like entab -8 +4 :
\t this \tis a line
(note that it would be wise for the line to have two tabs following 'this', since either a space or a tab has reached this particular tab stop).
source share