Returns a map where for each white space position, the number of
preceding non-whitespace characters from the beginning of input
is returned.
Thus, for each character-based offset o, the non-whitespace
offset may be retrieved using the floor entry for o, retrieving
its value and subtracting it from o.