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

A brilliant idea #28

Open
UtilityHotbar opened this issue Aug 29, 2021 · 4 comments
Open

A brilliant idea #28

UtilityHotbar opened this issue Aug 29, 2021 · 4 comments

Comments

@UtilityHotbar
Copy link

Can I ask how you generated the "authentic relic" edition? Just interested for my own purposes haha.

@LingDong-
Copy link
Member

Hi, the code to produce it is in this file: https://github.com/wenyan-lang/book/blob/master/scripts/makeold.py

It uses openCV to add noise, blur, warp, grunge etc. to the plain version. The plain version is typeset using this script: https://github.com/wenyan-lang/book/blob/master/scripts/pdf.js

@UtilityHotbar
Copy link
Author

UtilityHotbar commented Aug 30, 2021

Thanks! Is there anyway to make it not add the "spine" effect, where there is a line splitting the page in half and half is slightly warped? (and the faint inverted image overlay effect)

@LingDong-
Copy link
Member

Hi,

I haven't touched the code for a while, perhaps the best way is to comment in/out the lines and just see if it's the effect you want :)

@UtilityHotbar
Copy link
Author

Thanks for the help! I think the line you indicated for the central fold controls the colour channels, though. I'll keep messing with it. I think I might also write a transpiler from 白話 to 文言...

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

No branches or pull requests

2 participants