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

Correct OCB Encryption diagram #430

Closed
wants to merge 1 commit into from
Closed

Correct OCB Encryption diagram #430

wants to merge 1 commit into from

Conversation

gliptak
Copy link
Contributor

@gliptak gliptak commented Aug 28, 2022

Signed-off-by: Gábor Lipták gliptak@gmail.com

#419

Signed-off-by: Gábor Lipták <gliptak@gmail.com>
@lvh
Copy link
Member

lvh commented Aug 28, 2022

I don't understand how this change works; the original name looks correct? At least there's src/Illustrations/OCB/Encryption.mp...

@gliptak
Copy link
Contributor Author

gliptak commented Aug 28, 2022

@lvh yes this intends to avoid the duplicate generation issue by renaming. There might be something with

https://github.com/crypto101/book/blob/master/src/Makefile.assets#L85

I'm checking if generated PDF gets corrected

@gliptak
Copy link
Contributor Author

gliptak commented Aug 28, 2022

so this restored Figure 6.4 on Page 32. if you are good with this workaround, I will add the other rename

the underlying cause might be caching during generation

@lvh
Copy link
Member

lvh commented Aug 28, 2022

Unfortunately Docker for Mac on M1 breaks comically; that's before the Ubuntu upgrade so I'll try again.

I'd very much like to figure out in more detail why this doesn't work before I'm comfortable merging it. Right now as it stands I don't understand why this change would fix anything at all and that's not a great feeling even if it does incidentally allegedly fix the build in 1 instance on 1 machine 😅

@gliptak
Copy link
Contributor Author

gliptak commented Aug 30, 2022

reproduced this locally in Docker. MP -> SVG conversion produced the correct images.

The PDF file was incorrect, while the HTML pages had the correct images.

The error might be caused by https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter

@gliptak
Copy link
Contributor Author

gliptak commented Aug 30, 2022

looking into this further

find -name Encryption*.pdf
./_build_en/latex/Encryption2.pdf
./_build_en/latex/Encryption.pdf
./_build_en/doctrees/images/Encryption2.pdf
./_build_en/doctrees/images/Encryption.pdf
./_build_fr/latex/Encryption2.pdf
./_build_fr/latex/Encryption.pdf
./_build_fr/doctrees/images/Encryption2.pdf
./_build_fr/doctrees/images/Encryption.pdf

the generated PDF files are saved into flat space, so correction likely require rename as proposed

@gliptak
Copy link
Contributor Author

gliptak commented Sep 8, 2022

@lvh what do you see as next step here?

@lvh
Copy link
Member

lvh commented Sep 9, 2022

Not going to be able to get to this today, sorry. Somewhat annoyed that the Sphinx change means sure we got epub but we also got an unmaintainable system that breaks a bunch. And reStructured Text...

@gliptak
Copy link
Contributor Author

gliptak commented Sep 24, 2022

@lvh would you like to see updates to this?

@gliptak gliptak closed this Nov 9, 2022
@gliptak gliptak deleted the ocb1 branch November 9, 2022 01:09
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