Help us shape the future of Go! Take the 2026 Go Developer Survey

pagexmlcat

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 9 Imported by: 0

README

pagexmlcat

Concatenate PageXML-formatted xml files.

Usage

pagexmlcat [OPTIONS] [FILES...]

Concatenate FILE(s) to standard output. With no file or if file is -, read standard input.

Options

-h print help

-index comma-separated list of (zero-based) indices to select from multiple TextEquiv elements (negative indices count from the end)

-serial ignore region ordering in the document and use the explicit region ordering of the document

-id prefix output lines with their respective line (or word) ids

-conf prefix output lines with their respective confidences (if available)

-region set region type to output (line|word|glyph|block); default is line

-filename output the filename of printed regions

-norm replace each space with _ in output text

Examples

pagexmlcat a.xml - b.xml Output a.xml's contents, then standard input, then b.xml's contents.

pagexmlcat Output document from standard input to standard output.

pagexmlcat -index 0,-1 Output the first and last text equiv region for each line from standard input to standard output.

pagexmlcat -region word a.xml Output a.xml's words to standard output.

pagexmlcat -region block a.xml Output a.xml's text regions to standard output.

Author

Written by Florian Fink

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL