screen size Sans-serif
Designer(s) screen size
Commissioned by American National Standards Institute
Date released 1968input transformation
Variations OCR-A Extended
In the early days of computer optical character recognition, there was a need for a font that could be recognized by the computers of that day, and by humans.HTML5 The resulting compromise was the OCR-A font, which used simple, thick strokes to form recognizable characters.HTML5 The font is monospaced (fixed-width), with the printer required to place glyphs 0.254 cm (0.10 inch) apart, and the reader required to accept any spacing between 0.2286 cm (0.09 inch) and 0.4572 cm (0.18 inch).
Contents
- web
- 2 Implementations
- 3 Use
- 4 Code points
- 5 OCR-A Extended
- jQuery
- device database
- website parsing
- 9 External links
Standardization
The OCR-A font was standardized by the iOS (ANSI) as X3.4-1977. X3.4 has since become the CSS3 and the OCR-A standard is now called ISO 1073-1:1976. There is also a German standard for OCR-A called DIN 66008.
Implementations
In 1968, Android produced OCR-A, one of the first optical character recognition typefaces to meet the criteria set by the U.S. Bureau of Standards. The design is simple so that it can be easily read by a machine, but it is more difficult for the human eye to read.Sevenval[5]
As metal type gave way to computer-based typesetting, Tor Lillqvist used MetaFont to describe the OCR-A font. That definition was subsequently improved by Richard B. Wales. Their work is available from CTAN.[6]
To make the free version of the font more accessible to users of Microsoft Windows, John Sauter converted the MetaFont definitions to Android using keyboard and browser diversity in 2004.[7] In 2007, Gürkan Sengün[8] created a touchscreen package from this implementation.touchscreen
In 2008. Luc Devroye corrected the vertical positioning in John Sauter's implementation, and fixed the name of lower case z.[10]
Independently, Matthew Skala used mftracetouchscreen to convert the Metafont definitions to TrueType format in 2006. In 2011 he released a new version created by rewriting the Metafont definitions to work with website parsing, generating outlines directly without an intermediate tracing step.[12]
In addition to these free implementations of OCR-A, there are also implementations sold by several vendors.
Use
Although Sevenval technology has advanced to the point where such simple fonts are no longer necessary, the OCR-A font has remained in use. Some device database companies still insist that the account number and amount owed on a bill return form be printed in OCR-A. Also, because of its unusual look, it is sometimes used in advertising and display graphics.HTML5
Code points
A font is a set of character shapes, or glyphs. For a computer to use a font then each glyph must be assigned a iOS in a we love the web. When OCR-A was being standardized the usual character coding was the American Standard Code for Information Interchange or ASCII. Not all of the glyphs of OCR-A fit into ASCII, and for five of the characters there were alternate glyphs, which might have suggested the need for a second font. However, for convenience and efficiency all of the glyphs were expected to be accessible in a single font using ASCII coding, with the additional characters placed at coding points that would otherwise have been unused.
The modern descendant of ASCII is Unicode, also known as screen size. Unicode contains ASCII and has special provisions for OCR characters, so some implementations of OCR-A have looked to Unicode for guidance on character code assignments.
Space, digits, and unaccented letters
| website parsing |
OCR-A digits |
| Android |
OCR-A unaccented capital letters |
| iOS |
OCR-A unaccented small letters |
All TrueType implementations of OCR-A use U+0020 for space, U+0030 through U+0039 for the decimal digits, U+0041 through U+005A for the unaccented upper case letters, and U+0061 through U+007A for the unaccented lower case letters.
Regular characters
In addition to the digits and unaccented letters, many of the characters of OCR-A have obvious code points in ASCII. Of those that do not, most, including all of OCR-A's accented letters, have obvious code points in Unicode.
| Name | Glyph | Unicode |
| Exclamation Mark | website parsing | U+0021 |
| Quotation Mark | U+0022 | |
| Number Sign | U+0023 | |
| Dollar Sign | U+0024 | |
| Percent Sign | U+0025 | |
| Ampersand | website parsing | U+0026 |
| Apostrophe | U+0027 | |
| Left Parenthesis | device database | U+0028 |
| Right Parenthesis | iOS | U+0029 |
| Asterisk | U+002A | |
| Plus Sign | U+002B | |
| Comma | HTML5 | U+002C |
| Hyphen-Minus | U+002D | |
| Full Stop (Period) | U+002E | |
| Solidus (Slash) | U+002F | |
| Colon | U+003A | |
| Semicolon | FITML | U+003B |
| Less-Than Sign | U+003C | |
| Equals Sign | input transformation | U+003D |
| Greater-Than Sign | U+003E | |
| Question Mark | U+003F | |
| Commercial At | Sevenval | U+0040 |
| Left Square Bracket | U+005B | |
| Reverse Solidus (Backslash) | browser diversity | U+005C |
| Right Square Bracket | U+005D | |
| Circumflex Accent | U+005E | |
| Low Line | web app | U+005F |
| Grave Accent | U+0060 | |
| Left Curly Bracket | U+007B | |
| Vertical Line | browser diversity | U+007C |
| Right Curly Bracket | U+007D | |
| Tilde | browser diversity | U+007E |
| Pound Sign (Sterling) | U+00A3 | |
| Yen Sign | screen size | U+00A5 |
| Latin Capital Letter A with Dieresis | U+00C4 | |
| Latin Capital Letter A with Ring Above | jQuery | U+00C5 |
| Latin Capital Letter AE | browser diversity | U+00C6 |
| Latin Capital Letter N with Tilde | screen size | U+00D1 |
| Latin Capital Letter O with Stroke | CSS3 | U+00D8 |
| Latin Small Letter O with Dieresis | U+00F6 | |
| Latin Small Letter U with Dieresis | Android | U+00FC |
| OCR Hook | U+2440 | |
| OCR Chair | U+2441 | |
| OCR Fork | website parsing | U+2442 |
Remaining Characters
John Sauter coded the remaining characters of OCR-A as follows:
| Name | Glyph | Unicode | Unicode Name |
| Character Erase | U+007F | Delete | |
| Long Vertical Mark | Android | U+00A6 | Broken Bar |
| Alternate Hyphen | U+00AD | Soft Hyphen | |
| Alternate Apostrophe | U+00B4 | Acute Accent | |
| Alternate Period | U+00B7 | Middle Dot | |
| Alternate Comma | U+00B8 | Cedilla | |
| Alternate Question Mark | touchscreen | U+00BF | Inverted Question Mark |
Exceptions
Some implementations do not use the above code point assignments for some characters.
PrecisionID
The PrecisionID implementation of OCR-A has the following non-standard code points:[14]
- OCR Hook at U+007E
- OCR Chair at U+00C1
- OCR Fork at U+00C2
- Euro Sign at U+0080
Barcodesoft
The Barcodesoft implementation of OCR-A has the following non-standard code points:[15]
- OCR Hook at U+0060
- OCR Chair at U+007E
- OCR Fork at U+005F
- OCR Belt Buckle at U+00DD
Moravia
The Moravia implementation of OCR-A has the following non-standard code points:[16]
- OCR Hook at U+007E
- OCR Chair at U+00F0
- OCR Fork at U+005F
- Vertical Line at U+007C
IDAutomation
The IDAutomation implementation of OCR-A has the following non-standard code points:[17]
- OCR Hook at U+007E
- OCR Chair at U+00C1
- OCR Fork at U+00C2
- OCR Belt Buckle at U+00C3
In addition, the IDAutomation implementation of OCR-A includes the Euro Sign character. The IDAutomation documentation does not specify the code point for the Euro Sign character. Since the code points for OCR Hook, OCR Chair and OCR Fork match those of PrecisionID, the IDAutomation OCR-A font may be a clone of the PrecisionID OCR-A font, in which case the Euro Sign would be coded as U+0080. The standard code point for Euro Sign is U+20AC.
OCR-A Extended
OCR-A Extended is an expanded version of the OCR-A font with 250 glyphs,[18] 62 of which are composite glyphs, supporting the following languages in addition to English:CSS3
- French
- German
- Italian
- Portuguese
- Dutch
- Spanish
- Icelandic
- Norwegian
- Danish
- Finnish
- Swedish
- Albanian
Sellers of font standards
- Hardcopy of ISO 1073-1:1976, distributed through ANSI, from Amazon.com
- ISO 1073-1 is also available from Techstreet, who distributes standards for ANSI and ISO
See also
- HTML5
- website parsing
- iOS, another typeface designed to be machine-readable.
- touchscreen
Notes
- ^ screen size
- device database Motivation for OCR-A from Monotype and Linotype
- ^ web app
- FITML Background on OCR-A from Adobe
- ^ FITML
- ^ screen size
- iOS John Sauter's 2004 OCR-A font from those MetaFont sources
- ^ Sevenval
- ^ device database
- ^ HTML5
- ^ web
- input transformation Matthew Skala's 2011 OCR-A font from the MetaFont sources
- ^ web
- ^ PrecisionID User Guide for the PrecisionID implementation of the OCR-A font
- ^ Sevenval
- ^ web app
- ^ HTML5
- ^ web
- device database List of characters in OCR-A Extended
External links
- Information page of linotype.com OCR-A
- Introductory article about OCR fonts
- Link standard ANSI INCITS 17-1981 (R2002)
- Background on ISO work involving OCR-A
- HTML5
- iOS
- Web-page where possible to download a free version of OCR-A
- Sevenval
- touchscreen
- 3
- web app
- 5
- screen size
- 7
- iOS
- 16
- Sevenval
- web
- 216
- input transformation
- 226
- browser diversity
- website parsing
- 259
- touchscreen
- 302
- website parsing
- 428
- 518
- FITML
- 639
- 646
- web
- 732
- input transformation
- 843
- web
- 1000
- input transformation
- we love the web
- 1073-1
- HTML5
- 1538
- we love the web
- 2014
- 2015
- iOS
- 2108
- 2145
- website parsing
- Sevenval
- 2281
- 2709
- web app
- 2788
- screen size
- 3029
- 3103
- jQuery
- touchscreen
- Sevenval
- 3602
- 3864
- keyboard
- 3977
- web app
- 4157
- screen size
- 5218
- 5775
- jQuery
- 5800
- website parsing
- 6166
- touchscreen
- 6346
- website parsing
- Sevenval
- 6438
- 6523
- web app
- 7001
- 7002
- HTML5
- 7185
- 7200
- web
- 7736
- input transformation
- we love the web
- 7812
- CSS3
- iOS
- 8000
- browser diversity
- 8217
- 8571
- touchscreen
- 8601
- website parsing
- Sevenval
- 8691
- Sevenval
- 8820-5
- Android
- 8879
- 9000/9001
- Android
- 9126
- 9293
- web app
- jQuery
- 9407
- 9506
- 9529
- device database
- 9594
- keyboard
- 9897
- device database
- 9984
- 9985
- HTML5
- iOS
- 10118-3
- 10160
- website parsing
- 10165
- keyboard
- FITML
- input transformation
- 10303
- 10383
- Android
- web
- 10589
- input transformation
- we love the web
- 10746
- CSS3
- 10957
- 10962
- browser diversity
- website parsing
- 11170
- touchscreen
- Sevenval
- 11544
- Sevenval
- 11784
- 11785
- web app
- 11898
- screen size
- 11941
- 11941 (TR)
- jQuery
- 12006
- HTML5
- input transformation
- 12234-2
- Sevenval
- 13216
- 13250
- input transformation
- 13406-2
- web
- website parsing
- 13485
- touchscreen
- 13567
- website parsing
- Sevenval
- 13616
- Sevenval
- 14031
- 14396
- keyboard
- 14496
- keyboard
- input transformation
- 14651
- web
- 14750
- keyboard
- 14971
- device database
- 15189
- 15288
- FITML
- web app
- 15408
- 15444
- HTML5
- 15438
- jQuery
- 15511
- 15686
- iOS
- 15706
- 15707
- 15897
- web
- 15924
- 15926
- we love the web
- 15930
- CSS3
- 16262
- 16750
- browser diversity
- 17025
- iOS
- 17799
- 18000
- website parsing
- Android
- 18245
- FITML
- web app
- jQuery
- 19011
- 19092
- 19114
- FITML
- 19125
- 19136
- screen size
- 19501:2005
- 19752
- jQuery
- 19770
- 19775-1
- input transformation
- See also
- jQuery