lib/usps_intelligent_barcode/bar_to_character_mapping.yml
# Represents the table from the spec. that controls how the bits of
# the "characters" are mapped to barcode positions. Each line of this
# file represents a single barcode position (or vertical line), with
# the leftmost position first.
#
# Let's decode the first line:
#
# [
# [
# 7, # descender character index (0..)
# 2, # descender bit number (0..)
# ],
# [
# 4, # ascender character index (0..)
# 3, #ascender bit number (0..)
# ]
# ]
#
# This means that the first barcode position's ascender is controlled
# by bit 2 of character 7; the descender is controlled by bit 3 of
# character 4.
#
# See spec. section 10.0 ("Appendix E -- Tables for Converting
# Characters"), Table 22 ("Bar to Character Mapping")
---
- [[7, 2], [4, 3]]
- [[1, 10], [0, 0]]
- [[9, 12], [2, 8]]
- [[5, 5], [6, 11]]
- [[8, 9], [3, 1]]
- [[0, 1], [5, 12]]
- [[2, 5], [1, 8]]
- [[4, 4], [9, 11]]
- [[6, 3], [8, 10]]
- [[3, 9], [7, 6]]
- [[5, 11], [1, 4]]
- [[8, 5], [2, 12]]
- [[9, 10], [0, 2]]
- [[7, 1], [6, 7]]
- [[3, 6], [4, 9]]
- [[0, 3], [8, 6]]
- [[6, 4], [2, 7]]
- [[1, 1], [9, 9]]
- [[7, 10], [5, 2]]
- [[4, 0], [3, 8]]
- [[6, 2], [0, 4]]
- [[8, 11], [1, 0]]
- [[9, 8], [3, 12]]
- [[2, 6], [7, 7]]
- [[5, 1], [4, 10]]
- [[1, 12], [6, 9]]
- [[7, 3], [8, 0]]
- [[5, 8], [9, 7]]
- [[4, 6], [2, 10]]
- [[3, 4], [0, 5]]
- [[8, 4], [5, 7]]
- [[7, 11], [1, 9]]
- [[6, 0], [9, 6]]
- [[0, 6], [4, 8]]
- [[2, 1], [3, 2]]
- [[5, 9], [8, 12]]
- [[4, 11], [6, 1]]
- [[9, 5], [7, 4]]
- [[3, 3], [1, 2]]
- [[0, 7], [2, 0]]
- [[1, 3], [4, 1]]
- [[6, 10], [3, 5]]
- [[8, 7], [9, 4]]
- [[2, 11], [5, 6]]
- [[0, 8], [7, 12]]
- [[4, 2], [8, 1]]
- [[5, 10], [3, 0]]
- [[9, 3], [0, 9]]
- [[6, 5], [2, 4]]
- [[7, 8], [1, 7]]
- [[5, 0], [4, 5]]
- [[2, 3], [0, 10]]
- [[6, 12], [9, 2]]
- [[3, 11], [1, 6]]
- [[8, 8], [7, 9]]
- [[5, 4], [0, 11]]
- [[1, 5], [2, 2]]
- [[9, 1], [4, 12]]
- [[8, 3], [6, 6]]
- [[7, 0], [3, 7]]
- [[4, 7], [7, 5]]
- [[0, 12], [1, 11]]
- [[2, 9], [9, 0]]
- [[6, 8], [5, 3]]
- [[3, 10], [8, 2]]