Text this: Categorial Model of Four-Line Diagrammatic Representations Recognition