Star Micronics Delta user manual Proportkmal Characters, Download Character dejfinition commands

Page 100

88

Delta User’s Manual

-

 

 

 

 

Table

7-l

 

 

-

Download

character dejfinition commands

 

Function

 

Control

code

 

-

Define download character

(ESC)

‘I*”

CHR$(l) nl

n2 ml.. . ml1

 

Copy ROM to download

RAM

(ESC) ‘I*”

CHR$(O)

 

-

 

 

 

 

 

 

Proportkmal

Characters

 

 

 

 

 

 

 

 

 

 

-

 

 

 

 

 

 

 

 

 

 

 

Up

until now,

all the

characters

that

your Delta

has

printed

 

-

have been

of a fixed

width-either

 

10,

12, or 17 (or 5, 6 or 8.5 in

 

 

enlarged

mode)

characters

per

inch.

Whichever

pitch

you select,

--

-

all the characters are the same width. You’ll notice though, that in

 

 

typeset

books,

such

as this one,

each

character

has a

slightly

 

_

different width. For instance, the “i” is quite narrow, and the “W”

 

 

is very wide. This is more pleasing to the eye and easier to read.

 

 

So, if you’re going to go to the trouble of designing your own

 

 

download characters for Delta, you might as well make them

 

 

pleasing

to the

eye! Proportional

download

characters

allow

you

 

-

to do just that. As you’ll remember from our initial discussion of

 

 

download

character

 

definition,

part

of the

attribute byte is for pro-

 

-.

portional width data. We skipped over that, with the promise of

 

 

describing

it later. Well now is the

time!

 

 

 

 

 

 

 

-

Defining

proportional

 

characters

 

 

 

 

 

 

 

 

 

 

 

-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Except for the actual width, defining characters for propor-

 

 

tional printing

is

exactly

the

same

as

defining

normal

width

 

_

download characters. Characters can range from 4 to 11 dots

 

 

wide. This means that characters can be as narrow as one-third

 

 

the normal

width. The examples

in Figure

7-14 show characters

of

-

-

different widths. These characters are defined in the program that

 

 

follows.

-

 

10 DATA 77,11,1,126,1,2,4,8,4,2,1,126,1

20DATA 105,4,64,61,64,0,0,0,0,0,0,0,0

30DATA 112,23,127,0,17,0,17,14,0,0,0,0,0

40DATA 115,6,8,84,0,84,32,0,0,0,0,0,0

50DATA -1

60READ CHR

70IF CHR ( 0 THEN 150

80READ CODE

90LPRINT CHR$(27) Ir*"CHR$(l) CHR$(CHR)CHR$(CODE);

Image 100
Contents Delta User’s Manual @Copyright 1983 Star Micronics, Inc Special Message to the New Owner Delta User’s Manual Table of Contents Formatting Your Output Special Features Delta PrinterCreating Your Own Characters Getting It All Together Maintenance Appendix E Osborne, Kaypro and CP/M Computers Appendix D TRS-60 ComputersAppendix F Atari 400/800 Computers Appendix DIP Switch Settings Appendix Character Style ChartsAppendix Commodore VIC-20 Computers AppendixConsumer Response 309 DIP Switch Quick Reference Warranty Inside Back Cover Command Quick ReferenceDelta User’s Manual Serial busy protocols XONlXOFF Protocol ACK protocol IndexTables Xii Delta User’s Manual Closer Look Paper separator and paper guide used with roll paper Roll paper holder and holder shaft used only with rollPage Parallel interface connector the place where you hook Paper Selection and LoadingLoading single sheets Delta User’s Manual Loading roll paper Delta User’s Manual Closer Look Loading sprocket-feed paperOpen the tractor covers to expose the sprocket teeth Bottom feeding Delta-15 Figure I-10.Delta ready to run with sprocket-feed paperDelta User’s Manual Ribbon Installation Self-Test Closer Look Delta User’s Manual Getting Started With Delta Using Commercial Sojtware Getting Started With Delta First, some terminologyAscii Using Delta with SuperCalc Using Delta with word processorsPage Using this book without learning Basic Getting Started With DeltaOPEN4,4 CMD4 List PRINT#4 CLOSE4 ListEstablishing communications NEW Lprint Testing RUN NEWNEW LPRINTCHR$7 RUN CHR$ functionNEW LPRINTCHR$27CHR$52 2$3LPRINT Testing RUN Escape CodeSome problem codes ESC$=CHR$27 l@ LPRINTESC$Delta User’s Manual Printing Text With Delta ChapterPrint pitch Commands @ Lprint this is Elite Pitch PrintingLprint Condensedis the Narrowestpitch Lprint NOW WE are Back to Pica Pitch PrintingLPRINTCHR$27W CHR$@NOW Were Back to Normal Expanded printI s H153Print Commands LPRINTCHR$14EXPANDEDELITE PitchLprint NOW WE are Back to Unexpandedpica Printing Making Delta print darkerPrint EmDhasis a Commands Lprint this is DOUBLE-STRIKEPRINTINGItalic Commands Italic printingUnderJining Superscripts and subscriptsNEW Lprint Thisline Uses Superscript Subscript commandsMixing modes Build Instructionset LPRINTRESET.ALL$ Lprintelites Elite LPRINTPICA$ Pica LPRINTRESET.ALL$ ReturnREGULAR.HEADING$= STRING$27,*+ Regular ReturnItalics = False LPRINTROMAN$ Repeatwith ItalicsIf Pica = False then LPRINTFOUR.DOT$ GOTO3590 If ENLARGED= True then LprintHere is the chart it produces Control Code FunctionPage Delta User’s Manual Line Spacing and Forms Control Changing Line Spacing This is what you will get Line spacing Commands Run the program again. Now the results will look like thisNEW Lprint Linenumber Moving down the page without a carriage returnForms Controls Form feedForm length commands Changing the Page LengthTop and bottom margin commands Lprint PAY to the OrderLineSpacingandFormsControl51 Summary Control codeESC Delta User’s Manual Formatting Your Output NEW Lprint ONECHR$9TWOCHR$9THREE CHR$9 Four One-shot tab command Left and right margin commands5B END 13@ Lprint ReturnLPRINTCHR$27P CHR$l@ CHR$Z@CHR$@ One-shot vertical tab command Control Code FunctionLChapter Now hear thisBell commands Initializing DeltaSome Miscellaneous commands Putting Delta to sleepPrinting to the bottom of the sheet Unidirectional printingNext Lprint LprintPrinting Direction NEW Lprint Backspacedoes not Lprint I===WORK Lprint Deletedoes notLprint Work Backspace and deleteBlock graphics characters and special symbols Eighth Bit controls3pl Lprint I II=11CHR$ICHR$9 4pI Next I Lprint Next J International character sets International Character set commandsMacro control code Macro instruction Commands Startdefinition Macro Lprint CHR$18 PicaOFF Regularprint END MacroFunction Bell Disable bell Enable bell Reset Off-lineOn-line Control codeDelta User’s Manual Creating Your Own Characters Dot Matrix Printing 000 0 eeeS&fee Defining Your Own Characters Rule I Download characters are seven dots highRule 2 Dots cannot overlap 8WRONG Add up each column of dotsCreating YourOwn Characters Download character definition command Assigning a value to your characterCharacter designs for the four card suits Next M Figure Y-10. The attribute byte n2 for our heart characterPrinting Download Characters LPRINTCHR$27CHR$36CHR$@ DEFINTA-Z Read X LPRINTCHR$X Next JNext Lprint Return DECKCARD=X Next Card ReturnLPRINTSUIT$SUIT Download Character dejfinition commands Proportkmal Characters12@ Lprint CHR$BITS 138 Next Only Difference Is the way They Are Accessed Creating Your Own Characters Lprint DEF.DOWN.CHAR$ NUMERAL.BOT$NUM= CHR$ASCII+ 2 + CHR$ASCII+ Mixing Print Modes with Download Characters Utility Program Gosub 950RETURN Gosub 660 Return REM **** Display Menu for Edit Mode Summary