-
Notifications
You must be signed in to change notification settings - Fork 9
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
base file group other than OCR-D-IMG #7
Comments
That's a valid question, and I had the problem myself (original fileGrp not named
What do you think? |
2: Oh, I see! Yes, sounds reasonable to base the initial view on that as well. 1: Yes, this would be very intuitive behaviour and easy to use IMHO. Or (instead of the second criterion) one could even start with an empty view if the first criterion (fixed/configured list of preferred groups) does not yield any images. |
I hope I have fixed most of the points now, except the selectable file group, which is quite difficult to implement (but absolutely worth it) and now handled in #9
The initial view
The page browser now uses all page_ids from |
Great work!
Wow, you even have a heuristic for the length of the candidate fileGrps in there!
Works perfectly, many thanks! |
I will close this now, for the rest see #9 |
I have a METS here which does contain a fileGrp
OCR-D-IMG
, but not comprising all physical pages. This gives me:So I digged into
ocrd_browser.ui.page_store
and thought it might be sufficient to just checkpage_id in file_lookup
before appending a row to the Gtk list. But this raises bigger questions:Why should the initial view be restricted to pages contained in
OCR-D-IMG
at all? This could easily just be empty. With practical library systems, the initial image fileGrp could realistically be calledMAX
,ORIGINAL
or something else instead. My understanding of this program is that it should try to present a view of all physical pages (at least initially, before selecting a fileGrp explicitly). So how about presenting all structMap entries sorted by their@ORDER
(if present) or@ID
with the first fptr that shows up?How do you change to a different fileGrp?
ui.view.base
has aView.use_file_group
property fixed toOCR-D-IMG
.The text was updated successfully, but these errors were encountered: