Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print option for CLI #118

Open
zuphilip opened this issue Jan 2, 2020 · 1 comment
Open

Pretty print option for CLI #118

zuphilip opened this issue Jan 2, 2020 · 1 comment
Labels
enhancement Any enhancement on the software itself (excluding new transformations)

Comments

@zuphilip
Copy link
Member

zuphilip commented Jan 2, 2020

Currently, the web GUI is automatically prettied printed the outputs while in the CLI the user has not much clue how to do that. It is written in the help that any Saxon parameter can be passed, but how to pretty print then is still not clear. For me it feels that the used !indent=yes used in the call from the web GUI is hard to find out. Thus, I suggest to introduce a new parameter --pretty in the ocr-transformation which will do that and then also show up in the help of that CLI command.

@zuphilip zuphilip added the enhancement Any enhancement on the software itself (excluding new transformations) label Jan 2, 2020
@kba
Copy link
Collaborator

kba commented Jan 2, 2020

You can append saxon cli args after -- to call to transform, e.g.

ocr-transform alto hocr in.alto out.hocr -- '!indent=yes`

Might be easier to just document that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any enhancement on the software itself (excluding new transformations)
Projects
None yet
Development

No branches or pull requests

2 participants