public
Description: The Ruby barcode generator
Homepage: http://toretore.github.com/barby/
Clone URL: git://github.com/toretore/barby.git
barby /
name age message
file .gitignore Sun Feb 17 12:49:50 -0800 2008 Ignoring files [toretore]
file CHANGELOG Thu Nov 26 13:29:57 -0800 2009 Update changelog with new version [toretore]
file LICENSE Mon Mar 17 06:16:18 -0700 2008 Added license [toretore]
file README Mon Mar 17 14:05:14 -0700 2008 Added some more documentation [toretore]
file Rakefile Thu Nov 26 13:14:09 -0800 2009 Version 0.3.2 [toretore]
directory bin/ Mon Nov 24 11:51:37 -0800 2008 Update bin [toretore]
directory lib/ Thu Nov 26 13:37:32 -0800 2009 Update version string [toretore]
directory site/ Mon May 25 12:06:47 -0700 2009 Remove Rubyforge page (except RDoc) and redirec... [toretore]
directory spec/ Thu Nov 26 13:08:49 -0800 2009 Don't allow empty data strings [Wayne Conrad] [toretore]
directory vendor/ Sat Jun 20 13:52:04 -0700 2009 Added support for PDF417, using Pdf417lib. Curr... [aslakhellesoy]
README
Barby is a Ruby barcode generator. It does not depend on other libraries
(for the core functionality) and is easily extentable.

The barcode objects are separated from the process of generating graphical
(or other) representations. A barcode's only responsibility is to provide
a string representation consisting of 1s and 0s representing bars and spaces.
This string can then be used to generate (for example) an image with the
RMagickOutputter, or an ASCII string such as the one below.

See Barby::Barcode and Barby::Outputter for more information.

 require 'barby'
 require 'barby/outputter/ascii_outputter'

 barcode = Barby::Code128B.new('BARBY')
 
 puts barcode.to_ascii

 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
 ## #    #  #   # ##   # #   ##   ##   # ### #   # ##   ### ## #   ## ### ### ##   ### # ##
            B          A          R          B          Y