Skip to content

Commit

Permalink
Merge pull request #237 from OCR-D/beta7
Browse files Browse the repository at this point in the history
[WIP] Beta7
  • Loading branch information
kba authored Mar 24, 2019
2 parents 6d1920b + a131d14 commit dc317a2
Show file tree
Hide file tree
Showing 4 changed files with 2,782 additions and 1,563 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Versioned according to [Semantic Versioning](http://semver.org/).

## Unreleased

Added:

* `ocrd workspace list-page` to list all page IDs

Changed:
* Extended page with TextStyle for Page, , PRImA-Research-Lab/PAGE-XML#8

## [1.0.0b6] - 2019-03-19

* `ocrd workspace set-id` case in argument error
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ generate-page: repo/assets
--no-namespace-defs \
--root-element='PcGts' \
-o ocrd_models/ocrd_models/ocrd_page_generateds.py \
repo/assets/data/schema/2018.xsd
repo/assets/data/schema/data/2018.xsd

#
# Repos
Expand Down
14 changes: 14 additions & 0 deletions ocrd/ocrd/cli/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,20 @@ def list_groups(ctx):
workspace = Workspace(ctx.resolver, directory=ctx.directory)
print("\n".join(workspace.mets.file_groups))

# ----------------------------------------------------------------------
# ocrd workspace list-pages
# ----------------------------------------------------------------------

@workspace_cli.command('list-page', help="""
List page IDs
""")
@pass_workspace
def list_pages(ctx):
workspace = Workspace(ctx.resolver, directory=ctx.directory)
print("\n".join(workspace.mets.physical_pages))

# ----------------------------------------------------------------------
# ocrd workspace get-id
# ----------------------------------------------------------------------
Expand Down
Loading

0 comments on commit dc317a2

Please sign in to comment.