__ENCODING EXAMPLE__

We will now code the above example in Interleaved 2 of 5: "**12345670**". By this point we
would already have calculated the checksum digit as "0" (the last digit of the bar code value)
as illustrated in the checksum calculation section illustrated above.
Now we need to encode each digit using the encoding table above:

- The digit "1" encoded in bars:
**WNNNW**
- The digit "2" encoded in spaces:
**NWNNW**
- The digit "3" encoded in bars:
**WWNNN**
- The digit "4" encoded in spaces:
**NNWNW**
- The digit "5" encoded in bars:
**WNWNN**
- The digit "6" encoded in spaces:
**NWWNN**
- The digit "7" encoded in bars:
**NNNWW**
- The digit "0" encoded in spaces:
**NNWWN**

That is to say the digits 1 and 2 are encoded together, 3 and 4 are encoded together, 5 and 6
are encoded together, and 7 and 0 are encoded together. The first digit of each pair is
encoded in the width of the bars and the second digit of each pair is encoded in the width of
the spaces.
For example, in the case of the first two digits "12", we encode the "1" in the bars using the
sequence WNNNW (Wide bar, narrow bar, narrow bar, narrow bar, wide bar). We encode the "2" in
the spaces that separate the bars of the first digit. The digit "2" is encoded in spaces with
the sequence NWNNW (narrow space, wide space, narrow space, narrow space, wide space).

Assuming "1" is a narrow bar, "11" is a wide bar, "0" is a narrow space, and "00" is a wide
space, the above would be encoded as follows:

**BAR** |
**SPACE** |
**BAR** |
**SPACE** |
**BAR** |
**SPACE** |
**BAR** |
**SPACE** |
**BAR** |
**SPACE** |

**W** |
**N** |
**N** |
**W** |
**N** |
**N** |
**N** |
**N** |
**W** |
**W** |

**11** |
**0** |
**1** |
**00** |
**1** |
**0** |
**1** |
**0** |
**11** |
**00** |

Thus encoding the first two data digits results in the sequence **11010010101100**. In other
words, a wide bar, a narrow space, a narrow bar, a wide space, a narrow bar, a narrow space,
a narrow bar, a narrow space, a wide bar, a wide space.
The process for the rest of the pairs of characters is the same. It results in the following:

- START CODE (always the same):
**1010**.
- 1st and 2nd Digits:
**11010010101100**.
- 3rd and 4th Digits:
**11011010010100**.
- 5th and 6th Digits:
**11010011001010**.
- 7th and 8th Digits:
**10101001100110**.
- STOP CODE (always the same):
**1101**.

This is shown in the following graphical representation where the bar code has been
sectioned-off into areas that reflect each of the 6 components just mentioned.