home *** CD-ROM | disk | FTP | other *** search
- 10 ' Copyright (C) James H. Bradley, 1987. Release 1.0.
- 20 ' This shareware product may be copied only as set out in the associated
- 30 ' documentation, which must accompany unchanged all copies of this and
- 40 ' associated products.
- 50 ' Contact James H. Bradley, 106 Portland Road, Atlantic Highlands,
- 60 ' New Jersey 07716, U.S.A. The registration fee is $30 U.S.
- 70 '
- 80 OPEN "math12" FOR OUTPUT AS #1
- 90 OPEN "data12" FOR INPUT AS #2
- 100 INPUT #2, FLAG%,S$ 'Read and discard the comments in the data file
- 110 LINE INPUT #2, S$ : S$ = ""
- 120 PRINT #1, CHR$(27);"M"; 'Select 12 cpi
- 130 PRINT #1, CHR$(27);"x";CHR$(1); 'Select letter quality mode
- 140 PRINT #1, CHR$(28);"I";CHR$(1); 'Select IBM character set with Greek, etc.
- 150 PRINT #1, CHR$(27);":";CHR$(0);CHR$(0);CHR$(0) 'Copy IBM character set
- 160 IF FLAG% =< 0 THEN 310 ' Skip all printing
- 170 PRINT #1, " MATH12 Release 1.0. Copyright (C) James H. Bradley 1987"
- 180 PRINT #1, " Guide for typists and proof-readers."
- 190 PRINT #1, " "
- 200 PRINT #1, " The following characters are available in the IBM set"
- 210 PRINT #1," ¬ = NOT Γ = Cap GAMMA Σ = Cap SIGMA Φ = Cap PHI"
- 220 PRINT #1," ∩ = EXCLUSION Θ = Cap THETA Ω = Cap OMEGA"
- 230 PRINT #1," « = ? α = ALPHA ß = BETA δ = DELTA"
- 240 PRINT #1," » = ? ε = EPSILON ⁿ = ETA µ = MU"
- 250 PRINT #1," │ = LONG VERT. BAR π = PI σ = SIGMA τ = TAU"
- 260 PRINT #1," ║ = LONG DOUBLE BAR φ = PHI"
- 270 PRINT #1," ┴ = ORTHOGONAL ≡ = IDENTICAL ÷ = DIVISION ° = DEGREE"
- 280 PRINT #1," ± = PLUS OR MINUS √ = ROOT ■ = TERMINATOR ∙ · = TWO DOT SIZES"
- 290 PRINT #1," ≥ = GREATER OR EQUAL ≤ = LESS OR EQUAL ≈ = APPROX. EQUAL"
- 300 PRINT #1, " "
- 310 K = 1 'Line counter for 2-column output if selected
- 320 FOR J = 1 TO 100
- 330 IF EOF(2) THEN 540
- 340 PRINT #1, CHR$(27);"&";CHR$(0); 'One or more user-defined characters follow
- 350 INPUT #2,L$
- 360 L% = ASC(L$)
- 370 S$ = S$ + CHR$(L%)
- 380 PRINT #1, CHR$(L%);CHR$(L%); 'Give the local range of characters to be replaced
- 390 PRINT #1, CHR$(3);CHR$(24);CHR$(3); '3 blanks left, 24 cols. data, 3 blanks
- 400 PRINT L$
- 410 FOR I = 1 TO 24*3 'Range must agree with 12 cpi letter quality modes and
- 420 ' the above 3-24-3 definition
- 430 INPUT #2, A
- 440 PRINT #1, CHR$(A);
- 450 NEXT I
- 460 IF FLAG% =< 0 THEN 530
- 470 PRINT #1,CHR$(27);"%";CHR$(1);" ";CHR$(L%);CHR$(27);"%";CHR$(0);" = ";
- 480 IF K = 2 THEN 510
- 490 K = 2: PRINT #1, USING "\ \";L$;
- 500 GOTO 530
- 510 K =1
- 520 PRINT #1, L$
- 530 NEXT J
- 540 IF FLAG% =< 0 THEN 590
- 550 PRINT #1, CHR$(27);"%";CHR$(0) 'Select built-in IBM character set
- 560 PRINT #1, " ";S$
- 570 PRINT #1, CHR$(27);"%";CHR$(1);" ";S$ 'Select user character set
- 580 PRINT #1, CHR$(27);"%";CHR$(0) 'Select built-in IBM character set
- 590 SYSTEM
- 600 END
-