r/SubtitleEdit • • Oct 17 '26

Help OCR recognize italic text

Does anyone know which OCR engines somewhat reliably recognize italic text? I've tried several, even with custom prompts for llama, but I can't get correct italic tags.

2 Upvotes

5 comments sorted by

2

u/NSFW_Sub_Dev Oct 20 '26

For a consistent DVD/Blu-ray font, nOCR is worth a small test rather than another LLM prompt. Subtitle Edit's current OCR docs describe training nOCR with italic samples and handling mixed upright/italic characters in nOCR and Binary OCR. That isn't a guarantee for every source.

Try a few fully italic, plain, and mixed cues. Compare the actual <i>...</i> tags against the original bitmaps, not just the preview. If tags exist before export but disappear afterward, that's an export/formatting problem rather than failed italic recognition. Keep the original image subtitles for manual review of exceptions.

Which SE version and source format are you using: PGS, VobSub, or burned-in? Are tags missing entirely, or applied to the wrong words?

1

u/Miserable-Package306 Oct 20 '26

Thanks. nOCR is what I’m using now instead of AI. Seems that with some training and very low setting for pixel errors it works very well. Still mixing up lowercase l and uppercase I because the glyphs are identical, but that’s easy to fix. Thought an engine that looks at words and context instead of pixels might do this better, but I guess I overestimated AI.

This is with Blu-ray PGS subtitles in current SE (5.3 I think).

Most OCR engines seem to simply not output italic tags at all, even when prompted to do so in case of llama.

1

u/NSFW_Sub_Dev Oct 21 '26

Good to hear the trained nOCR route is working. If those two glyphs are identical in the source, pixel matching alone has no evidence to distinguish them; context can suggest a correction, but names and Roman numerals still need a check.

I'd keep the working nOCR output as the master and handle the remaining l/I errors as a separate text-proofreading pass on a copy. Avoid a global replacement. Compare any corrected words with the video, then check that the italic spans and cue timings are unchanged. That keeps the formatting you've already recovered separate from the remaining spelling decisions.

1

u/pagan-soyboy 20d ago

ive been running mine with a combination of rapidOCR / paddle and then i vibecoded claude to write a script that sends chunks the text into rendered images with associated OCR'd text. then it sends it to opus 5.5 with a fine-tuned system prompt on correcting the OCR'd text for italics and spelling and char recognition (eg ./, mismatch) and stuff.

1

u/Fit-Goal-4628 19d ago

Try nOCR, extremely fast and accurate for e.g. Blu-ray sup subtitles - and recognizes italic text.