Skip to content

Commit

Permalink
make sure to retain pageId (physical structMap) in output (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored and finkf committed May 8, 2019
1 parent 12ea2f9 commit 5d7ceb0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ocrd_cis/align/aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def process(self):
out = self.workspace.add_file(
ID=ID,
file_grp=self.output_file_grp,
pageId=ift[0].input_file.pageId,
basename=basename,
local_filename=os.path.join(self.output_file_grp, basename),
mimetype=MIMETYPE_PAGE,
Expand Down
1 change: 1 addition & 0 deletions ocrd_cis/div/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def process(self):
out = self.workspace.add_file(
ID=ID,
file_grp=self.output_file_grp,
pageId=input_file.pageId,
basename=self.output_file_grp + '-' + input_file.basename,
mimetype=MIMETYPE_PAGE,
content=to_xml(pcgts),
Expand Down
1 change: 1 addition & 0 deletions ocrd_cis/div/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def process(self):
out = self.workspace.add_file(
ID=ID,
file_grp=self.output_file_grp,
pageId=input_file.pageId,
basename=self.output_file_grp + '-' + input_file.basename,
mimetype=MIMETYPE_PAGE,
content=to_xml(pcgts),
Expand Down
1 change: 1 addition & 0 deletions ocrd_cis/ocropy/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def process(self):
out = self.workspace.add_file(
ID=ID,
file_grp=self.output_file_grp,
pageId=input_file.pageId,
basename=input_file.basename,
local_filename=os.path.join(self.output_file_grp, input_file.basename),
mimetype=MIMETYPE_PAGE,
Expand Down
1 change: 1 addition & 0 deletions ocrd_cis/profile/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def process(self):
mimetype=MIMETYPE_PAGE,
content=to_xml(pcgts),
file_grp=self.output_file_grp,
pageId=ifile.pageId,
basename=ifile.basename,
)
self.workspace.save_mets()
Expand Down

0 comments on commit 5d7ceb0

Please sign in to comment.