Skip to content
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

♻️ Flattening assumptive dir structure for PDFs #48

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Jun 6, 2023

Yes, it would be nice to have sub-directories for pages ripped from a PDF. However, that aspirational state creates complications on the implementation details of the DerivativeRodeo; by moving from a tail glob to a regular expression, we create a more powerful mechanism for finding files.

These changes also highlighted a few implementation bugs (namely ensuring the correct expected return value of the newly re-named function).

In IIIF Print we still need to consider how to find the child page's derivatives of an original PDF. That is, however, not a problem for this repository.

Related to:

Yes, it would be nice to have sub-directories for pages ripped from a
PDF.  However, that aspirational state creates complications on
the implementation details of the DerivativeRodeo; by moving from a tail
glob to a regular expression, we create a more powerful mechanism for
finding files.

These changes also highlighted a few implementation bugs (namely
ensuring the correct expected return value of the newly re-named
function).

In IIIF Print we still need to consider how to find the child page's
derivatives of an original PDF.  That is, however, not a problem for
this repository.

Related to:

- notch8/iiif_print#251

Co-authored-by: Kirk Wang <[email protected]>
@jeremyf jeremyf merged commit 2f4198d into main Jun 6, 2023
@kirkkwang kirkkwang deleted the normalizing-filename-conventions-to-remove-subdirs branch June 6, 2023 17:22
jeremyf added a commit to notch8/iiif_print that referenced this pull request Jun 6, 2023
This commit leverages the conventions established in the DerivativeRodeo
around where we're writing split pages and their derivatives.

The inline comments that are written/amended with this PR should be read
closely for clarity and intention.

Related to:

- #251
- notch8/derivative_rodeo#48

Co-authored-by: Kirk Wang <[email protected]>
jeremyf added a commit to notch8/iiif_print that referenced this pull request Jun 6, 2023
This commit leverages the conventions established in the DerivativeRodeo
around where we're writing split pages and their derivatives.

The inline comments that are written/amended with this PR should be read
closely for clarity and intention.

Related to:

- #251
- notch8/derivative_rodeo#48

Co-authored-by: Kirk Wang <[email protected]>
jeremyf added a commit to notch8/iiif_print that referenced this pull request Jun 6, 2023
This commit leverages the conventions established in the DerivativeRodeo
around where we're writing split pages and their derivatives.

The inline comments that are written/amended with this PR should be read
closely for clarity and intention.

Related to:

- #251
- notch8/derivative_rodeo#48

Co-authored-by: Kirk Wang <[email protected]>
jeremyf added a commit to notch8/iiif_print that referenced this pull request Jun 6, 2023
This commit leverages the conventions established in the DerivativeRodeo
around where we're writing split pages and their derivatives.

The inline comments that are written/amended with this PR should be read
closely for clarity and intention.

Related to:

- #251
- notch8/derivative_rodeo#48

Co-authored-by: Kirk Wang <[email protected]>
jeremyf added a commit to notch8/iiif_print that referenced this pull request Jun 7, 2023
This commit leverages the conventions established in the DerivativeRodeo
around where we're writing split pages and their derivatives.

The inline comments that are written/amended with this PR should be read
closely for clarity and intention.

Related to:

- #251
- notch8/derivative_rodeo#48

Co-authored-by: Kirk Wang <[email protected]>
jeremyf added a commit to notch8/iiif_print that referenced this pull request Jul 7, 2023
This commit leverages the conventions established in the DerivativeRodeo
around where we're writing split pages and their derivatives.

The inline comments that are written/amended with this PR should be read
closely for clarity and intention.

Related to:

- #251
- notch8/derivative_rodeo#48

Co-authored-by: Kirk Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants