[glabels/glabels-3_4] Added Datamatrix with GS1 input mode barcode type to zint backend.



commit b132259e00150627c23cbcb9ffdf8bff19e041bc
Author: Jim Evins <evins snaught com>
Date:   Tue Mar 29 19:51:50 2016 -0400

    Added Datamatrix with GS1 input mode barcode type to zint backend.

 src/bc-backends.c |    3 +++
 src/bc-zint.c     |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/bc-backends.c b/src/bc-backends.c
index 5ff8f56..0758f59 100644
--- a/src/bc-backends.c
+++ b/src/bc-backends.c
@@ -269,6 +269,9 @@ static const Style styles[] = {
         { "zint", "DMTX", N_("Data Matrix"), gl_barcode_zint_new,
           FALSE, FALSE, TRUE, FALSE, "0000000000", TRUE, 10},
 
+        { "zint", "DMTX-GS1", N_("Data Matrix (GS1)"), gl_barcode_zint_new,
+          FALSE, FALSE, TRUE, FALSE, "0000000000", TRUE, 10},
+
         { "zint", "DPL", N_("Deutsche Post Leitcode"), gl_barcode_zint_new,
           TRUE, TRUE, TRUE, FALSE, "1234567890123", TRUE, 13},
           
diff --git a/src/bc-zint.c b/src/bc-zint.c
index 015196e..4b53334 100644
--- a/src/bc-zint.c
+++ b/src/bc-zint.c
@@ -93,6 +93,8 @@ gl_barcode_zint_new (const gchar          *id,
         if (g_ascii_strcasecmp (id, "Code128B") == 0) { symbol->symbology = BARCODE_CODE128B; }
         if (g_ascii_strcasecmp (id, "DAFT") == 0)     { symbol->symbology = BARCODE_DAFT; }
         if (g_ascii_strcasecmp (id, "DMTX") == 0)     { symbol->symbology = BARCODE_DATAMATRIX; }
+        if (g_ascii_strcasecmp (id, "DMTX-GS1") == 0) { symbol->symbology = BARCODE_DATAMATRIX;
+                                                       symbol->input_mode = GS1_MODE; }
         if (g_ascii_strcasecmp (id, "DPL") == 0)      { symbol->symbology = BARCODE_DPLEIT; }
         if (g_ascii_strcasecmp (id, "DPI") == 0)      { symbol->symbology = BARCODE_DPIDENT; }
         if (g_ascii_strcasecmp (id, "KIX") == 0)      { symbol->symbology = BARCODE_KIX; }


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