-
Notifications
You must be signed in to change notification settings - Fork 32
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
workspace list-page: show label #821
Comments
For logical div labels, we would still need something like ODEM's
This could actually be as simple as replacing… for page_num, page in enumerate(self._tree.getroot().xpath('//mets:div[@TYPE="page"]', namespaces=NS)):
page_id = page.get('ID')
page_nr = page.get('ORDER', str(page_num))
if page_id in pageId_patterns or page_nr in pageId_patterns or \
any([p.fullmatch(page_id) or p.fullmatch(page_nr) for p in pageId_patterns if isinstance(p, typing.Pattern)]): |
All of these features are now merged with #1063:
|
Sometimes physical page identifiers look like
phys_fcd565cd-d170-4774-bb37-9aa25b68370b
– which is impossible to type/memorize. But even names likePHYS_0001
are not as helpful as the@ORDERLABEL
and@ORDER
attributes.Since presentation systems usually combine the latter two (
@ORDER [@ORDERLABEL]
IINM) we should offer something of the sort, too.So
ocrd workspace list-page
could use an option (for backwards compatibility) to display these labels in extra columns.But also, the page range operator could be made aware (somehow) of these labels, allowing me to specify, say
-g 20
instead of-g phys_fcd565cd-d170-4774-bb37-9aa25b68370b
.The text was updated successfully, but these errors were encountered: