[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: signage

On Wed, Aug 20, 2014 at 03:22:24AM -0700, Matto Marjanovic wrote:
> On 08/19/2014 11:33 PM, tony mancill wrote:
> >On 08/19/2014 10:02 PM, Steve Langasek wrote:
> >>On Tue, Aug 19, 2014 at 01:05:39PM -0700, tony wrote:
> >>>>As for badges, have we decided on text layout?

> ...
> >I don't know whether anyone is preparing a script (or if there's an
> >existing script to work from).  My understanding is that Matto is
> >working on the template, but that this is is distinct from the script.
> ...
> >Somewhat related - I have the Front Desk printer and am printing to it
> >fine from CUPS, so that part should be ready to test once we have source
> >data + template.

> I have just checked-in:
>  a) an inkscape 'template' for printing 3 badges (folded)
>  b) a proof-of-concept shell script that produces a PDF from command-line
>     arguments of three nicknames and three fullnames.

> The script is pretty mediocre (3am quality) --- but it is pretty self-
> -explanatory if anyone wants to enhance it or transmute the functionality
> into another language/script.  Basic operation is:
>   * copy template to a new inkscape file;
>   * tweak svg xml via xmlstarlet to set the name strings
>   * run inkscape in batch mode to produce a PDF
> Prereqs (debian packages) are listed at the top of the shell script.

> The first thing Tony should do is run the script with whatever six arguments
> he wants to generate a PDF from template.  (The arguments could all be "" to
> generate a PDF for blank badges with no names.)  Then, try printing it, and
> make sure that the preforations end up in the right places.  A finished
> badge should look something like the attached image.

> I left about a 1/10th inch safety margin to account for imperfect sheet feed;
> if this turns out to be inadequate, tell me I'll make the safety zone bigger.

Wasn't obvious to me where this was checked in, so I grabbed it out of IRC
scrollback.  For reference:

   git+ssh://git.debian.org/git/debconf-data/dc14.git artwork/badge/generate-badge-pdfs.sh

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: