home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apple2 / 23830 < prev    next >
Encoding:
Text File  |  1992-11-13  |  2.2 KB  |  57 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!comp.vuw.ac.nz!actrix!David.Empson
  3. From: David.Empson@bbs.actrix.gen.nz
  4. Subject: Re: High bit character set question
  5. Organization: Actrix Information Exchange
  6. Date: Fri, 13 Nov 1992 07:42:12 GMT
  7. Message-ID: <1992Nov13.074212.26242@actrix.gen.nz>
  8. References: <BxItBK.49I@watserv1.uwaterloo.ca>
  9. Sender: David.Empson@actrix.gen.nz (David Empson)
  10. Lines: 45
  11.  
  12. In article <BxItBK.49I@watserv1.uwaterloo.ca> jroberts@centaur.UWaterloo.ca (J. P. Robertson) writes:
  13. > I'm wondering how I can access the nifty characters in the Symbol
  14. > font in AWGS 1.0, Teach, or anything else for that matter.
  15.  
  16. I believe most of the characters in the Symbol font are just the
  17. normal low-ASCII characters.  (e.g. 'A' generates one of the symbols).
  18. Others will appear as high-ASCII, which you can access using the
  19. option key (as mentioned in an earlier reply to your posting).
  20.  
  21. > I tried loading in a text file with low and high bit
  22. > alphabets.  (I wrote an AppleSoft program to create this file by 
  23. > writing asc codes to a TXT file.)  It didn't work; both
  24. > sets appear to be low bit.
  25.  
  26. Applesoft can only print characters with the high bit set.  If you use
  27. CHR$(x), Applesoft's internal PRINT code always sets the top bit
  28. before passing the character to the I/O routines.  This forces the
  29. character to appear in NORMAL text unless you've used the
  30. INVERSE/FLASH commands.
  31.  
  32. When you're writing to a text file, BASIC.SYSTEM forces the high bit
  33. off again, to comply with the standard for ProDOS text files (no
  34. character should have the high order bit set; this has now been
  35. extended for IIgs text files).
  36.  
  37. You can generate a text file containing all ASCII codes with the
  38. following code:
  39.  
  40. 5 LOMEM:16384
  41. 10 D$=CHR$(4)
  42. 20 FOR I=0 TO 255:POKE 8192+I,I:NEXT
  43. 30 PRINT D$;"CREATE TEXTFILE,TTXT"
  44. 40 PRINT D$;"BSAVE TEXTFILE,TTXT,A$2000,L256"
  45.  
  46. This probably isn't such a good idea - most of the control characters
  47. will do strange things.  However, _some_ of them do contain valid
  48. characters (Ctrl-R, S, T and U are usually check marks and Apple symbols).
  49.  
  50. Starting at character 32 (space) would be safest.
  51. -- 
  52. David Empson
  53.  
  54. Internet: David.Empson@bbs.actrix.gen.nz    EMPSON_D@kosmos.wcc.govt.nz
  55. Snail mail: P.O. Box 27-103, Wellington, New Zealand
  56.