Skip to content

Commit

Permalink
default textequiv-fallback-strategy: last → first
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Sep 12, 2022
1 parent 630156c commit 8d9a566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocrd_page_to_alto/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
@click.option('--dummy-textline/--no-dummy-textline', default=True, help='Whether to create a TextLine for regions that have TextEquiv/Unicode but no TextLine')
@click.option('--dummy-word/--no-dummy-word', default=True, help='Whether to create a Word for TextLine that have TextEquiv/Unicode but no Word')
@click.option('--textequiv-index', default=0, help='If multiple textequiv, use the n-th TextEquiv by @index')
@click.option('--textequiv-fallback-strategy', default='last', type=click.Choice(['raise', 'first', 'last']), help="What to do if nth textequiv isn't available. 'raise' will lead to a runtime error, 'first' will use the first TextEquiv, 'last' will use the last TextEquiv on the element")
@click.option('--textequiv-fallback-strategy', default='first', type=click.Choice(['raise', 'first', 'last']),
help="What to do if selected TextEquiv @index is not available: 'raise' will lead to a runtime error, "
"'first' will use the first TextEquiv, 'last' will use the last TextEquiv on the element")
@click.option('--region-order', default='document', help="Order in which to iterate over the regions", type=click.Choice(['document', 'reading-order', 'reading-order-only']))
@click.option('-O', '--output-file', default='-', help='Output filename (or "-" for standard output, the default)',
type=click.Path(dir_okay=False, writable=True, exists=False, allow_dash=True))
Expand Down

0 comments on commit 8d9a566

Please sign in to comment.