Skip to content

Scripts for transforming ALTO to and from a more easily editable format

Notifications You must be signed in to change notification settings

sounding-spirit/ocr-correction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This repository holds scripts for working with ALTO XML files.

The alto_to_editable.xsl script takes an ALTO file and, for each String element, copies the value of the CONTENT attribute and inserts it into the String element. It also places a CSS stylesheet reference to alto-style.css. This creates a file that can be more easily edited using Oxygen XML Editor's Author Mode.

The editable_to_alto.xsl script returns the editable files to the ALTO format.

Usage

java -jar saxon9he.jar -s:/path/to/ALTO_files_directory -o:/path/to/editable_files_directory -xsl:alto_to_editable.xsl

java -jar saxon9he.jar -s:/path/to/editable_files_directory -o:/path/to/ALTO_files_directory -xsl:editable_to_alto.xsl

About

Scripts for transforming ALTO to and from a more easily editable format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published