segment western text as well as thai