Convert ALTO to MD
Turn ALTO files into Markdown. Each text block becomes a Markdown paragraph with its lines joined and words broken at a line end made whole again, and pages are separated by rules.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop ALTO files on the dialor turn it to pick what to do
Text from ALTO, ready to read as Markdown.Each text block becomes a paragraph, and pages are separated by rules.
What you get
One MD file. Each text block in the ALTO XML becomes a Markdown paragraph, with its lines joined into one.
Words that were broken at the end of a line are made whole again, so a word split across two lines reads as one word.
Page order and margins
Pages are separated by rules. On each page, text in the top margin, such as a running head, comes before the main text. Text in the bottom margin comes after it.
What it leaves behind
Positions, confidence and styles are dropped. The ALTO file records where each word sits on the page and how sure the OCR was of it. The MD file keeps the words only.
If you need other conversions from ALTO, see every ALTO conversion. To join several MD files after converting, you can merge MD.
ALTO and MD.What each format is.
The formats
ALTO XML
OCR output in the XML that libraries and newspaper archives use, with the position and confidence of every word on the page.
- Extensions
- .alto.xml
- MIME type
- application
/x -alto +xml - Kind
- Text and data
Markdown
Plain text with light markup for headings, lists, links and code. What agents and developers write in.
- Extensions
- .md .markdown .mdown
- MIME type
- text
/markdown - Kind
- Text and data
In your code.The same ALTO to MD conversion through the API, for your app or your agent.
$ cv convert report.alto.xml report.md$ cv convert report.alto.xml report.mdQuestions.What people ask about ALTO to MD.
No. Positions are dropped, along with confidence and styles. The text keeps its blocks as paragraphs.
They are made whole again. The two parts are joined into one word.
Pages are separated by rules. Each page's text follows in order, with the top margin text first and the bottom margin text last.
One file. All the pages end up in the same MD file.