add auto detection of word gap in reflowing