The ascii font package



Similar documents
ASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot

Symbols in subject lines. An in-depth look at symbols

URL encoding uses hex code prefixed by %. Quoted Printable encoding uses hex code prefixed by =.

ASCII CODES WITH GREEK CHARACTERS

Memory is implemented as an array of electronic switches

The ASCII Character Set

BARCODE READER V 2.1 EN USER MANUAL

ASCII control characters (character code 0-31)

Command Emulator STAR Line Mode Command Specifications

BI-300. Barcode configuration and commands Manual

Voyager 9520/40 Voyager GS9590 Eclipse 5145

CHAPTER 8 BAR CODE CONTROL

Create!form Barcodes. User Guide

BAR CODE 39 ELFRING FONTS INC.

Teletypewriter Communication Codes

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:

DEBT COLLECTION SYSTEM ACCOUNT SUBMISSION FILE

This is great when speed is important and relatively few words are necessary, but Max would be a terrible language for writing a text editor.

Representação de Caracteres

Xi2000 Series Configuration Guide

MK-SERIE 1000/1500/2000 AllOfBarcode.de Michael Krug Traunstein BARCODE SCANNER

Chapter 1. Binary, octal and hexadecimal numbers

Part No. : MUL PROGRAMMING GUIDE

Chapter 5. Binary, octal and hexadecimal numbers

Model 200 / 250 / 260 Programming Guide

Barcode Magstripe. Decoder & Scanner. Programming Manual

7-Bit coded Character Set

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

DL910 SERIES. Instruction Manual

Enter/Exit programming

Barcode Scanning Made Easy. WWS500 Programming Guide

MINIMAG. Magnetic Stripe Reader Keyboard Wedge. User s Manual

Characters & Strings Lesson 1 Outline

Talk Encoding Issues. An overview to understand and be able to handle encoding issues in a better way. Susanne Ebrecht

Bar Code CCD Scanner OPERATION MANUAL

ASCII Character Set and Numeric Values The American Standard Code for Information Interchange

Barcode Scanning Made Easy. Programming Guide

HANDHELD LASER SCANNER

TELOCATOR ALPHANUMERIC PROTOCOL (TAP)

TAP Interface Specifications

Index...1. Introduction...3. Installation- Keyboard Wedge...3 RS USB...3. Default Setting for each barcode shown as below:...

S302D. Programming Guide. 2D Imaging Barcode Scanner. Advanced Handheld High-Speed Laser Scanner

ESC/POS Command Specifications

IBM Emulation Mode Printer Commands


Security Protection of Software Programs by Information Sharing and Authentication Techniques Using Invisible ASCII Control Codes

ASCII Characters. 146 CHAPTER 3 Information Representation. The sign bit is 1, so the number is negative. Converting to decimal gives

How To Use A Microsoft Powerbook With A Microtron 2 (Ios) On A Microsatellite (Ipl) On An Iphone Or Ipro (Iphones) On Your Computer Or Ipo (Iphone)

Applied Data Communication Lecture 14

Barcode reader setup manual

CD-3860 Bar Code Scanner User s Manual

PROPERTY MANAGEMENT SYSTEM

MK D Imager Barcode Scanner Configuration Guide

Technical Reference DYMO LabelWriter SE450 Label Printer

Allen-Bradley. Bar Code. 2-D Hand-Held. Programming Guide. Bar Code. Scanners. (Cat. No HTG-4)

BRMO 80 / ETH-IP. User Manual. Réf : MU-BRMO 80-ETH-IP-1.4-EN

Scanner Configuration

C Examples! Jennifer Rexford!

XR-500 [Receipt Printer User s Manual ]

NVT (Network Virtual Terminal) description

Code. Barc. ber 20100

Digital Logic Design. Introduction

Communication Concepts

Software Developer's Manual

BARCODE IMAGER. Programming Manual International Edition, Rev. A1

Docklight Pro Monitor User Manual 10/2015

INTERNATIONAL STANDARD

Design of a Bluetooth Enabled Android Application for a Microcontroller Driven Robot

!"#$$$$First in Document Technology BARCODE User Guide & Programming Manual

PRINTED MANUAL AGG Software (

2 ASCII TABLE (DOS) 3 ASCII TABLE (Window)

How To Use A Powerpoint On A Microsoft Powerpoint 2.5 (Powerpoint 2) With A Microsatellite 2.2 (Powerstation 2) (Powerplant 2.3) (For Microsonde) (Micros

MTS Master Custom Communications Protocol APPLICATION NOTES

Telegrams for Operating/Configuring the LMS 2xx Laser Measurement Systems Firmware Version V2.10/X1.14

Software Developer's Manual

S PT-H500LI ELECTRONIC E C LABELING L SYSTEM INTRODUCTION EDITING A LABEL LABEL PRINTING USING THE FILE MEMORY USING P-TOUCH SOFTWARE

Enter/Exit Programming Mode

The use of binary codes to represent characters

Electronic Business Course - SA 2008 Project : E-Ticketing

DPP-250 Thermal Printer User Manual

Logix5000 Controllers ASCII Strings

DPP-350. ESC/POS Thermal Printer. Programmer s Manual 1 DATEC

WTP-150 Receipt Printer User s Manual

1.1 Notice Introduction Codes Read Installation Pin Assignment Configuration - General

NOTICE: respective owner. Note: Specification is subject to changes without. notice.

Revision History. Advanced Handheld CCD/Laser Scanner

Programming Menu V3.9

ND48-RS ASCII A2.04 Communication Protocol


Windows Driver Manual SRP-330 Thermal printer Rev. 1.02

Scanner Configuration Manager Manual. for PC type computers

Model: LD1000 Series. USB Interface Customer Displays. 2 by 20 character display USER MANUAL. Rev 1.0

THE SERIALS DOTMATRIX DISPLAYS WITH RS-232

Register your product and get support at DPM8500. Barcode scanner configuration guide

Appendix C: Keyboard Scan Codes

Operating Systems and Computer Networks / Datenverarbeitung 2 / Data Processing 2

Transcription:

The ascii font package A. Syropoulos and R.W.D. Nickalls 30 May, 2006 Abstract The ascii package is a L A TEX 2ε implementation of the earlier L A TEX 2.09 version 1, and provides glyph and font access commands which allow the ASCII font to be easily typeset. The ASCII font is encoded according to the IBM PC Code Page 437 C0 Graphics. 0 1 2 3 4 5 6 7 00x 0x 01x 02x 1x 03x 04x! " # $ % & 2x 05x ( ) * +, -. / 06x 0 1 2 3 4 5 6 7 3x 07x 8 9 : ; < = >? 10x @ A B C D E F G 4x 11x H I J K L M N O 12x P Q R S T U V W 5x 13x X Y Z [ \ ] ˆ 14x a b c d e f g 6x 15x h i j k l m n o 16x p q r s t u v w 7x 17x x y z { } ~ 8 9 A B C D E F Table 1: The ascii font. Xanthi, Greece, email:asyropoulos@yahoo.com Department of Anaesthesia, City Hospital Campus, Nottingham University Hospitals, Nottingham, UK; email: dicknickalls@compuserve.com 1 Ramasubramanian R, Nickalls RWD and Reed, M (1994). Since this article is not currently available in the TUGboat archive on CTAN, we include it in this package for completeness. 1

1 Introduction This package makes available the graphical representation of the ASCII characters as defined in the IBM PC Code Page 437 C0 Graphics. Since it is sometimes necessary to be able to typeset the glyphs representing the ASCII control characters (typically in programming or interface documents), we have created a new font that contains all the necessary glyphs. Table?? shows the the graphical representation of the various ASCII control characters. Notice that these graphical representations are now part of the Unicode standard as individual characters, which, however, do not represent the actual control characters. In other words, the visual representations of the the control characters are now Unicode characters. In addition, we have included the NO BREAK SPACE character, since the accompanying font includes the standard ISO8859-7 characters. This package is a L A TEX 2ε update on the original 1994 L A TEX 2.09 version. Since the original TUGboat article (Ramasubramanian, Nickalls and Reed, 1994) is not currently available in the journal s archive on CTAN, we include it in this package for completeness (see asciisty1994.tex). In the original ascii package the character ASCII 124 (glyph, \asciivert) was incorrectly represented as the glyph (\splitvert). We correct this error in the present package, but for the purposes of backward compatibility we have continued to make the \splitvert command available for. 2 Installation The ascii package contains the following files: ascii.dtx ascii.ins ASCII.afm ASCII.tfm ASCII.pfb ascii.map ascii.sty README ascii2006.tex ascii2006.pdf ascii2006.ps asciisty1994.tex asciisty1994.pdf asciisty1994.ps This file The original 1994 TUGboat article on ASCII.sty Installation involves (a) placing the files into the appropriate directories, (b) adding an additional map-file command to some configuration files (e.g. for dvips and pdftex), (c) updating the TEX file database. These are now described in turn. Note that since the internal fontname is ASCII, it is important to maintain the uppercase name for the three font files (.afm,.tfm,.pfb). Placing the files The various files should be placed where your TEX system will be able to find them either in the main directory tree, or in the user s local directory tree. For example, Linux systems which use the standard TEX Directory Structure (TDS) typically locate the main.../texmf/ directory tree at /usr/share/ texmf/..., with the corresponding local tree being typically located at /usr/local/share/texmf/... ascii.sty.../texmf/tex/latex/ascii/ ASCII.afm.../texmf/fonts/afm/public/ascii/ 2

ASCII.tfm.../texmf/fonts/tfm/public/ascii/ ASCII.pfb.../texmf/fonts/type1/public/ascii/ ascii.map.../texmf/fonts/dvips/ascii/ *.tex, *.dvi, *.pdf, *.ps.../texmf/doc/ascii/ Update dvips configuration file (config.ps) We let dvips know the location of the ascii.map file by including the following command p +ascii.map in the appropriate place in the dvips configuration file (config.ps) which is typically located at.../texmf/dvips/config/config.ps Update pdftex configuration file (pdftex.cfg) We let pdftex know the location of the ascii.map file by including the following map command map +ascii.map in the appropriate place in the pdftex configuration file (config.ps) which is typically located at.../texmf/pdftex/config/pdftex.cfg Update TEX file database Finally, once all the package files are correctly located and the configuration files updated, we need to update the TEX file database. On a Linux tetex system this is done by running the texhash command (as root) as follows: # texhash Now, the ascii package can be used in a L A TEX document by using the following command in the preamble. \usepackage{ascii} 3 The ascii font Control codes The commands for accessing the control characters are given in Table??. For example, a \large double music note (\SO) is typeset using the command \large\so. Other symbols The standard access commands for the remaining glyphs of the ascii font (see Table??) do not give the expected results, and so we have had to define a number of commands to provide access to the more useful characters these are shown in Table??. Notice that all these glyph access commands have been implemented using the xspace package and therefore one does need to take any special precaution when using them. The command \textascii is a font switching command and its argument is typeset using the ASCII font. For example, the glyph for the synchronous idle control code (SYN, see Table??) which is most easily typeset using the intuitive command \large\syn, can also be typeset using this character s ascii font hex code 16h as in the command \large\textascii{\char"16} i.e.. 3

Command Character \asciispace \asciiquotedbl " \asciihash # \asciidollar $ \asciipercent % \asciiampersand & \asciiquoteacute \asciibackslash \ \asciicircum ^ \asciiunderscore _ \asciiquotegrave \asciilbrace { \asciivert \asciirbrace } \asciitilde ~ \splitvert Table 2: 4

ASCII control codes Dec Code Hex Name Glyph ascii.sty Unicode Unicode name 0 NUL 00h @ \NUL 2400h NUL 1 SOH 01h A Start of heading \SOH 263Ah White smiling face 2 STX 02h B Start of text \STX 263Bh Black smiling face 3 ETX 03h C End of text \ETX 2665h Black heart suit 4 EOT 04h D End of transmission \EOT 2666h Black diamond suit 5 ENQ 05h E Enquiry \ENQ 2663h Black club suit 6 ACK 06h F Acknowledge \ACK 2660h Black space suit 7 BEL 07h G Bell \BEL 2022h Bullet 8 BS 08h H Back space \BS 25D8h Inverse bullet 9 HT 09h I Horizontal tab \HT 25EFh Large circle 10 LF 0Ah J Linefeed \LF 25D9h Inverse white circle 11 VT 0Bh K Vertical tab \VT 2642h Male sign 12 FF 0Ch L Formfeed \FF 2640h Female sign 13 CR 0Dh M Carriage return \CR 266Ah Eighth note 14 SO 0Eh N Shift out \SO 266Bh Beamed 16th notes 15 SI 0Fh O Shift in \SI 263Ch White sun with rays 16 DLE 10h P Data link escape \DLE 25BAh Black right-pointing pointer 17 DC1 11h Q Device control 1 (XON) \DCa 25C4h Black left-pointing pointer 18 DC2 12h R Device control 2 \DCb 2195h Up down arrow 19 DC3 13h S Device control 3 (XOFF) \DCc 203Ch Double exclamation mark 20 DC4 14h T Device control 4 \DCd 00B6h Pilcrow sign 21 NAK 15h U Negative acknowledge \NAK 00A7h Section sign 22 SYN 16h V Synchronous idle \SYN 25ACh Black rectangle 23 ETB 17h W End transmission block \ETB 21A8h Up down arrow with base 24 CAN 18h X Cancel \CAN 2191h Upwards arrow 25 EM 19h Y End of medium \EM 2193h Downwards arrow 26 SUB 1Ah Z Substitute ( EOF) \SUB 2192h Rightwards arrow 27 ESC 1Bh [ Escape \ESC 2190h Leftwards arrow 28 FS 1Ch \ File separator \FS 2319h Turned not sign 29 GS 1Dh ] Group separator \GS 2194h Left right arrow 30 RS 1Eh Record separator \RS 25B2h Black up-pointing triangle 31 US 1Fh Unit separator \US 25BCh Black down-pointing triangle 127 DEL 7Fh Delete \DEL 2302h A0h \NBSP 00A0h NO BREAK SPACE Table 3: ascii table: the control codes. 5

4 History The character code 7-bit American Standard Code for Information Interchange (ASCII) is at the very heart of computing technology, and consists of two main components, namely (a) the control codes (ascii 0 31, 127), and (b) all the rest (ascii 32 126). ASCII originally developed from a 7-bit teleprinter code used by Bell Data Services, initially becoming an ASA standard in 1963. This was soon revised to include lowercase characters, among others, (ANSI 1967). The latest revision is known as ANSI-X3.4-1986. A useful reference is the ASCII entry in the online Wikipedia (http://en.wikipedia. org/wiki/ascii). The ascii font represents the first 127 characters of the original character set of the IBM PC (August 1981) known as Code page 437, which can be seen under this entry in Wikipedia. Apparently, the glyphs were chosen to be the same as those used by the widely used word-processors made by Wang Laboratories (http://en.wikipedia.org/ wiki/code_page_437). Control codes The 33 control characters (ascii 0 31 plus del) are classified into six functional categories as follows. For a detailed analysis and description of the use of each control code, see Appendix I in Ramasubramanian and Nickalls (1995). Transmission control characters (soh, stx, etx, eot, enq, ack, dle, nak, syn, etb) Format effectors (bs, ht, lf, vt, ff, cr) Code extension control characters (so, si, esc) Device control characters (cd1, dc2, dc3, dc4) Informations separators (fs, gs, rs, us) Other control characters (nul, bel, can, em, sub, del) References Ramasubramanian R., Nickalls RWD & Reed MA (1994). ascii.sty A new styleoption and encoded font with IBM graphics control characters for use with TEX & L A TEX. TUGboat; 15 (2), 98 103. Ramasubramanian R and Nickalls RWD (1995). Interfacing the IBM PC to medical equipment; the art of serial communication. (Cambridge University Press). 6