Book Of Traceable Heraldic Art

Cover | Preface | Contributing Art | Source Files | Project Blog | The Author | Contact Me

Source Files

Source Downloads

This collection was built in a series of OmniGraffle files.

The Graffle files can be downloaded here:
http://heraldicart.org/TraceableHeraldicArt-Vol0.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol1.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol2.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol3.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol4.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol5.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol6.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol7.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol8.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol9.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol10.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol11.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol12.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol13.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol14.graffle
http://heraldicart.org/TraceableHeraldicArt-Vol15.graffle
http://heraldicart.org/TraceableHeraldicArt-VolR.graffle
http://heraldicart.org/TraceableHeraldicArt-VolG.graffle
http://heraldicart.org/TraceableHeraldicArt-VolW.graffle
http://heraldicart.org/TraceableHeraldicArt-VolS.graffle
http://heraldicart.org/TraceableHeraldicArt-VolP.graffle

The web site is generated from those files by exporting content in PDF, PNG, and SVG format, and then running a set of build scripts which process and upload the exported files.

A copy of the build scripts is available at http://heraldicart.org/build.zip.

Build Requirements

To generate the heraldicart.org web site and related materials you need:
• A Mac running a recent version of MacOS.
• OmniGraffle 7 Pro ($199 from https://www.omnigroup.com/omnigraffle)
• The free software listed below.
• A working directory containing the Graffle files and build scripts.

Specifically, the working directory should contain:
• a folder named "Book" with the the individual Graffle files.
• a folder named "Build" with the build scripts and static files.

Open-Source Software

Install Chrome, or make sure your existing installation is on version 59 or later.
    Download from https://www.google.com/chrome/

Install HomeBrew:
    Download from https://brew.sh or run
    $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install node.js:
    Download from https://nodejs.org/en/download/ or run
    $ brew install node

Install yarn:
    $ brew install yarn

Install Puppeteer:
    $ yarn add puppeteer

Make sure CPAN is configured
    $ cpan

If you've never configured CPAN before, you'll be asked if you'd like to configure automatically; press return for yes, and when asked "What approach do you want?," either press return to choose local::lib, or choose sudo and run the below commands:
    cpan> o conf makepl_arg "INSTALLBIN=/usr/local/bin INSTALLSCRIPT=/usr/local/bin"
    cpan> o conf commit

Install MicroMason
    cpan Text::MicroMason

Build Process

The build folder includes a Perl script named make.pl that reads and combines the source files to create the web site. There's also a related configuration file, make.conf, which contains definitions used by the script.

Adjust the configuration in Build/make.conf to include your web hosting target in the "[Web Destination]" section. If the web hosting target is on a remote server, you may want to set up SSH keys or hold a session open so that you're not prompted to re-enter your password every time you re-generate the site.

Within the working folder, make empty folders named PNG and SVG.

In OmniGraffle, open each file and export it three times using the default file name and the following settings:
• As PDF in "Entire Document" and "Multi-Page" mode into the Book folder.
• As PNG in "Artboards only" mode at size 417% into the PNG folder.
• As SVG in "Artboards only" mode into the SVG folder.

Any time you edit one of the Graffle files, export it again in the same way.

(I have my fingers crossed that Omni will eventually expose the artboard export feature to AppleScript so that this process can be automated.)

Then run "perl Build/make.pl" and wait a few minutes for it to finish. The amount of time required depends on how many of the source files have been edited since the last run; on my computer this process takes around fifteen minutes if starting from scratch, and about two minutes if running it again without any changes to the source documents.

The build process will generate a file named Output/index.txt; if you've added or renamed pages, you should copy-n-paste this into the relevant pages of the Vol0 Graffle file and re-run the export and build process.

The Graffle files are currently about 225 MB. The full web build is about 2 GB for over eleven thousand files.