MFTRAINING(1)
π MFTRAINING(1) β the mftraining girlies' manual
okay so bestie, welcome to mftraining from the MFTRAINING(1) section of the manual β she's the feature-training bestie for Tesseract and she's lowkey carrying the whole shape-prototype pipeline. let's get into it π
β¨ NAME β¨
mftraining β feature training for Tesseract. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
mftraining -U unicharset -O lang.unicharset FILE...
like, you hand her a unicharset, you tell her where the output unicharset goes, and then you yeet a whole list of FILE... at her. slay.
β¨ DESCRIPTION β¨
so here's the tea π«: mftraining takes a list of .tr files and from those she generates three iconic little files:
inttempβ the shape prototypes πshapetableβ the shape table, obviouslypffmtableβ the number of expected features for each character
there's also a fourth file called Microfeat that this program writes too β but ngl, nobody uses it. it's just there. sitting. being written. not being used. π (not me getting attached to an unused file though π)
β¨ OPTIONS β¨
-U FILEβ (Input) the unicharset, the one generated byunicharset_extractor(1). this is the source-of-truth character set, bestie, treat her with respect π-F font_properties_fileβ (Input) the font properties file. every line looks like this, and every field except the font name is straight up0or1β no in-between, no "maybe", just binary energy:
*font_name* *italic* *bold* *fixed_pitch* *serif* *fraktur*
-X xheights_fileβ (Input) the x heights file. every line is this, where xheight is calculated as the pixel x height of a character drawn at 32pt on 300 dpi:
*font_name* *xheight*
and the manpage literally spells out the vibe check for you: [ that is, if base x height + ascenders + descenders = 133, how much is x height? ] π§ so yes, they really do want you to do the maths, no cap.
-D dirβ the directory to write output files to. pick a folder, any folder, just make it a good one π¦-O FILEβ (Output) the output unicharset that will be given tocombine_tessdata(1). this is the glow-up version of your unicharset and she's going places β¨
β¨ SEE ALSO β¨
go read these too, iykyk:
tesseract(1)cntraining(1)unicharset_extractor(1)combine_tessdata(1)shapeclustering(1)unicharset(5)
and the docs link, because of course:
https://tesseract-ocr.github.io/tessdoc/Training-Tesseract.html
β¨ COPYING β¨
Copyright (C) Hewlett-Packard Company, 1988 β Licensed under the Apache License, Version 2.0. periodt. π
β¨ AUTHOR β¨
The Tesseract OCR engine was written by Ray Smith and his research groups at Hewlett Packard (1985-1995) and Google (2006-2018). literal main character energy from both eras, we love a cross-decade icon ππ
okay that's the whole page, you're fully caught up π this was MFTRAINING(1), dated 2026-09-28 β that's the source/version and date right there in the footer, and now it's in a cute little sign-off instead of a boring bottom line. mwah, go train some features bestie π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 Β· Apache-2.0 AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms