Textual Analysis for Script Recognition