Skip to content

Commit

Permalink
ocrd_page: simpleType enums should be objects, fix OCR-D#451
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Apr 23, 2020
1 parent b8e7b68 commit b416b1f
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 465 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,18 @@ uninstall:
for mod in $(BUILD_ORDER);do pip uninstall -y $$mod;done

# Regenerate python code from PAGE XSD
generate-page: GDS_PAGE = ocrd_models/ocrd_models/ocrd_page_generateds.py
generate-page: GDS_PAGE_USER = ocrd_models/ocrd_page_user_methods.py
generate-page: repo/assets
generateDS \
-f \
--root-element='PcGts' \
--user-methods='ocrd_models/ocrd_page_user_methods.py' \
-o ocrd_models/ocrd_models/ocrd_page_generateds.py \
-o $(GDS_PAGE) \
--disable-generatedssuper-lookup \
--user-methods=$(GDS_PAGE_USER) \
repo/assets/data/schema/data/$(PAGE_VERSION).xsd
# hack to prevent #451
sed -i 's,(Enum):$$,(object):,' $(GDS_PAGE)

#
# Repos
Expand Down
Loading

0 comments on commit b416b1f

Please sign in to comment.