Designing a General Framework for Text Alignment: Case Studies with Two South Asian Languages