NaNoGenMo / 2022

National Novel Generation Month, 2022 edition.
51 stars 0 forks source link

XF style layout #6

Open enkiv2 opened 1 year ago

enkiv2 commented 1 year ago

I'm sort of drawing a blank for content-related ideas this year, but I recently read the very visually interesting Xenofeminist Manifesto and I'd like to see if I can write something to duplicate that layout (probably on Society of the Spectacle).

enkiv2 commented 1 year ago

Source: https://github.com/enkiv2/misc/blob/master/nanogenmo-2022/XFify.py Generated output: https://www.lord-enki.net/society-of-the-spectacle.pdf

The original Society of the Spectacle is only 29k words, but since I am turning every letter of every section header (and the first letter of every section) into an image, and we generally respect the conversion rate of one picture per one thousand words, this output probably counts as complete -- especially seeing as how this is now 946 pages long. Alternatively, since I laid out each page using image manipulation, each page might count as an image, for a word count equivalent of 946k!

enkiv2 commented 1 year ago

For those who don't want to open up a giant PDF, this is what my script mostly does:

The letter X superimposed on a rococo painting tinted red

It mimics the XenoFeminist Manifesto's remarkable section headers, which render huge half-page single letters as specific works of art run though a filter that looks like the output of a risograph machine:

Some section headers from XF

Basically, what I do is I take a randomly selected image from my giant image directory, convert it to greyscale, and make two versions -- one where it has been multiplied with a flat color, and another where it has been inverted, multiplied with the inverse of that flat color, then inverted again. The result is two versions of the image -- one where the tint level is proportional to the lightness of the pixel, and one where it is inversely proportional. I use a rendered character to mask one, then put it on top of the other.

enkiv2 commented 1 year ago

To run for yourself:

cat society-of-the-spectacle.md | ./XFify.py ~/Pictures/ ; img2pdf page*.png --output society-of-the-spectacle.pdf

lizadaly commented 1 year ago

This rules.

enkiv2 commented 1 year ago

Thanks!

On Fri, Nov 4, 2022, 9:53 AM Liza Daly @.***> wrote:

This rules.

— Reply to this email directly, view it on GitHub https://github.com/NaNoGenMo/2022/issues/6#issuecomment-1303579518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADXUGJNJ2ES5BKXDNYF3STWGUINVANCNFSM6AAAAAARR3N65I . You are receiving this because you authored the thread.Message ID: @.***>

enkiv2 commented 1 year ago

I have an improved version: https://www.lord-enki.net/society-of-the-spectacle-2.pdf

I've started to distinguish between (titled) sections and (numbered) sub-sections, stripped smartquotes from section headers, used the color schemes for the entire sections, centered the letters in section headers vertically and horizontally, and forced spaces in section headers to correspond with page breaks. The resulting file is only 216 pages long, and only 183mb.