EAN 128 interleaved 2 of 5

198 views
Skip to first unread message

John van Dijk

unread,
Jan 12, 2010, 12:05:50 PM1/12/10
to Barby
Hi,

I need a EAN 128 interleaved 2 of 5 barcode. Does anyone have an idea
if this is the Barby::GS1128 class output?
And if so how do I use this? What are the parameters: data, type and
ai?

regards John

Tore Darell

unread,
Jan 12, 2010, 12:29:09 PM1/12/10
to Barby
Hi John,

AFAIK, there's no such thing as an "EAN 128 interleaved 2 of 5"
barcode. There's Code 128 and Interleaved 2 of 5, both of which are
available in Barby [1][2]. Note that 2 of 5 in Barby follows the
"Code25" naming convention.

EAN 128 is an adaptation of Code 128 which is also known as GS1 128,
which is the name used in Barby. So yes, that's probably the one you
want. Note that GS1 128 is not a barcode symbology in itself, it's
just a standard for what the data encoded means. The GS1128 class in
Barby is the same as Code128, except that it also takes an Application
Identifier which is appended to the normal data. This is easily done
manually with the normal Code128 class, so GS128 is only for
convenience, and I'm not sure if the interface is what it should be
yet, so that could change in the future.

In theory, since GS1 128 (aka EAN 128) is not a symbology, I guess you
could encode an interleaved 2 of 5 barcode using the GS1 128
structure, thus creating an "EAN 128 interleaved 2 of 5" combination.
But that sounds weird.

This is all a little confusing, but it kind of makes sense.. See this
page for more detail:

http://barcodeisland.com/uccean128.phtml


Tore

[1] http://github.com/toretore/barby/blob/master/lib/barby/barcode/code_128.rb
[2] http://github.com/toretore/barby/blob/master/lib/barby/barcode/code_25_interleaved.rb

Tore Darell

unread,
Jan 12, 2010, 12:38:07 PM1/12/10
to Barby
Example GS1128 usage:

Barby::GS1128.new('110317', 'C', '11')

This creates a Code 128 barcode with the application identifier 11
(production date) with the data '110317' (March 17, 2011) using the C
character set (which is efficient when used with numbers).

On Jan 12, 6:29 pm, Tore Darell <toredar...@gmail.com> wrote:
> Hi John,
>
> AFAIK, there's no such thing as an "EAN 128 interleaved 2 of 5"
> barcode. There's Code 128 and Interleaved 2 of 5, both of which are
> available in Barby [1][2]. Note that 2 of 5 in Barby follows the
> "Code25" naming convention.
>
> EAN 128 is an adaptation of Code 128 which is also known as GS1 128,
> which is the name used in Barby. So yes, that's probably the one you
> want. Note that GS1 128 is not a barcode symbology in itself, it's
> just a standard for what the data encoded means. The GS1128 class in
> Barby is the same as Code128, except that it also takes an Application
> Identifier which is appended to the normal data. This is easily done
> manually with the normal Code128 class, so GS128 is only for
> convenience, and I'm not sure if the interface is what it should be
> yet, so that could change in the future.
>
> In theory, since GS1 128 (aka EAN 128) is not a symbology, I guess you
> could encode an interleaved 2 of 5 barcode using the GS1 128
> structure, thus creating an "EAN 128 interleaved 2 of 5" combination.
> But that sounds weird.
>
> This is all a little confusing, but it kind of makes sense.. See this
> page for more detail:
>
> http://barcodeisland.com/uccean128.phtml
>
> Tore
>

> [1]http://github.com/toretore/barby/blob/master/lib/barby/barcode/code_1...
> [2]http://github.com/toretore/barby/blob/master/lib/barby/barcode/code_2...

Tore Darell

unread,
Jan 12, 2010, 12:42:40 PM1/12/10
to Barby
Forgot one thing:

This is the equivalent using regular Code128:

Barby::Code128C.new("#{Barby::Code128::FNC1}11110317")

Note the FNC1 character inserted at the beginning which signifies this
is GS1 128 encoded. Right after that is the AI, which is 11 in this
case.

John van Dijk

unread,
Jan 12, 2010, 12:52:39 PM1/12/10
to ruby-...@googlegroups.com
Wow, thank you for your quick response.

As I'm learning about barcode right at this moment I think there should be an OR between EAN 128 and interleaved 2 of 5.
I can not imagine that 'they' use their own format.

One thing though: What's the A, B and C (startcharacter) for in the Code 128. (to what purpose?)

Thanx again.

Regards, John


--
You received this message because you are subscribed to the Google Groups "Barby" group.
To post to this group, send email to ruby-...@googlegroups.com.
To unsubscribe from this group, send email to ruby-barby+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-barby?hl=en.




John van Dijk

unread,
Jan 12, 2010, 12:54:52 PM1/12/10
to ruby-...@googlegroups.com
Just saw your other responses,

Thanx again

Tore Darell

unread,
Jan 12, 2010, 1:21:55 PM1/12/10
to Barby
The character sets are just different ways of encoding which gives
priority to a certain set of characters. You can see them in the
code_128.rb file in the VALUES constant. As you can see, if you have
only numbers, encoding using the C set will encode the same data as A
or B in half the length because each glyph contains two numbers.

> >http://github.com/toretore/barby/blob/master/lib/barby/barcode/code_1...
> > [2]
> >http://github.com/toretore/barby/blob/master/lib/barby/barcode/code_2...


>
> > On Jan 12, 6:05 pm, John van Dijk <jpm.van.d...@gmail.com> wrote:
> > > Hi,
>
> > > I need a EAN 128 interleaved 2 of 5 barcode. Does anyone have an idea
> > > if this is the Barby::GS1128 class output?
> > > And if so how do I use this? What are the parameters: data, type and
> > > ai?
>
> > > regards John
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Barby" group.
> > To post to this group, send email to ruby-...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > ruby-barby+...@googlegroups.com<ruby-barby%2Bunsubscribe@googlegrou ps.com>

John van Dijk

unread,
Jan 13, 2010, 11:57:08 AM1/13/10
to ruby-...@googlegroups.com
Aha, thanx for the info...

regards, John

To unsubscribe from this group, send email to ruby-barby+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages