read_alto: Read Alto-XML file

View source: R/alto.R

read_altoR Documentation

Read Alto-XML file

Description

Import Alto-XML file as a data.frame. Examples where this can be used is for importing alto-xml files from Transkribus

Usage

read_alto(x, type = c("transkribus"), ...)

Arguments

x

path to the xml file

type

character string with the type of xml structure. Defaults to 'transkribus' and is currently the only option.

...

further arguments currently not used

Value

a data.frame

Note

the function only handles single-page XML's

Examples

f <- system.file(package = "madoc.utils", "extdata", "alto-example.xml")
x <- read_alto(f)
f <- system.file(package = "madoc.utils", "extdata", "altoxml-example.xml")
x <- read_alto(f)
f <- system.file(package = "madoc.utils", "extdata", "multiregion-alto.xml")
x <- read_alto(f)

DIGI-VUB/madoc.utils documentation built on Sept. 14, 2022, 3:03 p.m.