home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_05 / issue_08 < prev    next >
Text File  |  1995-02-16  |  14KB  |  334 lines

  1. Hints and Tips
  2. 5.8
  3. Å   A5000 filing system problems Ö There have been more comments about
  4. problems with losing files on the A5000. We suggested last month that
  5. you take Acornæs advice and configure the ADFSbuffers to zero. In the
  6. light of further experience, we would suggest it even more strongly.
  7. This problem occurred with Impression but we have had reports that it
  8. also happens with other software. You have been warned. Ed.
  9. 5.8
  10. David Pilling adds... In the last Archive, you had a piece from someone
  11. saying that it is necessary to *configure ADFSBuffers 0 to make Acorn
  12. DTP and Impression work properly. The official line according to Beebug,
  13. is that unless A5000æs are configured like this, they will corrupt their
  14. hard discs sooner or later. There are well documented cases of this
  15. occurring. In addition, many programs, ArcFS and the Beebug hard disc
  16. backup for example, wonæt work unless ADFSbuffers are set to zero.
  17. 5.8
  18. It is also common advice to load the SerialUtils module before attempt
  19. ing to use comms programs. The naive point of view is that SerialUtils
  20. does something clever that allows buffers to work. That is not so,
  21. SerialUtils actually prevents buffers from doing anything. It is
  22. therefore much more efficient to stop your comms program from loading
  23. any buffer and not bother with SerialUtils. SerialUtils will apparently
  24. also prevent things like printer buffers from working.
  25. 5.8
  26. New versions of Hearsay cope with all this automatically and there is a
  27. version that uses the buffer manager built into RISC-OS 3. However, we
  28. are still having discussions with Acorn over whether this works properly
  29. in RISC-OS 3 as fitted to the A5000.á David Pilling, Blackpool.
  30. 5.8
  31. Å   A5000 second floppy drive Ö In Archive 5.6 p12, it said that if you
  32. were putting an external 5╝ö drive onto an A5000 it should be connected
  33. into the middle socket of the three. That is not correct. It should go
  34. into the one farthest East. The internal drive goes in the middle one.
  35. The other point to note is that it said the external drive can be set to
  36. ID zero or one. That it true but it should perhaps should have been
  37. spelt out more clearly that it should NOT be set to either two or three.
  38. If it is, it will not work properly. Ed.
  39. 5.8
  40. Å   Adjust clicking (RISC-OS 3) Ö Most people will, by now, have cottoned
  41. on to the idea that clicking open a directory with <adjust> closes the
  42. parent directory viewer and that clicking the close button with <adjust>
  43. opens up the parent. One extension of this on RISC-OS 3 is that clicking
  44. the close button with <adjust> while holding down <shift> doesnæt
  45. actually close the window but does open up the parent directory.
  46. 5.8
  47. Å   Directory date stamps Ö When copying a directory and its contents, the
  48. destination directory is created with the current date stamp, as opposed
  49. to being created and then stamped with the date of the source object.
  50. (Looking through the PRMáI havenæt been able to find a way of stamping a
  51. file to a date other than that held in the real time clock.)
  52. 5.8
  53. In the case of application directories, the application directoryæs date
  54. stamp appears to be copied through, but on closer inspection this is not
  55. so. The application directory is created with the current date stamp (as
  56. for normal directories) however, the date which the filer presents the
  57. user (for the date of the application directory) is actually the date
  58. stamp of the !RunImage file.
  59. 5.8
  60. RISC-OS 3 automatically detects an attempt to move from one directory to
  61. another on the same media, and performs a Rename operation instead of a
  62. copy, whereby the date is retained. (Possibly, RISC-OS 3 also has a
  63. facility for stamping a filer object with a specified date, although I
  64. will not know about this until the RISC-OS PRMáis released!)á D
  65. Lenthall, London.
  66. 5.8
  67. Å   Exiting the desktop (RISC-OS 3) Ö With RISC-OSá2, you could set up an
  68. obey that would exit the desktop by making the last line:
  69. 5.8
  70. FX 138,0,252
  71. 5.8
  72. and as long as no text was output by the obey file, the desktop would be
  73. exited. The same can be done with RISC-OSá3 by placing the above line in
  74. the obey file twice. It also works with the keys, press <shiftÖctrlÖF12>
  75. twice and the desktop is exited. Also when <shiftÖctrlÖF12> has been
  76. pressed F12 (*Commands) and <ctrlÖF12> (Task Window) still work!
  77. Warning: If you do use this then the ADFS will be reset, losing the
  78. current directory.á P Bedford, Peterborough.
  79. 5.8
  80. Å   Extra validation flags Ö With RISC-OS 3, a number of new validation
  81. flags are available for when you are designing window templates. So far
  82. I have found the following:
  83. 5.8
  84. Border Flags Ö these require the border flag to be set on and give an
  85. icon a 3D border similar to Impressionæs, they all begin with a B (or b)
  86. and are followed by a number to give the border type:
  87. 5.8
  88. 0   Single raised border.
  89. 5.8
  90. 1   Double border for grouping.
  91. 5.8
  92. 2   Triple border for default action icons.
  93. 5.8
  94. 3   Triple border for writable icons.
  95. 5.8
  96. 4   Single recessed border.
  97. 5.8
  98. 5   Standard single line border.
  99. 5.8
  100. 6   Triple recessed border similar to type 3.
  101. 5.8
  102. Border type 0 and 3 can be followed by a comma and then a number between
  103. 0 and 15 to define the colour to slab to.
  104. 5.8
  105. Pointer definition Ö you can define an icon so that the pointer changes
  106. shape when over the icon. This is done by placing a P (or p) in the
  107. validation string followed by the name of the sprite containing the
  108. pointer shape. Try sprite ptr_double.
  109. 5.8
  110. Many others may be available with other parameters for the above options
  111. but until the RISC-OSá3 Programmersæ Reference Manual is available we
  112. wonæt really know. Most of the above is available in RISC-OSá2 by using
  113. the Interface module by Simon Huntington.á P Bedford, Peterborough.
  114. 5.8
  115. Å   Iconised windows with Impression (RISC-OSá3) Ö If you want to
  116. distinguish Impression documents that have had their windows iconised,
  117. generate an icon called Éic_impressioæ and place it in the !Sprites file
  118. in the !Impress directory. Mine is the Impression quill & pot in a
  119. window (ic_?).á P Bedford, Peterborough.
  120. 5.8
  121. Å   Menon hotkey Ö If you use Menonæs hotkey facility, a problem can arise
  122. in that it may not work if you have a window open that contains the
  123. caret (e.g. Impression). However, it will work if you hold the alt key
  124. down at the same time as the hotkey i.e. <alt-ctrl-H>. P Bedford,
  125. Peterborough.
  126. 5.8
  127. Å   Oak drives with Acorn SCSI card Ö If you are using an Oak drive with
  128. an Acorn SCSI card (e.g. if you own an A540), you may find that you are
  129. unable to dismount the drive and that you get a ÉBad parametersæ error.
  130. 5.8
  131. Hard drives that are formatted using an Oak SCSI card include additional
  132. information in the boot block which the Acorn card objects to. To solve
  133. these problems (especially annoying with removable hard drives!), you
  134. will have to format the disc with Acornæs SCSIDM.
  135. 5.8
  136. Unfortunately, it is not that simple. When the desktop is started up,
  137. the Acorn card looks at all of the drives that are available. Once it
  138. sees an Éincorrectlyæ formatted Oak disc, it will not allow SCSIDM to
  139. access the drive. This means that you will have to start up outside of
  140. the desktop in order to format the disc. This can be done by typing
  141. *Configure Language 0 <return> from the command line and then pressing
  142. <ctrl-break>.
  143. 5.8
  144. Once this has been done, you can format your drive in the usual way Ö
  145. see pages 11-12 of the SCSI Expansion Card User Guide.
  146. 5.8
  147. To start up in the desktop again, simply type *Configure Language 4
  148. <return> from the command line and then press <ctrl-break>.á Adrian
  149. Look, N.C.S.
  150. 5.8
  151. Å   PC file transfer revisited Ö When transferring text files from PC to
  152. the Archimedes (or vice versa), it is necessary to convert the carriage
  153. returns (CRs) to line feeds (LFs) and vice versa. This can be done using
  154. the search and replace facility of Edit, but it is much quicker just to
  155. use the in-built transfer ÉCR<->LFæ which is available from the ÉEditæ
  156. submenu or to press <F8>.á GáRiley, Cheshire.
  157. 5.8
  158. Å   PC screen fonts revisited Ö In Archive 4.12 p10 there was a hint that
  159. explained how to change the screen font of the PC Emulator to any BBC
  160. screen font. Since then, the program has been updated to include EGA+
  161. and ECD definitions.
  162. 5.8
  163. The EGAROM looks to contain two sets of character definitions: EGA+ 16╫8
  164. cells and ECD 14╫8 cells, as opposed to the ROM file which (amongst
  165. other things) contains the 8╫8 cells used in the other modes. The
  166. following program will convert these character sets for EGA+ and ECD
  167. modes in a similar manner to my previous program:
  168. 5.8
  169. REM >EGAFONT
  170. 5.8
  171. REM Merge BBC FONT file into !PC EGAROM file
  172. 5.8
  173. REM NB. *** COPY ORIGINAL EGAROM FILE BEFORE RUNNING THIS ***
  174. 5.8
  175. :
  176. 5.8
  177. ON ERROR REPORT:PRINTö at line ò;ERL :CLOSE#0:END
  178. 5.8
  179. DIM rom% &2000,C%(7)
  180. 5.8
  181. R$=ö:4.!PCEM.EGAROMò
  182. 5.8
  183. OSCLI(ö*LOAD ò+R$+ö ò+STR$~rom%)
  184. 5.8
  185. :
  186. 5.8
  187. F%=OPENIN(ö:4.BBCFONTS.NEWFONTò):REM File of type &FF7
  188. 5.8
  189. :
  190. 5.8
  191. REPEAT
  192. 5.8
  193. A%=BGET#F%
  194. 5.8
  195. IFA%<>23THENPRINTöThis is not a BBC font file!ò:END
  196. 5.8
  197. O%=BGET#F%:PRINTöChar &ò;~O%;ö ò;: VDU23,255
  198. 5.8
  199. REM  EGA+ chars 16x8 Ö double horiz. thickness
  200. 5.8
  201. P%=O%*16
  202. 5.8
  203. FORI%=0TO7
  204. 5.8
  205. C%(I%)=BGET#F%:C%=C%(I%):VDUC%
  206. 5.8
  207. REM Ö assemble 8x8 char array
  208. 5.8
  209. rom%?(P%+2*I%)=C%
  210. 5.8
  211. rom%?(P%+2*I%+1)=C%
  212. 5.8
  213. NEXT
  214. 5.8
  215. VDU255:PRINT
  216. 5.8
  217. REM  ECD chars 14x8 Ö blank first and last three rows
  218. 5.8
  219. P%=&1000+O%*14
  220. 5.8
  221. rom%?(P%+0)=0:rom%?(P%+1)=0
  222. 5.8
  223. rom%?(P%+2)=0
  224. 5.8
  225. FOR I%=0TO7:rom%?(P%+3+I%)=C%(I%): NEXT
  226. 5.8
  227. rom%?(P%+11)=0:rom%?(P%+12)=0
  228. 5.8
  229. rom%?(P%+13)=0
  230. 5.8
  231. UNTIL EOF#F%
  232. 5.8
  233. CLOSE#0
  234. 5.8
  235. :
  236. 5.8
  237. OSCLI(ö*SAVE ò+R$+ö ò+STR$~rom%+
  238. 5.8
  239. ö + 2000ò)
  240. 5.8
  241. END
  242. 5.8
  243. This program has been tested in both modes by squeezing every last byte
  244. out of my A3000 and through the use of the PD multisync Éemulatoræ Ö I
  245. could just about stand the flickering! The ECD characters are a little
  246. smaller due to the difficulty in mapping the default 8 onto 14 rows,
  247. however, it does result in greater line spacing and arguably improves
  248. readability.
  249. 5.8
  250. Finally, I suppose that if anyone needs to redefine the MDA1 outline
  251. font (has anyone found anything which uses the MDA mode?), they could
  252. use !FontEd or a similar application to change the font name of their
  253. preferred outline font to MDA1. The MDA0 font would appear to contain
  254. definitions for the Éadditionalæ IBM character set and, as such, is less
  255. likely to require redefinition.á PáBready, Glasgow.
  256. 5.8
  257. Å   Printer buffers Ö RISC-OS 3 provides a configurable printer buffer.
  258. Use the command:
  259. 5.8
  260. *Configure PrinterBufferSize <n>K
  261. 5.8
  262. to set the buffer size to <n> K in length. This does not seem to be used
  263. by the RISC-OSá3 printer drivers but is used outside the desktop
  264. environment. To check the buffer has been configured, perform a <ctrl-
  265. reset> after the configure command, go into Basic and type:
  266. 5.8
  267. PRINT ADVAL(-4)
  268. 5.8
  269. the result will be the size of your printer buffer.á PáBedford,
  270. Peterborough.
  271. 5.8
  272. Å   Translator tips Ö Translator can easily be used to convert a sprite
  273. from one screen mode to another. From the Translator menu, simply
  274. deselect the ÉPop upá>áAuto modeæ option, and then select the ÉProcess >
  275. Sprite output > Output mode > Currentæ. Select the desktop mode for the
  276. output sprite and drag the sprite to be converted onto the Translator
  277. icon. Finally, save the converted sprite from ÉMiscá>áSaveá>áFullæ
  278. option.
  279. 5.8
  280. When printing foreign graphics files on a monochrome printer, better
  281. results can be obtained by selecting the ÉBlack and whiteæ option from
  282. the Translator menu i.e. the sprite is converted into 256 grey scales.
  283. (I think this is because there is less distortion of the colours than
  284. when fitting the sprite to the 256 desktop colours available and then
  285. the printer driver using ColourTrans to convert them to monochrome
  286. information.) CáPaul, Manchester.
  287. 5.8
  288. Å   Waiter and MultiFS clash Ö You canæt run The Data Storeæs Waiter with
  289. the version of MultiFS that comes with the new PC Emulator. You must
  290. quit Waiter before running MultiFS.á JáThompson.
  291. 5.8
  292. Å   Window bug (RISC-OSá3) Ö There is a bug in the windows redraw routine.
  293. If you use !FormEd to define a window with a vertical scroll bar, no
  294. horizontal scroll bar and no size icon, then turn on the horizontal
  295. scroll bar, being careful not to cover where the size icon would be with
  296. the menu, you will see that no box is redrawn in the area where the size
  297. icon should be. If you drag other windows over this window the result is
  298. a mess in the area where the size icon should be. As this example shows,
  299. the result is not as expected.á P Bedford, Peterborough.
  300. 5.8
  301. Å   Window movement (RISC-OSá3) Ö If you use <adjust> in the scroll bar
  302. areas to provide reverse movement, you may find useful the facility for
  303. complete window scrolling. If you click adjust and hold on either slider
  304. bar, the pointer vanishes and if you move the mouse, the window is
  305. scrolled in the same direction. This only works if both scroll bars are
  306. on a window.á P Bedford, Peterborough.ááA
  307. 5.8
  308. 5.8
  309.  
  310.  
  311.  
  312. Image-setting
  313. 5.8
  314. Hints & Tips
  315. 5.8
  316. Å   Make sure you ask the image-setting bureau to produce films in a form
  317. that your printer can use. e.g. Can he use Éright reading positiveæ?
  318. 5.8
  319. Å   Only use high quality PostScript fonts such as the range from EFF ù
  320. mistakes can be expensive.
  321. 5.8
  322. Å   Ensure that the client Éacceptsæ a bromide Éproofæ before having the
  323. work printed.
  324. 5.8
  325. Å   Scanning Ö if you do your own scanning, rather than having it done via
  326. a bureau, use the lowest possible scanning resolution that is consistent
  327. with the screen resolution being used by the printer Ö i.e. a 150 l.p.i.
  328. screen (a typical value for high quality magazines) requires no more
  329. than 150 dots per inch scan, assuming a reproduction ratio of 1:1.ááA
  330. 5.8
  331. 5.
  332.  
  333.  
  334.