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

Umsetzung Monopsen in Fassungsansicht #17

Open
flicksolutions opened this issue Nov 1, 2023 · 10 comments
Open

Umsetzung Monopsen in Fassungsansicht #17

flicksolutions opened this issue Nov 1, 2023 · 10 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@flicksolutions
Copy link
Member

flicksolutions commented Nov 1, 2023

  • link an all-encompassing Monopsen PDF file
    • perhaps link to specific page in the PDF from more specific linking locations (TBD)
    • the PDF also contains lnks to the representation in the edition; it will need to be regenerated to point to the new edition
@flicksolutions flicksolutions added this to the 1.0 milestone Nov 1, 2023
@flicksolutions flicksolutions self-assigned this Nov 1, 2023
@flicksolutions
Copy link
Member Author

@pdaengeli die Monopsen-PDFs (mon1 - mon827) sind bisher noch nicht auf dem statischen repo.
Sollen die noch dort hin? Ich werde morgen auch noch abklären, wie und wo wir die zum download anbieten werden.

@flicksolutions flicksolutions added the enhancement New feature or request label Dec 13, 2024
@flicksolutions flicksolutions marked this as a duplicate of #36 Dec 13, 2024
@flicksolutions flicksolutions changed the title Umsetzung Monopsen Umsetzung Monopsen in Fassungsansicht Dec 13, 2024
@flicksolutions flicksolutions pinned this issue Dec 13, 2024
@flicksolutions flicksolutions unpinned this issue Dec 13, 2024
@flicksolutions
Copy link
Member Author

We will link to the same PDF that contains the complete text - with a varying link to the Dreissiger that is active.

@pdaengeli
Copy link

@flicksolutions, I got a notification that a number of mon PDFs were uploaded to Dropbox today, seemingly one per Dreissiger.

Do we need these? Or rather an all-encompassing PDF?

In either case, should we offer the file(s) through the static API?

@flicksolutions
Copy link
Member Author

@pdaengeli As discussed in December I would say we only use the all-encompassing PDF. Would it be best if Mr. Abel created it? Or should we stitch together all the PDFs we have?

@pdaengeli
Copy link

pdaengeli commented Jan 23, 2025

Merging the single files using pdfunite $(ls -v *.pdf) monopsen.pdf yields monopsen.pdf.

There is slight variation in the dimension/width of the pages.

Same for pdftk $(ls -v *.pdf) cat output monopsen-pdftk.pdf: monopsen-pdftk.pdf

Equal size is possible using TeX / pdfjam --outfile monopsen-a4.pdf --paper a4paper $(ls -v *.pdf): monopsen-a4.pdf

As far as I can tell the page number equals the Dreissiger number in all three cases.

Should I include one of these in the static API?

Edit: NB: pdfunite and pdftk retain the links whereas pdfjam doesn't (at least not without a pre-processing workaround).

Image

@flicksolutions
Copy link
Member Author

hmm, the links are in a old format anyways (using Query-Attributes instead of a path).
I have to think about if I get make these links work in the new page aswell in a simple way...

If I can make it work I would prefer monopfen-pdftk.pdf because of the retained links.
I keep you posted.

@pdaengeli
Copy link

From the OP:

  • the PDF also contains lnks to the representation in the edition; it will need to be regenerated to point to the new edition

Having SA regenerating the PDFs is the most straightforward approach.

Otherwise we'd need to set up URL rewriting within the web app (perhaps SvelteKit has some kind of adapter to this end) or (ab)use GH Pages 404 pages to do redirects (this is possible with a mapping file like so but kind of hacky) or use an actual webserver to proxy the requests.

@flicksolutions
Copy link
Member Author

I agree. Rewriting with SvelteKit is possible. But if SA can help us, it would surely be preferable.
I'll contact him and ask.

@pdaengeli
Copy link

@flicksolutions, no need. I reached out yesterday.

@flicksolutions
Copy link
Member Author

Perfect, thanks! Schema would be like so: https://www.parzival.unibe.ch/fassungen/[dreissiger]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants