arXiv:2611.08091cs.CVNov 2026

Manuscript Offprint

arXiv:2611.08091

ATHAAR: A Medieval Scientific Arabic Manuscript Dataset for Handwritten Text Recognition

Ismail El Jamiy, Khadija Msalek, Guillaume Loizelet, Farah Benamara, Nabil Hathout

Abstract

Despite recent progress in handwritten text recognition, medieval Arabic scientific manuscripts remain an open challenge for current vision-language models (VLMs) due to cursive ligatures, variable diacritization, and more importantly the lack of training data. This paper aims to address this gap, by proposing the first annotation guidelines dedicated to the transcription of scientific Arabic manuscripts inspired by textual criticism, a well-established approach to historical text editing. We then propose, ATHAAR, a new dataset manually annotated following this guideline. Unlike previous resources in the field, ATHAAR varies both witnesses of the same text, calligraphic styles, and content to deal with texts but also numerals. Relying on state-of-the-art VLMs, we finally design a set of experiments to study models transfer across scripts, chapters, and treatises. Our findings highlight the limitations of current systems when faced with the specificities of ancient scientific texts.

1 Introduction

The preservation and analysis of historical documents are crucial to understanding the evolution of human societies. Worldwide, millions of manuscripts written in various languages, such as ancient Greek, Classical Chinese and Latin, remain untapped in archives and libraries. These documents constitute invaluable primary sources containing data on various disciplines like philosophy, science, and literature. However, access to this knowledge remains limited because, while large-scale digitization allows for the creation of images, their textual content often remains inaccessible to modern methods of indexing and computational processing (Chan et al., 2025).

To address this need, the scientific community has developed tools for Handwritten Text Recognition (HTR). Progress has been made for certain languages, such as Classical Chinese (Zhao et al.,

2025), Medieval Latin (Koch et al., 2023) or Old French (Clérice et al., 2026), demonstrating the ability of artificial intelligence to transcribe and structure complex historical corpora. For Arabic, despite manuscript collections being estimated at over three million volumes (one of the most extensive written traditions in history), automatic recognition of handwritten texts has lagged behind, partly due to the lack of training data (Sommerschield et al., 2023). Existing corpora have been compiled from a variety of textual sources (newspapers, letters, manuscripts), such as Muharaf (Saeed et al., 2024), or through the collection of modern handwritten texts produced by volunteers, such as KHATT (Mahmoud et al., 2012).

As our study focuses on historical manuscripts, a closer analysis of existing HTR datasets reveals three main limitations for our use case: (1) Underrepresentation of the scientific domain. Available resources are composed of religious (such as Agapet (Ibrahim, 2024), and Historical Arabic HTR (Najam and Faizullah, 2024)), literary texts (e.g., Iskandar (LiPA and Huma-Num, 2024), RASAM (Vidal-Gorène et al., 2021a)). These datasets are therefore not suited to deal with texts such as those found in the exact sciences, where domain-specific terminology, numerals and geometrical objects (e.g., angles) compound the challenges of automatic recognition. (2) Lack of annotation guidelines. Annotation conventions guiding manual transcription are rarely documented and none report inter-annotators agreement raising questions about their reliability for evalutaing, training or fine-tuning HTR models. (3) Limited diversity in scripts and textual witnesses. Variability in writing styles across manuscripts of the same text is limited. Indeed, to ensure stable learning and avoid biases (such as overfitting to a single scribe), HTR models must be exposed to a variety of handwriting styles for the same content.

This paper aims to bridge these gaps, by propos-ing ATHAAR, the first medieval scientific Arabic manuscript dataset for handwritten text recognition. Unlike previous resources, ATHAAR includes manuscripts from major intellectual figures of the Islamic Golden Age, while varying both witnesses of the same text, calligraphic styles, and content to deal with texts but also numerals. It is built around al-Qānūn al-Mas’ūdī, an astronomical treatise composed by al-Bīrūnī around 1035 that survives in many manuscript copies. It also includes other scientific treatises from the same period covering astronomy and mathematics. Our contributions are:

(a) An annotation guideline dedicated to the transcription of Arabic manuscripts grounded in textual criticism, a well-established approach to historical text editing that records in a critical edition variant reading, i.e., any difference in wording, spelling, or form between two or more witnesses of the same text at the same location (Maas, 1958; West, 1973). As far as we know, this is the first publicly released guide covering textual content, numerals and geometrical objects. Although its primary focus is on scientific content, the methodology behind this guide can easily be adapted to other domains and languages.

(b) ATHAAR, a corpus of 3,893 lines manually transcribed at the line-level following this guideline. As comparing witnesses is the foundation of textual criticism, ATHAAR aligns multiple witnesses of the same text so that their divergences can be studied. We report inter-annotators agreement and analyze main transcription errors. We will make the corpus available upon acceptance.

(c) An evaluation of state-of-the-art vision-language HTR models. We finally design a set of experiments to study model transfer across treatises, chapters and scripts. Our findings highlight the limitations of current systems when faced with the specificities of ancient scientific texts.