From 868ca20ff52f841ac0b792b365115692eb0c048d Mon Sep 17 00:00:00 2001 From: boombuler Date: Mon, 3 Apr 2017 19:16:53 +0200 Subject: [PATCH] added "A" encoding-table --- code128/encodingtable.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/code128/encodingtable.go b/code128/encodingtable.go index a32b31c..0ca3d49 100644 --- a/code128/encodingtable.go +++ b/code128/encodingtable.go @@ -110,10 +110,11 @@ var encodingTable = [107][]bool{ []bool{true, true, false, false, false, true, true, true, false, true, false, true, true}, } -// const startASymbol byte = 103 +const startASymbol byte = 103 const startBSymbol byte = 104 const startCSymbol byte = 105 +const codeASymbol byte = 101 const codeBSymbol byte = 100 const codeCSymbol byte = 99 @@ -130,4 +131,13 @@ const ( FNC4 = '\u00f4' ) -const bTable = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" +const abTable = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" +const bTable = abTable + "`abcdefghijklmnopqrstuvwxyz{|}~\u007F" +const aTable = abTable + + "\u0000\u0001\u0002\u0003\u0004" + // NUL, SOH, STX, ETX, EOT + "\u0005\u0006\u0007\u0008\u0009" + // ENQ, ACK, BEL, BS, HT + "\u000A\u000B\u000C\u000D\u000E" + // LF, VT, FF, CR, SO + "\u000F\u0010\u0011\u0012\u0013" + // SI, DLE, DC1, DC2, DC3 + "\u0014\u0015\u0016\u0017\u0018" + // DC4, NAK, SYN, ETB, CAN + "\u0019\u001A\u001B\u001C\u001D" + // EM, SUB, ESC, FS, GS + "\u001E\u001F" // RS, US