A lightweight implementation of the Unicode Text Segmentation (UAX #29)