Totally Automated Propaganda Producer
This package contains scripts to be used to produce marketing materials for the Carnegie Mellon University Computer Club.
A copy of this repository is available to club members at
Users can edit the
data directory and run the scripts as needed.
Before running these scripts, you must install
a Python package manager. Then, to install all of the necessary modules on your system, run:
pip install --user -r requirements.txt
Produce All the Propaganda!
To produce all of the propaganda for a semester,
check the variables at the top of the
Makefile and run:
With the proper AFS permissions, the files can be published to the web using:
Generating Individual Files
See data files such as
data/2015-08_F15-talks.json for input reference.
Use 0 as the
cat value for weeks without a talk due to holidays, etc.
cat value for each talk is required and relates to how it is colored on the posters;
categories array is optional and relates to how the schedule is rendered on the web.
cat values are not logically contiguous (see Fall 2016 as an example), it is best to dispense with the categories.
python -m tapp.talks.svg_gen -i foo.json -o bar.svg [-g]
2015logo_light.svg must be in the same directory as the output file
to display properly. Additionally, the filename given in the
field must be relative to the output file.
-g to generate a grayscale version more suitable for mass printing
than the full-color version. In some browsers, logos may remain in color.
python -m tapp.talks.ics_gen -i foo.json -o bar.ics
python -m tapp.talks.php_gen -i foo.json -o bar.php
Club Overview Flyers
See data files such as
data/2015-08_F15-flyer.json for input reference.
python -m tapp.flyer.svg_gen -i foo.json -o bar.svg
cmucc_qr.svg must be in the same directory
as the output file to display properly.
Generated SVGs are intended to be viewed and printed from Google Chrome. Talk Series posters are best printed to tabloid (17"x11") paper, landscape orientation, with margins set to 0.25" on the left and right, 0.2" on top, and 0" on bottom. Club Overview flyers are best printed to letter (8.5"x11") paper, portrait orientation, with the "minimum margins" setting. For the most consistent results, print to a PDF.
In some cases, when attempting to open the SVGs in other tools, the transcluded logos
can cause issues. As a workaround, manually remove the
<image> tags from the
SVG output, and replace them using an SVG editor such as
Inkscape. Ensure all required fonts are
installed, resize to desired output size, and print.