Package io.goobi.viewer.controller
Class ConvertAbbyyToAlto
java.lang.Object
io.goobi.viewer.controller.ConvertAbbyyToAlto
Utility class for converting ABBYY FineReader recognition output to ALTO XML format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom2.Elementconvert.org.jdom2.Elementconvert(org.jdom2.Document abbyyDoc) convert.Getter for the fieldcreationtime.Getter for the fieldinputfilename.static voidmain.voidsetCreationtime(LocalDateTime creationtime) Setter for the fieldcreationtime.voidsetInputfilename(String inputfilename) Setter for the fieldinputfilename.
-
Constructor Details
-
ConvertAbbyyToAlto
public ConvertAbbyyToAlto()
-
-
Method Details
-
convert
convert.- Parameters:
input- ABBYY XML file to convert- Returns:
- the root ALTO XML element produced from the ABBYY input file
- Throws:
org.jdom2.JDOMException- if any.IOException- if any.
-
convert
public org.jdom2.Element convert(org.jdom2.Document abbyyDoc) convert.- Parameters:
abbyyDoc- parsed ABBYY XML document to convert- Returns:
- the root ALTO XML element produced from the ABBYY document
-
main
main.- Parameters:
args- command-line arguments: input path, output path- Throws:
IOException- if any.org.jdom2.JDOMException- if any.
-
getInputfilename
Getter for the fieldinputfilename.- Returns:
- the name of the ABBYY input file
-
setInputfilename
Setter for the fieldinputfilename.- Parameters:
inputfilename- name of the ABBYY input file
-
getCreationtime
Getter for the fieldcreationtime.- Returns:
- the document creation timestamp embedded in the ALTO header
-
setCreationtime
Setter for the fieldcreationtime.- Parameters:
creationtime- document creation timestamp to embed in ALTO header
-