A generalized line segmentation method for multi-script handwritten text documents. (February 2023)