home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1995 / ARCHIVE95.iso / discs / pipeline / abacus / p_line / Printing01 / ReadMe next >
Text File  |  1991-12-07  |  16KB  |  301 lines

  1. %OP%DP0
  2. %OP%IRY
  3. %OP%PL0
  4. %OP%HM0
  5. %OP%FM0
  6. %OP%BM0
  7. %OP%LM4
  8. %OP%FX
  9. %OP%FY
  10. %OP%FS
  11. %OP%PT1
  12. %OP%PDPipeLine
  13. %OP%WC834,2070,164,1620,0,0,0,0
  14. %OP%VS4.01 (22-Oct-91), Gerald Fitton, R4000 2915 6625 6368 
  15. %CO:A,72,72%
  16. %C%Printing
  17. %C%by Gerald L Fitton
  18. Keywords:
  19. Printing Characters Fitton
  20.  
  21. Introduction
  22. In this article I shall try to describe the relationship between what 
  23. you type at the keyboard, what you see on the screen and what gets 
  24. printed on the printer.  Before doing so I think I should say to those 
  25. used to such machines as the old BBC B with say Interword that the 
  26. PipeDream program (like many applications on many machines such as 
  27. those of the MS DOS range) does not contain its own character set nor 
  28. its own printer driver but PipeDream lets you, the user, install any 
  29. character set and any printer driver you want to (or can) use.  To many 
  30. people this division of responsibility for the use of the application 
  31. presents a problem that they did not have on their old machine with 
  32. their old software.  In particular it is usually a mistake to blame 
  33. PipeDream if your Printer Driver doesn't print out what you see on the 
  34. screen.  I hope this article will help you to understand how you can 
  35. benefit from the flexibility that this approach gives you when you come 
  36. to upgrade your software such as when you include user defined system 
  37. fonts or buy extra outline fonts or get a laser or DeskJet to replace 
  38. your 9 pin or daisy wheel printer.
  39.  
  40. Character Sets
  41. There are eight bits in an 8-bit byte.  These bits are rather like 
  42. eight switches that can be on or off.  The 256 different combinations 
  43. of these switches can be written as 00000000 to 11111111 in binary, or 
  44. &00 to &FF in hexadecimal or from 0 to 255 in the scale of ten 
  45. (denary).  Every character in a character set is given a unique code 
  46. number between 0 and 255.  There are 26 letters in the English 
  47. alphabet, or 52 if you count upper and lower case letters separately; 
  48. as an example capital 'A' is code 65.  There are ten digits from 0 to 
  49. 9.  If you add to these 62 characters all the punctuation marks such as 
  50. a full stop, and not forgetting the space (code 32) you will find that 
  51. there are 95 printable characters all together.  These 95 printable 
  52. characters are coded from 32 to 126 and can be entered directly from 
  53. the keyboard.  Code numbers from 0 to 31 inclusive are reserved for 
  54. special screen or printer effects such as moving the cursor left (code 
  55. 8) or right (code 9).  Code 10 moves the cursor down a line or causes a 
  56. line feed at the printer.  Code 13 causes the cursor to move to the 
  57. left of the current line.  Pressing <Return> causes both a code 13 and 
  58. a code 10 to be sent to the screen drivers so that the next character 
  59. to be printed appears at the left end of a new line.  Code 127 is the 
  60. <Delete> key.
  61.  
  62. In addition to these 128 characters there are another 128 characters 
  63. with code numbers from 128 to 255.  These are called 'top bit set' 
  64. characters (because the first binary bit of the 8 bits is set to a 
  65. '1').  The character produced by any of these top bit set characters 
  66. depends on the character set in use at the time.  The default character 
  67. set is Latin 1 but there are others such as Bfont and Greek of which 
  68. more later.  These top bit set 128 characters can be entered from the 
  69. keyboard by holding down the <Alt> key and typing in the code number on 
  70. the numeric pad or by using the !Chars application provided by Colton 
  71. Software.  For example, in Latin 1, you can get the character ╡ by 
  72. holding down <Alt> and typing in the number 181 on the numeric pad.  
  73. When you release the <Alt> key the character ╡ appears on screen.
  74.  
  75. As an alternative, you can double click on the !Chars application which 
  76. is provided by Colton Software with PipeDream.  When you do this the 
  77. current character set is displayed in the system font in a window 
  78. called Characters; you can change this character set with a command 
  79. such as *Alphabet Greek (press <F12> to initiate a * command).  If you 
  80. change the character set in this way then any top bit set characters 
  81. will be displayed in the new character set in the PipeDream window as 
  82. long as you are using the system font.  When you click on any character 
  83. in the Characters window then that character code will be entered into 
  84. the PipeDream window at the current position of the cursor and the same 
  85. character will be displayed in PipeDream as in the Characters window so 
  86. long as you are using the system font.
  87.  
  88. Translations
  89. On the HP and IBM range of printers the character set which has the 
  90. nearest correspondence to the Acorn Latin 1 is ECMA-94 Latin 1.  If 
  91. your printer has this character set resident then you will find that 
  92. the PipeDream printer driver, HPjet, selects this character set.  If 
  93. your printer does not contain this character set then it probably 
  94. defaults to a character set known as Roman 8.  Roman 8 requires 
  95. translations for the often used ú as well as characters less often used 
  96. such as ó, º, ⌐, «, ▒, ╡, ▀, ╫, ≈, ╝, ╜ and ╛ and foreign characters 
  97. such as ß, Φ, ∩, ≡, √, ╟, τ, ▌ and Ñ.
  98.  
  99. Fonts
  100. Acorn originally issued fonts called "Fancy Fonts" with the Archimedes.  
  101. These so called "Fancy Fonts" are bit mapped (as sprites) and are 
  102. generally more trouble than they are worth.  If you intend to use fonts 
  103. other than the system font on screen and the fonts resident in the 
  104. printer then you should upgrade to "Outline Fonts" such as those on our 
  105. DrawPlus disc rather than the bit mapped "Fancy Fonts" supplied 
  106. originally by Acorn.
  107.  
  108. The following paragraphs refer to Outline Fonts and not the original 
  109. bit mapped fonts originally supplied with the Archimedes.
  110.  
  111. If you choose to display in some other font (such as Acorn's outline 
  112. font Trinity.Medium) then the character codes are translated into 
  113. pictures on the screen according to the way in which the font is 
  114. defined.  All Acorn fonts (except Selwin) use the Latin 1 character set 
  115. so, whatever *Alphabet you have used (eg *Alphabet Greek), the display 
  116. will be in the Latin 1 character set.
  117.  
  118. I suggest that you use the system font (this file and nearly all other 
  119. files on this disc use the system font) with the PipeDream printer 
  120. drivers and only use the outline fonts with the RISC OS drivers.  The 
  121. default for PipeDream is that the system font is displayed on screen 
  122. but the RISC OS driver is selected.  If you intend to use the PipeDream 
  123. printer drivers only then you should set up your Print - Printer 
  124. configuration - Printer type as Parallel and select the name of your 
  125. printer driver (DotMatrix) in the printer driver dialogue box as 
  126. described in the next paragraph.
  127.  
  128. PipeDream Printer Drivers
  129. What happens when you Print from PipeDream depends on whether you are 
  130. using a PipeDream Printer Driver or a RISC OS Printer Driver.  Taking 
  131. the PipeDream Printer Driver first:
  132.  
  133. The printer driver is installed using <CTRLáPD> (Printer Driver) or 
  134. from the Print menu.  Select as the type of printer Parallel (or 
  135. Serial) but not the RISC OS driver.  In the next row select the name of 
  136. the file containing the PipeDream Printer Driver you wish to use.  
  137. Press <Return> and this printer driver will be loaded.  
  138.  
  139. We have quite a few donated by PipeLine readers which are on the
  140. July 1990 PipeLine disc but your choice from those supplied by Colton 
  141. Software are DotMatrix for the Epson fx80 and similar printers, HPJet 
  142. for Hewlett Packard and many IBM printers, DaisyWheel for the Juki and 
  143. BJ10 for the popular Canon Bubble jet.
  144.  
  145. When you use a PipeDream Printer Driver and send a file to the printer 
  146. it is the code numbers (such as 65 for an 'A') which are sent to the 
  147. printer; how they are printed depends on the character set which is 
  148. resident within the printer.  Many printers have the same English 
  149. characters for character codes 32 to 126 but they do not use the Latin 
  150. 1 character set for the top bit set characters.  Some printers support 
  151. the IBM character set which has some graphics characters.
  152.  
  153. On the Epson FX80 and many other dot matrix printers it is possible to 
  154. redefine the matrix of dots which are printed when a top bit set 
  155. character code is sent to the printer.
  156.  
  157. In the Printer directory of the July 1990 PipeLine disc I have included 
  158. a set of character definitions for an FX80 which print out the same 
  159. characters as the *Alphabet Greek character set.  The character 
  160. definitions are in the form of a BASIC program and all you need to do 
  161. to download the definitions to the printer is to click on the BASIC 
  162. program 'Greek' so that it runs once.  The BASIC program also executes 
  163. the command *Alphabet Greek so that the Characters window called up by 
  164. !Chars will display the Greek characters which will then be printed out 
  165. by the Epson FX80.  One word of warning.  Many printer drivers for the 
  166. Epson FX80 (including DotMatrix supplied by Colton Software) have a 
  167. Printer ON string (PON) which resets the printer and so clears all the 
  168. definitions you have downloaded.  I have included an FX80 driver on the 
  169. July 1990 PipeLine disc called FX80Pica which avoids this potential 
  170. problem.  Use it in conjunction with the Greek program if you want to 
  171. print out Greek characters on an FX80.
  172.  
  173. Many of you have asked how to increase the number of printer highlight 
  174. codes available to obtain, say, expanded printing or double height 
  175. characters (supported by the Star LC24-10).  Typically I have a letter 
  176. from a PipeLine reader who has defined a set of SPD(n) - SPD for Star 
  177. Printer Driver Commands "From Appendix B" - and types in SPD1 etc in 
  178. the first column of his printer driver.  This does not generate the 
  179. desired effect.  Probably the best method of achieving extra printer 
  180. effects is to type a 'top bit set' character into the text and then, in 
  181. the printer driver translations of the printer driver file, type the 
  182. same top bit set character in the first column (where our reader has 
  183. typed in SPD1 etc) and the long string that switches in or out the 
  184. printer effect as the translation.
  185.  
  186. The 'OFF at CR' option within the printer driver affects only the 
  187. printed output.  It does not generate the same effect on screen.  For 
  188. example, if you change the printer driver so that italics are not 
  189. turned off at <CR> and place one highlight at the beginning of the 
  190. first line of your document then you will find only the line containing 
  191. the highlight code is in italics on the screen but the printed output 
  192. will all be italics.  This is because PipeDream does not read the 'OFF 
  193. at CR' column of the printer driver file before displaying on the 
  194. screen.  For maximum compatibility between what is shown on screen and 
  195. what is printed I suggest that all highlights should be turned 'OFF at 
  196. CR'.
  197.  
  198. RISC OS Printer Drivers
  199. Having got the text onto the screen you then need a RISC OS Printer 
  200. Driver for your printer.  I have copies (for distribution to PipeLine 
  201. subscribers) of Acorn's latest (Version 2) RISC OS printer drivers. 
  202. Acorn have supplied some for 9 pin and 24 pin printers and one for the 
  203. HP LaserJet.  I use an Epson GQ-3500 in HP emulator mode but other 
  204. PipeLine readers have sent me letters printed out using the RISC OS HP 
  205. LaserJet driver with the much cheaper (but slower) DeskJet or with one 
  206. of the 'Bubble' printers.  Of course you can dump !Draw files to a 
  207. DeskJet at high resolution with the Acorn RISC OS HP LaserJet driver.
  208.  
  209. RISC OS printer drivers are those which, up to now, have been provided 
  210. by Acorn and you use the RISC OS drivers with outline fonts.  The old 
  211. Acorn anti-aliased fonts (sometimes called 'Fancy Fonts') were bit 
  212. mapped on screen and have now been replaced by a much superior method 
  213. called 'Outline Fonts' in which every letter is stored as a picture 
  214. which can be drawn with full resolution at any scale.  If you are going 
  215. to use the RISC OS drivers then I strongly recommend that you change 
  216. over as soon as possible to the new outline fonts such as those on our 
  217. DrawPlus disc.  If you are going to 'stock up' with outline fonts then 
  218. I suggest that you get a free catalogue (of well over a hundred fonts) 
  219. from the Electronic Font Foundry (EFF).  The Acorn fonts are all for 
  220. the Latin 1 character set; EFF can supply other character sets as well.
  221.  
  222. The address of EFF is:
  223.  
  224. The Electronic Font Foundry
  225. Bridge House
  226. 18 Brockenhurst Road
  227. Ascot
  228. SL5 9DL
  229.  
  230. The way that the RISC OS Printer Drivers work should not be confused 
  231. with a screen dump.  The characters that you see on screen are not bit 
  232. mapped but are drawn from a set of lines.  When you print these 
  233. characters they are redrawn (in memory) at the full resolution of the 
  234. printer and the bit map sent to the printer is at the resolution of the 
  235. printer and not at the resolution of the screen.  The picture of the 
  236. letter which you see on the screen and which gets sent by the RISC OS 
  237. Printer Driver to the printer are generated by the Acorn Font Manager 
  238. and not  by PipeDream.  PipeDream integrates beautifully with Acorn's 
  239. Outline Fonts and RISC OS Printer Drivers.
  240.  
  241. Summary
  242. System font character sets are an 8 by 8 matrix of pixels (like a small 
  243. sprite), outline fonts are drawn (like a small !Draw file).  All 
  244. characters are stored by PipeDream as a character code between 0 and 
  245. 255 not as a sprite and not as a drawn picture.  These character codes 
  246. can be sent to a PipeDream Printer Driver (and, if you want, can be 
  247. translated into other codes at the printer).  If you are using outline 
  248. fonts then you will see drawn pictures on screen.  It is these drawn 
  249. pictures which are sent to the RISC OS printer driver.
  250.  
  251.  
  252.  
  253. %C%RISC OS Printing
  254. %C%by Gerald L Fitton
  255.  
  256. Some of you have 'complained' that the printer driver !PrinterDM or 
  257. !PrinterLJ chops off some of your picture.  Although not strictly a 
  258. PipeDream problem (it happens with Impression and other DTP programs
  259. including Acorn's !Draw) the solution has a place on this disc because 
  260. of this use of PipeDream.
  261.  
  262. Often the problem can be cured by carefully setting up the page size of 
  263. the printer driver as follows:
  264.  
  265. Measure your paper size and, if you are not using a standard size such 
  266. as A4, change the paper size in the paper size sub menu.  You may have 
  267. to alter some dip switches inside your printer because, on some 
  268. printers, the software commands do not override the dip switch settings 
  269. for page length.  One PipeLine reader bought his printer from a UK 
  270. importer and, after getting unwanted form feeds at the end of every 
  271. printed page, found the dip switches were still set to the American 
  272. page length!
  273.  
  274. Install the printer driver on the icon bar and then click the mouse 
  275. menu (middle) button and run the pointer through select the Page size 
  276. sub menu.  Set the top and left margins to zero (0.00) - you can also 
  277. set the right and bottom margins to zero at the same time.  Now load 
  278. the file called Rectangle (on this disc) into !Draw.  Print this 
  279. picture (you can use low resolution for speed) and then measure (as 
  280. accurately as you can) the distance from the top of your paper to the 
  281. top of the printed picture.  Reselect the page size sub menu and make 
  282. this distance your top margin.  Measure the left margin and enter this 
  283. in the page size sub menu in the same way.
  284.  
  285. Print Rectangle again.  Measure the distance from the right hand edge 
  286. of what is printed to the right hand edge of your paper.  This is your 
  287. right margin.  The bottom margin is a little more tricky but you set it 
  288. the same way but increasing it a mm or two to give you a small reserve.  
  289. With some printers the paper stretches or slips as it goes through the 
  290. rollers so that the page length seen by the printer might not be the 
  291. same as you measure with a rule!  If you make the page length too long 
  292. you will get unwanted form feeds; if you make it too short then your 
  293. bottom margin will be a little more than the amount you measure from 
  294. the bottom of the paper.
  295.  
  296. Switch on the Misc - Paper limits - Show sub menu of !Draw and you will 
  297. find that the shaded area of the !Draw screen is exactly the bit which 
  298. is not printed.  If your left and right margin differ greatly you may 
  299. be able to move the printer feed mechanism to centre the paper in the 
  300. printer.
  301.