Thilina Ratnayake | 7 Oct 2003 12:18

Barcode Info - Need Help

Hi,

 

I generate barcode using code 128; my values are listed bellow,

 

             <barcode>

                    <description>Code 128</description>

                    <msg>(J)JD01 2012 3456 0123 4560</msg>

                    <code128/>

             </barcode>

 

             <barcode>

                    <description>Code 128-1</description>

                    <msg>(2L)ES08820+40BRUA</msg>

                    <code128/>

             </barcode>

 

Problem is when reading this back form Barcode Reader it generate different out put as

 

Code 128 result:            )J=JD01 2012 3456 0123 4560

Code 128-1 result:          )2L=ES08820`40BRUA

 

 

Could your please let me know where is the wrong, is there are any setting to set barcode reader?

 

 

Thanks in Advance

Thilina

Jeremias Maerki | 7 Oct 2003 13:29
Picon
Favicon

Re: Barcode Info - Need Help

Sounds like some character set problem. Check if you can change the
character set on your barcode reader. The fact that you do get something
back from your barcode reader means that the checksum must be correct.
Probably. I'll get back to you in a few hours when I have time to take a
closer look.

> I generate barcode using code 128; my values are listed bellow,
>  
>              <barcode>
>                     <description>Code 128</description>
>                     <msg>(J)JD01 2012 3456 0123 4560</msg>
>                     <code128/>
>              </barcode>
>  
>              <barcode>
>                     <description>Code 128-1</description>
>                     <msg>(2L)ES08820+40BRUA</msg>
>                     <code128/>
>              </barcode>
>  
> Problem is when reading this back form Barcode Reader it generate
> different out put as
>  
> Code 128 result:            )J=JD01 2012 3456 0123 4560
> Code 128-1 result:          )2L=ES08820`40BRUA
>  
>  
> Could your please let me know where is the wrong, is there are any
> setting to set barcode reader?

Jeremias Maerki

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Kloeck, Erwin | 7 Oct 2003 13:47
Picon

AW: Barcode Info - Need Help

Thilina,
 
I asume you read the barcode with a Windows PC. If you set the language
to US, I guess you use SE currently, the barcode should come out correctly.
 
Erwin
-----Ursprüngliche Nachricht-----
Von: Thilina Ratnayake [mailto:thilina <at> parcelhouse.com]
Gesendet: Dienstag, 7. Oktober 2003 12:19
An: krysalis-users <at> lists.sourceforge.net
Betreff: Barcode Info - Need Help

Hi,

 

I generate barcode using code 128; my values are listed bellow,

 

             <barcode>

                    <description>Code 128</description>

                    <msg>(J)JD01 2012 3456 0123 4560</msg>

                    <code128/>

             </barcode>

 

             <barcode>

                    <description>Code 128-1</description>

                    <msg>(2L)ES08820+40BRUA</msg>

                    <code128/>

             </barcode>

 

Problem is when reading this back form Barcode Reader it generate different out put as

 

Code 128 result:            )J=JD01 2012 3456 0123 4560

Code 128-1 result:          )2L=ES08820`40BRUA

 

 

Could your please let me know where is the wrong, is there are any setting to set barcode reader?

 

 

Thanks in Advance

Thilina

Jeremias Maerki | 7 Oct 2003 21:39
Picon
Favicon

Re: Barcode Info - Need Help

No news here. I think Erwin is right in his analysis. I guess you're
using a barcode reader that is connected to the keyboard cable. That
means you have to choose the right codepage on the barcode reader.

On 07.10.2003 13:29:43 Jeremias Maerki wrote:
> Sounds like some character set problem. Check if you can change the
> character set on your barcode reader. The fact that you do get something
> back from your barcode reader means that the checksum must be correct.
> Probably. I'll get back to you in a few hours when I have time to take a
> closer look.
> 
> > I generate barcode using code 128; my values are listed bellow,
> >  
> >              <barcode>
> >                     <description>Code 128</description>
> >                     <msg>(J)JD01 2012 3456 0123 4560</msg>
> >                     <code128/>
> >              </barcode>
> >  
> >              <barcode>
> >                     <description>Code 128-1</description>
> >                     <msg>(2L)ES08820+40BRUA</msg>
> >                     <code128/>
> >              </barcode>
> >  
> > Problem is when reading this back form Barcode Reader it generate
> > different out put as
> >  
> > Code 128 result:            )J=JD01 2012 3456 0123 4560
> > Code 128-1 result:          )2L=ES08820`40BRUA
> >  
> >  
> > Could your please let me know where is the wrong, is there are any
> > setting to set barcode reader?

Jeremias Maerki

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Alberto Lirussi | 23 Oct 2003 19:20
Picon

krysalis-barcode: conversion from SVG to PNG

Hi all,
I'm making some experiment with the Krysalis Barcode Servlet and the associated web application copiled from krysalis-barcode-20031001.tar.Z. I'm using code 128.
With SVG I have no problem recognizing the barcode with my Barcode scanner, even if the barcode images are very tiny.
I run into trouble when using PNG.
I tried with different bitmap resolution, Height and Module with, but the recognition of PNG images were not improved.
It seems to me that is a conversion problem from SVG to PNG. In fact the black bars differs between the two images.
 
What can i do? Any advices?
 
Thank you in advance!
 
Alberto
 
 
 
 
Richard Prescott | 25 Oct 2003 02:41

krysalis-barcode with xalan-j2

Hello everyone,

  Sorry for this newbie question (not really at the right mailing list I
know) but I guess to have better result here.

In exchange for your help I created a .spec file to create rpm for
krysalis-barcode.  Result is compatible with jpackages.org.

Here it goes :  How can I make the command line of xalan works!

You can see my guesses in the attached output file called "out".

Thanks in advance.

Richard
%define	name		krysalis-barcode
%define	version		0.9
%define	release		1rip
%define	section		free

Name:		%{name}
Version:	%{version}
Release:	%{release}
Epoch:		0
Summary:	Krysalis Barcode is a flexible generator for barcodes written in Java.
License:	The Krysalis Patchy Software License
Group:		Development/Java
Vendor:		Richard Prescott
Distribution:	JPackage compatible
Source0:	%{name}-%{version}-src.tar.gz
URL:		http://krysalis.org/barcode/
Requires:	sac
BuildRequires:	ant jdom junit servlet
BuildRequires:	jpackage-utils >= 0:1.5
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
Krysalis Barcode is a flexible generator for barcodes written in Java.

Features:

    * 1D barcode implementations:
          o Interleaved 2 of 5
          o Code 39
          o Codabar
          o Code 128
          o UPC-A
          o UPC-E
          o EAN-13
          o EAN-8
    * Support for multiple output formats:
          o SVG
          o Text (for testing and debugging only)
    * SVG-generating servlet
    * Plug-ins/extensions for third-party products:
          o Apache Xalan: SVG-generating XSLT extension

	

%package javadoc
Group:		Development/Java
Summary:	Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q

%build
#export CLASSPATH=%(build-classpath sac)
ant
ant javadocs

%install
# jar
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 build/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 644 build/%{name}.war $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.war
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed 
"s|-%{version}||g"`; done)
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%doc README.txt WARNING.txt examples/ legal/
%{_javadir}/*

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}

%changelog
* Fri Oct 24 2003 Richard Prescott <rip <at> step.polymtl.ca> 0.9-1rip 
- first release
[rip <at> antrip barcode]$ ls
barcodes2xsl-fo.xsl  barcodes.xml  xalan  xalan-cmdline-example.txt
[rip <at> antrip barcode]$ cat xalan
#! /bin/sh
echo java -classpath $(build-classpath xalan-j2 xerces-j2 krysalis-barcode
jdom xml-commons-apis) org.apache.xalan.xslt.Process $*
java -classpath $(build-classpath xalan-j2 xerces-j2 krysalis-barcode jdom
xml-commons-apis) org.apache.xalan.xslt.Process $*
[rip <at> antrip barcode]$ ./xalan -in barcodes.xml -xsl barcodes2xsl-fo.xsl -out foo.out
java -classpath
/usr/share/java/xalan-j2.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/krysalis-barcode.jar:/usr/share/java/jdom.jar:/usr/share/java/xml-commons-apis.jar
org.apache.xalan.xslt.Process -in barcodes.xml -xsl barcodes2xsl-fo.xsl -out foo.out
Warning: -in not understood. Ignoring.
Warning: -xsl not understood. Ignoring.
Warning: -out not understood. Ignoring.
Invalid option: barcodes.xml
Invalid option: barcodes2xsl-fo.xsl
Invalid option: foo.out
Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions.
[rip <at> antrip barcode]$ ./xalan -IN barcodes.xml -XSL barcodes2xsl-fo.xsl -OUT foo.out
java -classpath
/usr/share/java/xalan-j2.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/krysalis-barcode.jar:/usr/share/java/jdom.jar:/usr/share/java/xml-commons-apis.jar
org.apache.xalan.xslt.Process -IN barcodes.xml -XSL barcodes2xsl-fo.xsl -OUT foo.out
Warning: -IN not understood. Ignoring.
Warning: -XSL not understood. Ignoring.
Warning: -OUT not understood. Ignoring.
Invalid option: barcodes.xml
Invalid option: barcodes2xsl-fo.xsl
Invalid option: foo.out
Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions.
[rip <at> antrip barcode]$ ./xalan
java -classpath
/usr/share/java/xalan-j2.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/krysalis-barcode.jar:/usr/share/java/jdom.jar:/usr/share/java/xml-commons-apis.jar org.apache.xalan.xslt.Process
Xalan-J command line Process class options:

                        -Common Options-

   [-XSLTC (use XSLTC for transformation)]
   [-IN inputXMLURL]
   [-XSL XSLTransformationURL]
   [-OUT outputFileName]

[...]
Jeremias Maerki | 23 Oct 2003 23:06
Picon
Favicon

Re: krysalis-barcode: conversion from SVG to PNG

Ciao Alberto

I've just compared the SVG output with the PNG output and don't see any
differences. By the way, it can't be a conversion problem from SVG to
PNG because the PNG bitmap are produced directly, not via SVG. It's
different code that produces PNG. Of course, there could be a problem in
the Java2D-CanvasProvider but it doesn't look to me like that is the
problem.

Would you please verify that it also doesn't work if you enable
grayscale in the servlet (add: "&gray=true")? I have the slight
suspicion that the PNG is inverted (black is white and white is black).
I've seen that behaviour in some bitmap editors. I guess you probably
switched off the human-readable parts and the quiet zone.

Would you describe in a little more detail in what way the black bars
differ?

On 23.10.2003 19:20:20 Alberto Lirussi wrote:
> I'm making some experiment with the Krysalis Barcode Servlet and the associated web application copiled
from krysalis-barcode-20031001.tar.Z. I'm using code 128.
> With SVG I have no problem recognizing the barcode with my Barcode scanner, even if the barcode images are
very tiny.
> I run into trouble when using PNG.
> I tried with different bitmap resolution, Height and Module with, but the recognition of PNG images were
not improved.
> It seems to me that is a conversion problem from SVG to PNG. In fact the black bars differs between the two images.
> 
> What can i do? Any advices?

Jeremias Maerki

-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
Jeremias Maerki | 26 Oct 2003 12:38
Picon
Favicon

Re: krysalis-barcode with xalan-j2

Hello Richard

On 25.10.2003 02:41:19 Richard Prescott wrote:
> Hello everyone,
> 
>   Sorry for this newbie question (not really at the right mailing list I
> know) but I guess to have better result here.

Hey, this IS the right mailing list. :-)

> In exchange for your help I created a .spec file to create rpm for
> krysalis-barcode.  Result is compatible with jpackages.org.

Thanks. Now, if I only knew what to do about that .spec file and how to
test it (because I don't have a Linux box here. I'm currently
downloading Knoppix, though).

> Here it goes :  How can I make the command line of xalan works!
> 
> You can see my guesses in the attached output file called "out".

This is real strange. I'd say this has to work. I've just done the same
on my Windows box again and it worked. Here's my command-line:

------------------ START of console output

D:\krysalis.org\BarCode\examples\xsl-fo>java -cp
..\..\build\krysalis-barcode.jar;..\..\lib\avalon-framework-4.1.4.jar org.apache.xa
lan.xslt.Process -IN barcodes.xml -XSL barcodes2xsl-fo.xsl -OUT foo.out

D:\krysalis.org\BarCode\examples\xsl-fo>dir
 Volume in drive D is Data
 Volume Serial Number is 20E4-8288

 Directory of D:\krysalis.org\BarCode\examples\xsl-fo

26.10.2003  12:34    <DIR>          .
26.10.2003  12:34    <DIR>          ..
04.08.2003  15:47             7'903 barcodes.xml
05.08.2003  16:56             5'052 barcodes2xsl-fo.xsl
02.04.2003  07:47    <DIR>          CVS
26.10.2003  12:34           181'397 foo.out
05.08.2003  17:49             5'409 fop-extension-demo.fo
               4 File(s)        199'761 bytes
               3 Dir(s)   2'246'664'192 bytes free

D:\krysalis.org\BarCode\examples\xsl-fo>

------------------ END of console output

Note: I'm using JDK 1.4.1_03 so I don't need to have Xerces and Xalan in
the classpath explicitely. JDOM, by the way, is not needed for normal
operation, only if you embed Krysalis Barcode in a Java application and
you want to use JDOM instead of a W3C DOM.

Can anybody else check the whole thing on a Linux box? I still have to
wait a few hours until I have my Knoppix ready.

Jeremias Maerki

-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
Bharat | 30 Oct 2003 21:14
Picon
Favicon

Centipede on linux

Hi all:
I was wondering if there are any issues with repect to using centipede or any cents on Linux 2.4.18-3smp ???
 
I am using /j2sdk1.4.1_02 but on running the centm script (sh script) to start the build, I get this:
 
==============================================================
CENTIPEDE_HOME=/opt/ci/metrics/centipede
JAVA_HOME=/usr/j2sdk1.4.1_02
Error occurred during initialization of VM
Could not reserve enough space for object heap
This is what I have in that script:
exec "$JAVACMD" -Xmx2512m -Xms128m -classpath "$LOCALCLASSPATH" -Dbild.prop.file="${CENTIBUILD_PROPERTIES}" -Dant.home="$CENTIPEDE_HOME" -Djava.endorsed.dirs="${CENTIPEDE_HOME}"/lib/endorsed:"${CENTIPEDE_HOME}"/lib/optional/endorsed $CENTIPEDE_OPTS org.apache.tools.ant.Main -find "$PROJECT_HOME/${CENTIBUILD_FILE}" -emacs $CENTIPEDE_ARGS "$ <at> "
 
 
Any thoughts?
 
Please let me know.
Thanks,
Bharat

Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
Nevzorov, Vlad | 30 Oct 2003 21:16

RE: Centipede on linux

How much memory the box has?
-----Original Message-----
From: Bharat [mailto:bxg018400 <at> yahoo.com]
Sent: Thursday, October 30, 2003 2:15 PM
To: krysalis-users <at> lists.sourceforge.net
Subject: Centipede on linux

Hi all:
I was wondering if there are any issues with repect to using centipede or any cents on Linux 2.4.18-3smp ???
 
I am using /j2sdk1.4.1_02 but on running the centm script (sh script) to start the build, I get this:
 
==============================================================
CENTIPEDE_HOME=/opt/ci/metrics/centipede
JAVA_HOME=/usr/j2sdk1.4.1_02
Error occurred during initialization of VM
Could not reserve enough space for object heap
This is what I have in that script:
exec "$JAVACMD" -Xmx2512m -Xms128m -classpath "$LOCALCLASSPATH" -Dbild.prop.file="${CENTIBUILD_PROPERTIES}" -Dant.home="$CENTIPEDE_HOME" -Djava.endorsed.dirs="${CENTIPEDE_HOME}"/lib/endorsed:"${CENTIPEDE_HOME}"/lib/optional/endorsed $CENTIPEDE_OPTS org.apache.tools.ant.Main -find "$PROJECT_HOME/${CENTIBUILD_FILE}" -emacs $CENTIPEDE_ARGS "$ <at> "
 
 
Any thoughts?
 
Please let me know.
Thanks,
Bharat

Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

Gmane