Hello all,
I was doing some production work for some DVDs and wanted Barcodes on my production. I used inkscape and so I wanted to get svg barcodes.
The problem was the only things I could get to make svg barcodes on my mac was (perl) (GD::Barcode) which creates a gif barcode but with the use of GD::SVG you can make svg barcodes. I found this to be way too silly and couldn't even get GD libs installed so being a perl programmer I used online guides to create SVG::Barcode module which has only simple dependancies on SVG module.
Cut to the chase, I figured you might be interested in this code as a plugin, it's in perl which is not ideal but it's not huge code and could be converted to C/C++
Encodings: Code39, Code128, EAN8
let me know if your interested.
On Wed, Dec 21, 2005 at 05:31:32AM +0000, Martin Owens wrote:
Hello all,
I was doing some production work for some DVDs and wanted Barcodes on my production. I used inkscape and so I wanted to get svg barcodes.
The problem was the only things I could get to make svg barcodes on my mac was (perl) (GD::Barcode) which creates a gif barcode but with the use of GD::SVG you can make svg barcodes. I found this to be way too silly and couldn't even get GD libs installed so being a perl programmer I used online guides to create SVG::Barcode module which has only simple dependancies on SVG module.
Cut to the chase, I figured you might be interested in this code as a plugin, it's in perl which is not ideal but it's not huge code and could be converted to C/C++
Encodings: Code39, Code128, EAN8
let me know if your interested.
Yeah, this sounds interesting. Have you uploaded it to CPAN? That would be a great start.
Perl is just fine; it doesn't need converted to C/C++. What is needed is to provide a commandline tool to generate the SVG, and a .inx file to tell Inkscape how to use it. Look in your /usr/share/inkscape/extensions directory for some examples. You may find my txt2svg interesting since I also used the Perl SVG module for that. This program allows you to load a .txt file into Inkscape, and converts the text into SVG text elements.
The svg_dropshadow and dropshadow.inx files are probably the best example, though, because that is a perl program that does a conversion on a selected element, to create a drop shadow.
Anyway, between the two of those I think you could get some good ideas on how to hook Perl code in with Inkscape.
Bryce
On 12/20/05, Bryce Harrington <bryce@...961...> wrote:
On Wed, Dec 21, 2005 at 05:31:32AM +0000, Martin Owens wrote:
Hello all,
I was doing some production work for some DVDs and wanted Barcodes on my production. I used inkscape and so I wanted to get svg barcodes.
As an aside, Glabels can do barcodes and you should be able to export to a useful format.
Corey
participants (3)
-
Bryce Harrington
-
Corey Burger
-
Martin Owens