Tools,

Rashi script OCR, tested on 20 pages

43.9%

of Rashi letters wrong, Tesseract heb

Hebrew scans in one call

Square letters pass, Rashi letters fail

Reader Rashi Square
Tesseract heb 43.9% 0.2%
heb, tessdata_best 43.9% 0.4%
script/Hebrew 48.7% 0.1%
script/Hebrew, best 46.8% 0.0%
Our Actor's page code 45.1% 0.0%
Apple Vision 100% 100%

Letters wrong: missed, extra or swapped letters per 100 true letters. The same words and the same scan noise. Only the letter shapes, and so the line breaks, change.

The start of the same Rashi passage twice, the right part of three lines: on top in Rashi script, below in square Hebrew letters, both with scan noise
Rashi on Genesis 2, from a test page. Top: Noto Rashi Hebrew. Bottom: Noto Serif Hebrew. The lines break in other places.

It reads Rashi as square look-alikes

Text Genesis 2:2, first words
True ויכל אלהים ביום השביעי
Tesseract heb ויכל סכסיס כיוס ססכיעי
After the fine-tune ווכ: אמהים ביום השביעי

Many Rashi letters come out as another square letter. The most common swaps, Tesseract heb on 20 pages:

True letter Read as Times
ה ס 1,166
ב כ 803
א ס 627
ש ס 581

After the fine-tune, the top swap is י read as ו, 372 times.

A 3-minute fine-tune: 8.2% wrong

43.9% heb best, the start

8.2% after 2,000 iterations, 3 min

9.8% after 6,000 iterations, 6 min

I fine-tuned tessdata_best heb with tesstrain on 400 lines of Rashi on Genesis 21 to 40. No test page shares their text.

gmake training MODEL_NAME=heb_rashi START_MODEL=heb \
  TESSDATA=tessdata LANG_TYPE=RTL MAX_ITERATIONS=2000

Find the Rashi pages by confidence

53.3 to 59.9 Rashi pages

91.3 to 92.2 square pages

Our Actor gives each OCR page a meanConfidence, the average word confidence from 0 to 100. On these 40 pages the two fonts never met.

So read a mixed book with heb, sort the pages by that field, and send the low ones to a Rashi model or a person. I did not test pages with both scripts, or bad scans.

Hebrew scans in one call

Our Apify Actor, PDF to Markdown OCR, reads scanned PDFs and images with Tesseract. Set the language to Hebrew. It reads Rashi no better than Tesseract does.

What I tested, and what I did not

How I tested
  • Text: the first 260 words of Rashi on Genesis 1 to 20 from Hebrew Wikisource (chapter 5 has 225). Points and cantillation removed.
  • Fonts: Noto Rashi Hebrew and Noto Serif Hebrew, both OFL 1.1, at 12 pt on A4 at 300 dpi.
  • Scan look: a turn under 0.6 degrees, blur, noise and JPEG quality 70, the same for both fonts of a page.
  • Score: Hebrew letters only, final forms kept apart. Points, punctuation and spaces do not count.
  • Tesseract 5.5.4 at psm 3, one thread, tessdata models 4.1.0. Apple Vision accurate, language detection on.
  • Fine-tune: tesstrain 405346a, 400 lines of 7 words (it keeps 40 to check), the same scan look, 2 threads.
  • Apple M5 Max, macOS 26.6, shared with another job.
Not tested
  • Real old print, vowel points, or small type.
  • Kraken, eScriptorium, Transkribus or a hosted Hebrew OCR.
  • A fine-tuned model on pages in another Rashi font.
Sources

Questions people ask

Can Tesseract read Rashi script?

Not with its stock Hebrew models, on my pages. heb, heb best and script/Hebrew got 43.9% to 48.7% of the letters wrong on my Rashi pages. A fine-tune of heb best on 400 Rashi lines cut it to 8.2%.

Does Apple Vision read Hebrew?

Not on macOS 26.6. Its text reader lists 30 languages, and Hebrew is not one. On 40 Hebrew pages it found 0 Hebrew letters.

What is Rashi script?

A semi-cursive Hebrew typeface. Printers used it for commentaries, and it is named after Rashi, whose commentary is often printed in it. It has the same 22 letters and 5 final forms as square Hebrew, in other shapes.