Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Autoencoder for MaxiCode

View Parsed - Show only message text

Received: by 10.204.71.141 with SMTP id h13mr37392bkj.13.1246632966533;
        Fri, 03 Jul 2009 07:56:06 -0700 (PDT)
Return-Path: <terry.bur...@gmail.com>
Received: from mail-fx0-f212.google.com (mail-fx0-f212.google.com [209.85.220.212])
        by gmr-mx.google.com with ESMTP id 15si446293bwz.6.2009.07.03.07.56.05;
        Fri, 03 Jul 2009 07:56:05 -0700 (PDT)
Received-SPF: pass (google.com: domain of terry.bur...@gmail.com designates 209.85.220.212 as permitted sender) client-ip=209.85.220.212;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of terry.bur...@gmail.com designates 209.85.220.212 as permitted sender) smtp.mail=terry.bur...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by mail-fx0-f212.google.com with SMTP id 8so1914364fxm.0
        for <postscriptbarcode@googlegroups.com>; Fri, 03 Jul 2009 07:56:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:sender:received:date
         :x-google-sender-auth:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=YGSeVDOBFaT4tSkDbJEJ7UsJ4ShXQGih7UAqlXAB24A=;
        b=H9C2JRKaoBsniildi4zdBr1OmkzLkCkOeMdYr6n6SVdvivM3IQcPbQfL0z800mRHSd
         3XJ6QV2J+p+RcyXKm6gqcEZUl7gUjEFhYDW0F/SPgmpyRTF85sWCs0jjNWlTkN9wsQRA
         YBFVFiromBN//SA1tOS4hEOFnKJJD/OF3HdxI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:sender:date:x-google-sender-auth:message-id:subject
         :from:to:content-type:content-transfer-encoding;
        b=wnxcOI6dz2MZOV37sLKOgZtejh5xe+vMIFhOlE30FdcLdn19JK4RDu9cxRYazit+Kw
         T/U66xOekInLJoiQxpoPr6m7dEnfQP6t13rjeY3eLcQheT314fOnfT7bpeeEpfXjaazq
         26jFh5iVwZJURUt+PSJ+BcKxFqb9XNBCPPbFo=
MIME-Version: 1.0
Sender: terry.bur...@gmail.com
Received: by 10.223.105.16 with SMTP id r16mr1010139fao.24.1246632964491; Fri, 
	03 Jul 2009 07:56:04 -0700 (PDT)
Date: Fri, 3 Jul 2009 15:56:04 +0100
Message-ID: <2d1f9a6b0907030756wf1a905avc957014a962fcf22@mail.gmail.com>
Subject: Autoencoder for MaxiCode
From: Terry Burton <t...@terryburton.co.uk>
To: Barcode Writer Group <postscriptbarcode@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

I have now created a simple autoencoder for MaxiCode which makes
invoking MaxiCode as trivial as:

150 150 moveto (This is MaxiCode) () maxicode

The above invocation will created either a mode 4 or mode 5 symbol
depending upon the encoded length of the given data. Mode 5 will be
chosen when the encoded data is sufficiently small to use the more
robust EEC (Enhanced Error Correction) and mode 4 chosen when only SEC
(Standard Error Correction) is available.

To explicitly specify a mode you can do the following:

150 150 moveto (This is MaxiCode) (mode=4) maxicode

The above will always create an SEC (mode 4) symbol even if EEC is available.

By default the MaxiCode encoder accepts raw ASCII input, however there
are some ASCII characters that are common in MaxiCode data that have
no standard graphical representation, for example GS (ASCII 29), RS
(ASCII 30) and EOT (ASCII 4). For convenience a "parse" option is
provided which will replace ordinals of the form ^NNN with their ASCII
value in the provided data, for example ^029 for GS. Of course when
this option is provided it is necessary to encode a literal "^"
(carat) using its ordinal form ^094.

The "parse" option makes it is simpler to encode the GS separated
Structured Carrier Data in mode 2 (US/numeric postcode) and mode 3
(international/alphanumeric postcode) symbols, for example:

150 150 moveto ([\)>^03001^02996152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634
ALPHA DR^029PITTSBURGH^029PA^029^004) (mode=2 parse) maxicode
150 150 moveto (152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634
ALPHA DR^029PITTSBURGH^029PA^029^004) (mode=2 parse) maxicode
150 150 moveto (ABC123^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634
ALPHA DR^029PITTSBURGH^029PA^029^004) (mode=3 parse) maxicode

The first of these examples starts with the "[)>RS01GSyy" identifier
required for particular applications of MaxiCode.


If you find any problems then let me know.


Have fun,

Tez

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google