alt236 Development

[Home] [Windows] [Barcode Generator] [Script Format]

Introduction

This is document contains an explanation of the Barcode Script format to be used with the BarcodeGenerator application which can be found here:http://aschillings.co.uk/html/barcode_generator.html

Notes

 Things to keep in mind:

  • The barcode script file is a tab separated plain text file (i.e. fields are separated by the tab character).
  • The first line of the file must always be "BarcodeGenerator".
  • If a line starts with "#" it will be treated as a comment and it will not be parsed.

File Format: Options

 Options are written in the following format:

bcg_option<TAB>[option_name]<TAB>[option_value]

 The start of the line must always be "bcg_option" (bcg stands for BarCodeGenerator).

 Valid option names are the following:

Option

Description

 bc_prefix

 A string which will be prefixed to the barcode text

 bc_suffix

 A string which will be suffixed to the barcode text

 bc_width

 The width of the barcode in pixels

 bc_height

 The height of the barcode in pixels

 Options can be changed at will through the file. For example the file might start with a bc_width of 200 and after a few barcodes it can be changed to a bc_width of 300 (see example below).

 If you need to remove a value, for example to remove a prefix/suffix, do not type anything after the second tab:

bcg_option<TAB>bc_prefix<TAB>

File Format: Barcode Lines

 Barcode lines are written in the following format:

<barcode_text><TAB><barcode_filename>

<barcode_text> is the text the barcode will contain (which will be automatically prefixed and/or suffixed by the text declared using the "bc_prefix" and "bc_suffix" options if applicable.

<barcode_filename>is the name  the barcode will be saved as.

File Format: Example

 The following is a sample barcode script file. The file itself can be found here.


BarcodeGenerator
#
#The following lines are options
#
bcg_option	bc_prefix	market://search?q=pname:
bcg_option	bc_suffix	
bcg_option	bc_width	200
bcg_option	bc_height	200
#
#The barcode lines begin now
#
aws.apps.androidDrawables	qrcode_android_drawables.png
aws.apps.hex2bin	qrcode_android_hex2bin.png
aws.apps.keyeventdisplay	qrcode_android_keyeventdisplay.png
aws.apps.netPortDb	qrcode_android_networkportdb.png
aws.apps.networkInfo	qrcode_android_networkinfo.png
aws.apps.networkInfo_D	qrcode_android_networkinfo_d.png
aws.apps.networkInfoIi	qrcode_android_networkInfoii.png
aws.apps.networkInfoIi_D	qrcode_android_networkinfoii_D.png
aws.apps.ouiDb	qrcode_android_ouidb.png
aws.apps.pciVenDevDb	qrcode_android_pcivendevdb.png
aws.apps.underthehood	qrcode_android_underthehood.png
aws.apps.usbVenDevDb	qrcode_android_usbvendevdb.png
aws.apps.wifiKeyRecovery	qrcode_android_wifikeyrecovery.png
#
#Changing the barcode size:
#
bcg_option	bc_width	400
bcg_option	bc_height	400
#
aws.apps.androidDrawables	qrcode_android_drawables_400.png
aws.apps.hex2bin	qrcode_android_hex2bin_400.png
#
#Adding a suffix:
#
bcg_option	bc_suffix	this_is_my_suffix_text!
#
aws.apps.androidDrawables	qrcode_android_drawables_400_suffix.png
aws.apps.hex2bin	qrcode_android_hex2bin_400_suffix.png
#
#Changing the size again, and removing the suffix. Keep in mind that
#there is a tab after the "bc_suffix".
#
bcg_option	bc_width	100
bcg_option	bc_height	100
bcg_option	bc_suffix	
#
aws.apps.androidDrawables	qrcode_android_drawables_100.png
aws.apps.hex2bin	qrcode_android_hex2bin_100.pngBarcodeGenerator
#
#The following lines are options
#
bcg_option	bc_prefix	market://search?q=pname:
bcg_option	bc_suffix	
bcg_option	bc_width	200
bcg_option	bc_height	200
#
#The barcode lines begin now
#
aws.apps.androidDrawables	qrcode_android_drawables.png
aws.apps.hex2bin	qrcode_android_hex2bin.png
aws.apps.keyeventdisplay	qrcode_android_keyeventdisplay.png
aws.apps.netPortDb	qrcode_android_networkportdb.png
aws.apps.networkInfo	qrcode_android_networkinfo.png
aws.apps.networkInfo_D	qrcode_android_networkinfo_d.png
aws.apps.networkInfoIi	qrcode_android_networkInfoii.png
aws.apps.networkInfoIi_D	qrcode_android_networkinfoii_D.png
aws.apps.ouiDb	qrcode_android_ouidb.png
aws.apps.pciVenDevDb	qrcode_android_pcivendevdb.png
aws.apps.underthehood	qrcode_android_underthehood.png
aws.apps.usbVenDevDb	qrcode_android_usbvendevdb.png
aws.apps.wifiKeyRecovery	qrcode_android_wifikeyrecovery.png
#
#Changing the barcode size:
#
bcg_option	bc_width	400
bcg_option	bc_height	400
#
aws.apps.androidDrawables	qrcode_android_drawables_400.png
aws.apps.hex2bin	qrcode_android_hex2bin_400.png
#
#Adding a suffix:
#
bcg_option	bc_suffix	this_is_my_suffix_text!
#
aws.apps.androidDrawables	qrcode_android_drawables_400_suffix.png
aws.apps.hex2bin	qrcode_android_hex2bin_400_suffix.png
#
#Changing the size again, and removing the suffix. Keep in mind that
#there is a tab after the "bc_suffix".
#
bcg_option	bc_width	100
bcg_option	bc_height	100
bcg_option	bc_suffix	
#
aws.apps.androidDrawables	qrcode_android_drawables_100.png
aws.apps.hex2bin	qrcode_android_hex2bin_100.png
 


Home   Contact   Blog   Curriculum Vitae   Disclaimer

Mobile and Web Analytics