لم تُترجم المقالة التفصيلية أدناه بعد، وتُعرض بالإنجليزية.
عن أرقام الباركود UPC-A
The UPC exists because American supermarkets were drowning in price stickers. The underlying idea was much older: Norman Joseph Woodland and Bernard Silver filed a patent application on 20 October 1949 and received US Patent 2,612,994 in October 1952, for a symbol made of concentric rings. Nothing came of it. The patent's seventeen-year term ran out before the laser and the integrated circuit made reading such a symbol cheap enough to matter.
At the end of the 1960s the American grocery trade set up an ad hoc committee to settle on a single product code. Several companies submitted symbols. IBM's entry was designed by George Laurer — Woodland was by then an IBM employee himself — and replaced the rings with vertical bars, which degraded gracefully when ink smeared along the direction of printing instead of being destroyed by it. On 3 April 1973 the committee adopted it, and the Uniform Code Council was founded the following year to hand out the numbers.
The first live scan came at the Marsh Supermarket in Troy, Ohio, at 8:01 on the morning of 26 June 1974: Sharon Buchanan rang up a 10-pack of Wrigley's Juicy Fruit gum for Clyde Dawson, Marsh's director of research and development. The 67-cent pack went to the Smithsonian.
Adoption was slow at first — scanners were expensive, and consumer groups objected to stores stripping the printed price off each item — and then it became total. EAN International and the Uniform Code Council, which had grown up on either side of the Atlantic, converged on a single name, GS1, from 2005. In GS1's vocabulary the twelve-digit UPC-A is GTIN-12: a zero-padded special case of the thirteen-digit international number rather than a system of its own.
It also picked up a conspiracy theory on the way. Mary Stewart Relfe's 1982 book The New Money System 666 popularised the claim that the three pairs of long guard bars encode 666. Laurer answered it himself: the guard patterns frame the symbol and let the scanner's gain circuitry adjust to the contrast of the particular label. They are not digit encodings at all.
الخصائص الرئيسية
- A UPC-A is twelve digits: a number system digit, a five-digit manufacturer code, a five-digit item code and one check digit.
- The check digit makes the weighted sum of all twelve digits a multiple of 10, with weights of 1 and 3 assigned alternately from the right: the check digit weighs 1, the digit to its left 3, then 1, 3 and so on. On a twelve-digit code that leaves weight 3 on the leading digit.
- Prepending a zero turns a UPC-A into a valid EAN-13 with exactly the same check digit, because the weights are anchored at the right-hand end and a leading zero adds nothing to the sum.
- Number system 2 is for variable-weight items such as meat and produce, where the trailing digits carry a weight or a price rather than a product identity.
- Number system 4 is reserved for local store and warehouse use, including loyalty cards and store coupons; 3 identifies drugs by National Drug Code and 5 identifies coupons. The remaining values — 0, 1 and 6 through 9 — cover ordinary retail items.
- UPC-E is an eight-digit printed form of a GTIN-12 that suppresses four zeros in codes with a suitable company prefix. The scanner expands it back to the full twelve digits before anything looks it up.
- The guard patterns at the left, centre and right of the symbol are 101, 01010 and 101. They are framing and gain-setting patterns rather than digits: the left-hand encoding of a 6 is 0101111, which is a different thing entirely.
- ISO/IEC 15420 specifies the symbology shared by UPC-A, UPC-E, EAN-13 and EAN-8. What the digits are allowed to mean is defined separately, in the GS1 General Specifications.
أين تظهر
- Packaged grocery and retail goods across the United States and Canada, where UPC-A is still the symbol you are most likely to find on the shelf.
- Supermarket scales at the deli and produce counters, which print number-system-2 codes with the weight or price of that particular package baked into the digits.
- Pharmacy stock systems, which read number-system-3 codes to recover a National Drug Code from a package.
- Coupon clearing: number-system-5 codes carry the manufacturer and the offer, which is how a till knows which coupon it has just taken.
- The original 67-cent pack of Wrigley’s Juicy Fruit from the first retail scan in 1974 is held by the Smithsonian, along with a scanner and cash register from the same store.
- A long-running claim that the symbol hides 666 in its guard bars, popularised by Mary Stewart Relfe in 1982. It is a belief about the barcode rather than a fact about it — the guard patterns do not encode digits.
كيف تستخدم هذا المُنشئ
تظهر القيم المُنشأة في الأعلى، وبجانبها زرّ النسخ. ولتحويلها إلى صورة اختر مظهرًا من الأنماط ضمن أنشئ صورة، ثم حدّد مقاس التصدير ونزّلها بصيغة PNG أو JPEG أو WebP. كل شيء يُرسم في متصفحك، فلا يُرسل أي شيء تنشئه إلى خادم.
يتحدّث شريط العنوان مع عملك، فيعيد الرابط دائمًا ما تراه بالضبط — وهو أمر مفيد لمشاركة متتالية معيّنة أو الاحتفاظ بإعداد لوقت لاحق. استخدم نسخ لأخذ القيم كنص عادي، أو تصدير البيانات للحصول على CSV و JSON و NDJSON و SQL و XML.
المصادر
- Universal Product Code — Wikipedia — CC BY-SA 4.0
- Barcode — Wikipedia — CC BY-SA 4.0
- Global Trade Item Number — Wikipedia — CC BY-SA 4.0
- GS1 — Marsh holds place of honor in history of GS1 barcode — Official standards body page (cited, not reproduced)
- ISO/IEC 15420 — EAN/UPC bar code symbology specification — Official standards catalogue entry (abstract freely readable)
تستند الملخّصات التاريخية في هذه الصفحة إلى المراجع ذات الرخص المفتوحة المذكورة أعلاه. لاحظت خطأً؟ أخبرنا وسنصلحه.