ش
ŞERḤIntelligent Ottoman Manuscript Transcription

GUIDED WORKFLOW

A unified workflow for your Ottoman manuscripts.

ŞERḤ keeps the manuscript page, line segmentation, transcription, translation, and dictionary lookup all in one place. Work manually, ask the experimental line model for a starting point, or connect an AI service when you want assistance with transcription or translation.

01

BEGIN

Upload a manuscript

Select one or several page images from the home page. Files are ordered naturally by filename. A PDF is rendered page by page, and every rendered page becomes an ordinary manuscript page that can be segmented and edited.

+ Upload manuscript⇧ Import backuprestore a .serh backup
Accepted formatsJPG · JPEG · PNG · TIF · TIFF · PDF
Per-page limit100 MB for each stored page image
OrderingFilename order; PDF page order is preserved
Local storage

New projects are stored in this browser on this device. ŞERḤ accepts each stored page image up to 100 MB; the total space available for all manuscripts depends on the browser, device, and remaining disk space. Private or incognito browsing may provide only temporary storage, so do not rely on it for long-term work.

02

DEFINE THE PAGE

Segment the page into lines

Segmentation tells ŞERḤ which pixels belong to each text line and establishes reading order. On a two-leaf photograph, first draw optional reading panes in the order they should be read—normally the right leaf and then the left. Next, create or generate line polygons and review them before approval.

1Set reading panes

Use four corners to isolate leaves, columns, or other reading areas.

2Create line polygons

Draw manually, import YOLO pre-segmentation, or run a model.

3Review and approve

Move, reshape, delete, split, merge, and classify regions.

Six-point line polygonUpper-left, upper-middle, upper-right, lower-right, lower-middle, and lower-left points surrounding a curved line of text.123456
Place six points in this order: upper-left → upper-middle → upper-right → lower-right → lower-middle → lower-left. Every point remains independently draggable.

Enclose the letters, ascenders, descenders, and the majority of the dots and diacritical marks belonging to the line. Do not worry if a few marks escape the boundary, and it is fine for neighboring line polygons to overlap slightly.

Click Six-point line to draw a new segment in the six-point order shown above. Click Select & adjust when you want to move an entire polygon or drag any of its six points independently to refine its shape.

▣ Draw four-corner pane◇ Six-point line↖ Select & adjust
03

OPTIONAL ASSISTANCE

Choose a segmentation method

ON THIS DEVICE

ŞERḤ line model

An exploratory Ottoman line-segmentation model trained on a small manually annotated collection composed primarily of Maliyeden Müdevver Defterleri and Mühimme Defterleri.

  • Runs entirely in the browser
  • No API key or credits
  • First use downloads roughly 25 MB
  • Results require scholarly review
Run ŞERḤ line model in browser
HOSTED API

Vision AI models

OpenAI and OpenRouter models can propose editable line polygons. Add the relevant API key in AI settings and choose a model in the segmentation panel.

  • Sends only the requested page or pane image
  • Uses your API account and credits
  • Useful for unusual layouts and pane-by-pane analysis
  • Always review before approval
✦ AI segment this page
YOUR SUBSCRIPTION

Local subscription runner

The guided “Segment with my subscription” workflow prepares one bounded task for Codex, Gemini CLI, or Claude Code. Paste the supplied command into the selected local coding assistant and import its result.

  • No separate API-credit workflow
  • Guided first-run setup
  • One page in, structured polygons out
  • Imported polygons use the normal editor
Segment with my subscription
All proposals become the same geometry

Manually drawn, imported, ŞERḤ-model, and hosted-AI results all become ordinary editable six-point polygons. There is no separate annotation system.

Finish by approving the page

Once every line is present, correctly ordered, and acceptably bounded, approve the page to save its reading panes and polygons and make it available in the transcription editor.

Approve page & continue
Then open line transcription

After approval is complete, click this button to leave the segmentation workspace and begin entering the diplomatic transcription line by line.

Open line transcription
04

READ LINE BY LINE

Transcribe the manuscript

After approving segmentation, open the line editor. Select a numbered polygon on the image or use the line buttons to move through the page. Enter a diplomatic reading first; you can type Latin transliteration, Ottoman Arabic script, XXX, or an uncertain letter skeleton.

LINES123456
meblaġ-ı mezbūr ḫazīne-i ʿāmireye…
Edits save automatically after a short pause.

The editor keeps the page image and active line visible while you work. Line and page review tools use the active page—and the immediately preceding page when available—as context, but return changes only for the requested lines.

05

EDITORIAL ASSISTANCE

Normalize, check, and translate

Normalization

Request suggestions for one line or the whole page. Suggestions remain pending until you accept or ignore them. Accepted suggestions retain reconstructed Ottoman spellings for dictionary lookup.

✦ Suggest normalization✦ Check page normalization
Translation

Generate literal and readable translations for a line or an entire page. Keep a separate User tab for your own preferred wording and notes.

✦ Generate translation✦ Translate page
Review with my subscription

Send all active lines together as one bounded review task to Codex, Gemini CLI, or Claude Code, then import normalization suggestions, Ottoman spellings, and translations.

Review page with my subscription
06

LEXICAL CHECKING

Dictionary lookup

Words in the active transcription become clickable lookup chips. ŞERḤ uses local lemmatization and conservative suffix analysis for Osmanlıca Sözlükler. After AI normalization has saved an Ottoman-script headword, you can also search LexiQamus with an institutional subscription or conduct more refined searches of Osmanlıca Sözlükler.

Osmanlıca SözlüklerLexiQamus
CLICK A WORD

ḫazīneخزینهmezbūrمزبورaḳçeاقچه

AI-reconstructed spellings support lookup; they are not claims that every letter is visibly certain in the manuscript.
07

PRESERVE THE PROJECT

Save, export, and continue later

Automatic text saving

Transcriptions, normalized text, translations, notes, and accepted editorial work save after a short pause.

Approved geometry

Use Approve page & continue to save reading panes, line order, and six-point polygons.

ŞERḤ project backup

Export a .serh file containing the page images and complete editorial state. Selected manuscripts can be downloaded together in one ZIP.

Training-data export

Export segmentation and transcription material when you want to reuse corrected pages for HTR or line-segmentation training.

Back up about every 30 minutes.

Export a new .serh backup after roughly every half hour of active work—or immediately after a substantial segmentation or transcription session. Device storage belongs to one browser profile and can be cleared by browser settings, private-mode closure, or device loss. The .serh export is the portable copy of your work.

Return to your manuscripts →