Manuscript Offprint

arXiv:2608.28195

UniLipi: A Unified Multi-Script OCR for Historical Indic Manuscripts

Tathagata Ghosh, Sai Madhusudan Gunda, Simran Singh Sandral, Ravi Kiran Sarvadevabhatla

Tathagata Ghosh [0009−0009−6183−7393]^{[0009-0009-6183-7393]}, Sai Madhusudan

Gunda [0009−0003−7226−3635]^{[0009-0003-7226-3635]},

Simran Singh Sandral [0009−0003−6256−9286]^{[0009-0003-6256-9286]}, Ravi Kiran

Sarvadevabhatla [0000−0003−4134−1154]^{[0000-0003-4134-1154]}

tathagata.ghosh@research.iiit.ac.in, sai.gunda@research.iiit.ac.in, ssandral@gitam.in, ravi.kiran@iiit.ac.in

International Institute of Information Technology Hyderabad, INDIA

https://ihdia.iiit.ac.in/unilipi/

Abstract. Optical character recognition (OCR) for handwritten Indic manuscripts is essential for large-scale digitization and computational access to manuscript heritage. However, existing approaches are typically developed for one script at a time and require substantial script-specific customization. This limits scalability and practical deployment across diverse collections. We present UniLipi, a unified multi-script OCR model for handwritten Indic manuscripts trained jointly across 13 Indic scripts within a single framework. UniLipi directly handles realistic manuscript conditions, including extreme variation in line geometry, large variation in line length, and partial interruptions caused by non-textual manuscript entities such as holes, stains, or pictorial illustrations. To operate effectively under ultra low-resource conditions, the model leverages script-aware synthetic manuscript data generation, substantially reducing reliance on large volumes of real annotated data. Beyond historical manuscripts, we show that UniLipi serves as an effective foundational pretrained model. Specifically, its learned representations enable good OCR performance for contemporary Indic handwriting and extend to several non-Indic scripts, including Tibetan, Italian, Latin, and Chinese scripts. In addition to transcription, UniLipi predicts script identity and per-line native character counts, supporting practical manuscript cataloging workflows.

Keywords: Historical OCR · Handwritten Text Recognition · Multi-script OCR

1 Introduction

Optical character recognition (OCR) for handwritten Indic manuscripts is a critical enabler for large-scale digitization, preservation, and computational access to Indic documentary heritage, which spans centuries, regions, and institutional contexts. Beyond individual archives, coordinated efforts increasingly seek

Tathagata et al.

Figure

Fig. 1: Diversity of manuscript styles across Indic script regions. Examples of manuscript lines from multiple historical collections grouped by geographic and script traditions: North/Central Indian, Southern Indian, Himalayan/Buddhist, Western Indian, and Eastern Indian. The examples illustrate substantial diversity in writing substrates (palm leaf, paper), layout geometry, stroke thickness, ink characteristics, and orthographic structure across scripts and regions. This diversity motivates UniLipi model and reference-conditioned synthesis pipeline, which extracts appearance and geometric priors from real manuscripts to generate realistic synthetic training data.

OCR systems that can operate robustly across diverse collections, scripts, and material conditions. In this context, mission-mode national initiatives such as GyanBharatam [26] articulate the need for systematic manuscript digitization, and open challenges such as GyanSetu [20] have explicitly explored how AI can be brought into service to meet these requirements. Despite recent progress in handwritten text recognition, OCR for Indic manuscripts remains fragmented, script-specific, and difficult to deploy at scale.

A fundamental challenge is the ultra low-resource nature of historical handwritten data. Many Indic scripts are represented by a small number of manuscript collections, often with limited annotations, high intra and inter-writer variability, and substantial variation in manuscript condition [49,44]. In addition, the scripts and collections pose difficult recognition challenges, including dense ligatures and diacritics, visually similar glyph inventories across scripts, and diverse writing materials and degradation patterns (see Fig. 1). As a result, most existing approaches focus on a single script or collection at a time, carefully tailoring model architectures, training procedures, and post-processing steps to a specific script [55,31,8,29,24]. This one-script-at-a-time paradigm imposes significant practical limitations. From a model development perspective, it requires maintaining separate OCR systems for each script, including independent training runs, hyperparameter tuning, and evaluation pipelines. From a deployment and user perspective, it leads to brittle workflows in which OCR capability does not generalize across collections, even when manuscripts share similar linguistic or structural properties. Consequently, large-scale digitization efforts continue to rely on a growing set of script-specific OCR systems, limiting scalability and long-term maintainability.

An important observation is that many Indic manuscripts often encode the same underlying language, most prominently Sanskrit [43]. While scripts differ in visual form, the target language and orthographic structure are often shared. This suggests that learning to recognize handwritten Indic text should not necessarily be framed as a collection of isolated script-specific problems, but rather as a unified learning problem with shared representations across scripts.

Inspired by this observation, we introduce UniLipi, a unified multi-script OCR model for handwritten Indic manuscripts. UniLipi is designed to operate directly on realistic manuscript data, handling complex line geometries including strongly curved text, variable line lengths, and interruptions caused by holes, stains, or embedded illustrations. To address the ultra low-resource nature of many historical scripts, we train the model using a combination of limited annotated real data and script-aware synthetic manuscript lines that mimic authentic writing conditions. The model is jointly trained across multiple Indic scripts and manuscript collections, enabling it to learn shared visual representations while remaining sensitive to script-specific characteristics. By leveraging both cross-script similarities and structural diversity, UniLipi generalizes beyond peculiarities of individual scripts, allowing a single OCR system to operate across a broad range of historical manuscripts.

We also show that UniLipi serves as an effective foundational pretrained model beyond historical Indic manuscripts. Specifically, UniLipi enables OCR for contemporary Indic handwriting [44] and extends to several non-Indic scripts.

Our main contributions are:

– UniLipi, the first unified foundational multi-script OCR model for handwritten Indic scripts, trained jointly across 13 distinct Indic scripts within a single framework.

– A script-aware synthetic manuscript data generation approach that reduces reliance on large volumes of real annotated handwritten data.

– An OCR system that, in addition to transcription, predicts script identity and per-line glyph counts.

References (62)