Go to Google Groups Home    postscriptbarcode
Byte-mode autoencoder for Data Matrix. EDIFACT, C40, TEXT and X12 encoders coming soon.

Terry Burton <t...@terryburton.co.uk>

On Wed, May 13, 2009 at 3:51 PM, Terry Burton <t...@terryburton.co.uk> wrote:

<...snip...>

> I have just knocked together a simple autoencoder for Data Matrix that
> will convert (extended-)ASCII input into codewords using just the
> ASCII encoding mode - nothing clever like Edifact or C40 compression,
> etc.

> This simplifies the use of the datamatrix encoder for simple
> applications such as encoding text or numeric data since you can now
> invoke the encoder as follows:

Hi.

I've just added byte-mode encoding to Data Matrix and made this the
default encoding method since it is generally more efficient than
ASCII-mode encoding. The remaining EDIFACT, C40, TEXT and X12 modes
will be added in about a week's time thanks mainly to a generous code
contribution by Jörg Walter - thanks Jörg!

If you prefer to use ASCII-mode encoding then this can be selected
using the "encoding=ascii" option, e.g.:

50 50 moveto (http://www.terryburton.co.uk/barcodewriter/)
(encoding=ascii) datamatrix

I've also disabled the ability to encode raw codewords when in
ASCII-mode under the premise that if you know what you are doing by
directly encoding codewords then you should really encode the entire
input yourself as a sequence of ^NNN codewords. For this you must now
use the synonymous "raw" or "encoding=raw" options.

Let me know if you encounter any problems with the default byte-mode
encoding scheme.

Have fun,

Terry