altomator / ALTO-HTML

Conversion of ALTO files (including tags) to HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ALTO2HTML

Conversion of XML ALTO files to HTML

Synopsis

This batch script converts OCR ALTO files to HTML. It also renders the tags (logical, layout, semantic, etc.) which were introduced in ALTO v2.1 format. See https://www.loc.gov/standards/alto/

Installation

The script needs xalan-java.

A sample document is stored in the "DOCS" folder.

XSLT

Two DOS shell scripts :

  • ALTO2HTML.bat
  • xslt.cmd

One XSLT stylesheet:

  • ALTO2HTML.xsl

The XSLT is runned with Xalan-Java. Path to the Java binary must be set in xslt.cmd. For each document stored in the DOCS folder, all the ALTO files found in the X folder are processed. The HTML format is generated in a "HTML" folder and rendered with a CSS stylesheet.

Test
  1. Open a DOS terminal.
  2. Change dir to the folder containing the DOCS folder
  3. ALTO2HTML.bat DOCS

About

Conversion of ALTO files (including tags) to HTML


Languages

Language:HTML 86.2%Language:XSLT 6.7%Language:CSS 5.4%Language:Batchfile 1.7%