Giter VIP home page Giter VIP logo

barnhunt's Introduction

Barn Hunt Map Helper

Test status badge Latest version badge Supported Python versions badge Supported Inkscape versions badge Development status badge Trackgit-views

This is a helper script Jeff uses for drafting Barn Hunt course maps.

It does a bunch of stuff, but the important bit is that it exports PDF versions of maps from Inkscape SVG files.

I draw all the maps for a given ring (for a day or weekend) in a single Inkscape drawing. Various maps (for different trials/classes, build map, rat-maps, base maps, etc.) are generated by hiding and unhiding appropriate layers in the drawing and exporting to PDF.

This program automates that process.

Requirements

This program requires Python, version 3.7 or higher to run.

It "should" work with all versions of Inkscape, 0.9x through 1.2.1.

I use this program on Linux, however the package now includes a GitHub CI workflow that performs rudimentary testing on Windows and macOS, so there’s a moderate chance it might "just work" on those platforms. (Due to a dependency on the pikepdf package, it should work on x86_64-based Macs, but may not work on Macs that use Apple silicon. If pikepdf compatibility is an issue for you, let me know — it’s probably fixable.)

Installation

Windows

We now publish a compiled version of the program for Windows (which may even work.) Using this version has the advantage that Python is not required to be installed. (And even if Python is installed, this version may work-around some bugs having to do with the various different ways that Python can be installed on on Windows computer.)

  1. Browse to our releases page. Select a release, and look down in the Assets section of the release page. (You may have to click the triangle to expand the Assets section.)

  2. Download the MSI installer (the filename should end with .msi — e.g. Barnhunt-1.2.0.49-x86_64-pc-windows-msvc.msi). The file is not signed, so you may have to click through some nasty warnings about "unrecognized, potentially dangerous" files.

  3. Once downloaded, open (double-click) the file you just downloaded. Hopefully and installer dialog should open. Accept the default choices.

  4. Now open a terminal command-line window. Type barnhunt --version. If all is good, barnhunt should report its version. Run barnhunt --help for the help screen.

Linux (or Windows with Python installed)

As this package is published to PyPI it may be installed into a virtualenv using pip. It is suggested that you use pipx to combine those two steps.

A basic outline of how to proceed:

  1. Install python if it is not already installed. (Version 3.7 or greater is required.)

  2. Install pipx. This might look like:

    python3 -m pip install --user pipx
    python3 -m pipx ensurepath
  3. Install barnhunt.

    pipx install barnhunt

How to Use

Sadly, this program is currently quite under-documented.

The functions of the basic sub-commands and command-line options are tersely documented via the --help option. Try:

barnhunt --help

and

barnhunt pdfs --help

for starters.

If you get stuck, kick me!

Author

This package was written by Jeff Dairiki, BHAJ-221A, [email protected].


barnhunt's People

Contributors

dairiki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.