From e662fc00e798e39443a35dbd919839ec4087db09 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Mon, 21 Dec 2009 18:48:17 -0500 Subject: [PATCH] code by Aaron Spike for EAN5 --- share/extensions/Barcode/Makefile.am | 1 + share/extensions/Barcode/__init__.py | 3 ++ share/extensions/render_barcode.inx | 53 ++++++++++++++-------------- 3 files changed, 31 insertions(+), 26 deletions(-) diff --git a/share/extensions/Barcode/Makefile.am b/share/extensions/Barcode/Makefile.am index 338c01c10..fd5f1663b 100644 --- a/share/extensions/Barcode/Makefile.am +++ b/share/extensions/Barcode/Makefile.am @@ -9,6 +9,7 @@ barcode_SCRIPTS = \ Code93.py \ EAN13.py \ EAN8.py \ + EAN5.py \ __init__.py \ RM4CC.py \ UPCA.py \ diff --git a/share/extensions/Barcode/__init__.py b/share/extensions/Barcode/__init__.py index a455c3b7c..b2257ebcb 100644 --- a/share/extensions/Barcode/__init__.py +++ b/share/extensions/Barcode/__init__.py @@ -74,6 +74,9 @@ def getBarcode(format, param={}): elif format in ['ean13', 'ucc13','jan']: import EAN13 return EAN13.Object(param) + elif format == 'ean5': + import EAN5 + return EAN5.Object(param) elif format in ['ean8', 'ucc8']: import EAN8 return EAN8.Object(param) diff --git a/share/extensions/render_barcode.inx b/share/extensions/render_barcode.inx index 610c8bf19..91dd1bbe4 100644 --- a/share/extensions/render_barcode.inx +++ b/share/extensions/render_barcode.inx @@ -1,29 +1,30 @@ - <_name>Barcode - org.inkscape.render.barcode - inkex.py - render_barcode.py - - EAN8 - EAN13 - UPC-A - UPC-E - Code39 - Code39Ext - Code93 - Code128 - RM4CC / RM4SCC - - - 30 - - all - - - - - + <_name>Barcode + org.inkscape.render.barcode + inkex.py + render_barcode.py + + EAN8 + EAN13 + EAN5 + UPC-A + UPC-E + Code39 + Code39Ext + Code93 + Code128 + RM4CC / RM4SCC + + + 30 + + all + + + + + -- 2.30.2