Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved stuff around for nicer github display. changed README to markdown

  • Loading branch information...
commit 108e094b4e7cd5c945b73afc94168cdabcf0c501 1 parent 2fcddd2
@anujluthra anujluthra authored
View
88 README
@@ -1,88 +0,0 @@
-http://farm2.static.flickr.com/1378/1125817164_6f57adb24a_o.png
-=Barcode Generator for Rails - ReDux=
-
-
-Barcode generator makes generating/displaying barcodes in any format like, PNG,JPEG,JPG etc.. for any alphanumeric id, a piece of cake.
-
-It uses *Gbarcode* for encoding barcode data and *ImageMagick* to generate
-images out of it for displaying in views.(yes yes.. you read it correct, its NOT using RMagick anymore)
-
-This way we can generate any barcode type which Gbarcode -> Gnome Barcode project
-supports.
-
-==USAGE==
-
-its as simple as saying
-{{{
-<%= barcode 'FJJ4JD'%>
-}}}
-This will generate a barcode for FJJ4JD in BARCODE_39 format with default width
-and height and include it in the view.
-
-http://farm2.static.flickr.com/1004/1125785568_3a5d7b201b_o.png
-
-the images are stored in /public/images/barcodes subdir.
-
-==Options Options Options ..==
-
-to customize your barcodes, you can optionally pass following information in your views
- * encoding_format (Gbarcode constants for eg. Gbarcode::BARCODE_128 etc..)
- * width
- * height
- * scaling_factor
- * xoff
- * yoff
- * margin
-
-in this case your view will look like :
-{{{
-<%= barcode 'ANUJ', :height => 100,
- :width => 400,
- :margin => 100,
- :xoff => 20,
- :yoff => 40
-%>
-}}}
-this will produce something beautiful like this ....
-
-http://farm2.static.flickr.com/1025/1124766953_d158f1c87f_o.png
-
-
-
-==Installation==
-
-===Requirements===
- * ImageMagick (c image manipulation library [http://www.imagemagick.org/script/index.php more info] )
- * gbarcode (ruby gem:: gem install gbarcode [http://gbarcode.rubyforge.org/rdoc/index.html more info] )
-
-===install plugin via svn===
-{{{
-script/plugin install http://barcode-generator.googlecode.com/svn/trunk/barcode_generator
-
-rake barcode_setup
-}}}
-
-
-
-
-==Supported Barcode Formats ==
-
-Gbarcode as of now allows us to generate barcodes in following formats:
-{{{
- BARCODE_EAN
- BARCODE_UPC
- BARCODE_ISBN
- BARCODE_128B
- BARCODE_128C
- BARCODE_128
- BARCODE_128RAW
- BARCODE_39
- BARCODE_I25
- BARCODE_CBR
- BARCODE_MSI
- BARCODE_PLS
- BARCODE_93
- BARCODE_ANY
- BARCODE_NO_CHECKSUM
-}}}
-for more information on Gbarcode visit http://gbarcode.rubyforge.org/rdoc/index.html
View
38 barcode_generator/README → README.markdown
@@ -1,6 +1,8 @@
BarcodeGenerator
================
-Author : Anuj Luthra
+
+### Author : Anuj Luthra
+
Barcode generator makes generating/displaying bar-codes for certain
alphanumeric ids a piece of cake.
It uses Gbarcode for encoding barcode data and then rmagick to generate
@@ -9,8 +11,7 @@ images out of it for displaying in views.
This way we can generate any barcode type which Gbarcode -> Gnome Barcode project
supports.
-USAGE:
-
+### USAGE:
its as simple as saying
<%= barcode 'FJJ4JD'%>
@@ -18,9 +19,8 @@ This will generate a barcode for FJJ4JD in BARCODE_39 format with default width
and height and include it in the view.
the images are stored in /public/images/barcodes subdir.
-Options Options Options ..
-
-to customize your barcodes, you can optionally pass following information in your views
+### Options Options Options:
+To customize your barcodes, you can optionally pass following information in your views
- encoding_format (Gbarcode constants for eg. Gbarcode::BARCODE_128 etc..)
- width
- height
@@ -32,16 +32,38 @@ to customize your barcodes, you can optionally pass following information in you
the bottom of the barcode)
in this case your view will look like :
+`
<%= barcode 'ANUJ', :height => 100,
:width => 400,
:margin => 100,
:xoff => 20,
:yoff => 40
%>
+`
-Installation:
-install from svn : http://barcode-generator.googlecode.com/svn/trunk/
+### Installation:
+install from git : git://github.com/anujluthra/barcode-generator.git
make sure that you install
- gem for gbarcode
- install native ImageMagick library
and then run the rake task : rake barcode_setup
+
+### Supported Barcode Formats:
+Gbarcode as of now allows us to generate barcodes in following formats:
+ BARCODE_EAN
+ BARCODE_UPC
+ BARCODE_ISBN
+ BARCODE_128B
+ BARCODE_128C
+ BARCODE_128
+ BARCODE_128RAW
+ BARCODE_39
+ BARCODE_I25
+ BARCODE_CBR
+ BARCODE_MSI
+ BARCODE_PLS
+ BARCODE_93
+ BARCODE_ANY
+ BARCODE_NO_CHECKSUM
+for more information on Gbarcode visit http://gbarcode.rubyforge.org/rdoc/index.html
+
View
0  barcode_generator/Rakefile → Rakefile
File renamed without changes
View
0  barcode_generator/init.rb → init.rb
File renamed without changes
View
0  barcode_generator/install.rb → install.rb
File renamed without changes
View
0  barcode_generator/lib/barcode_generator.rb → lib/barcode_generator.rb
File renamed without changes
View
0  barcode_generator/lib/config.rb → lib/config.rb
File renamed without changes
View
0  barcode_generator/lib/imagemagick_wrapper.rb → lib/imagemagick_wrapper.rb
File renamed without changes
View
0  barcode_generator/tasks/barcode_generator_tasks.rake → tasks/barcode_generator_tasks.rake
File renamed without changes
View
0  barcode_generator/test/barcode_generator_test.rb → test/barcode_generator_test.rb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.