home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1995 / ARCHIVE95.iso / text / hints / volume_07 / issue_02 < prev    next >
Text File  |  1995-02-16  |  13KB  |  246 lines

  1. Hints and Tips
  2. 7.2
  3. Å    ArcDFS under RISC OS 3 Ö It has been reported on numerous occasions
  4. that ArcDFS doesnæt work under RISC OS 3 Ö not true! (Or at least only
  5. partly.) If a disc reports a failure, change the disc TITLE (using
  6. appropriate option) to öò, i.e. an empty string, and hey presto!!
  7. 7.2
  8. Why is that necessary? I have not yet had a chance to bury myself in the
  9. code to find out, Iæm afraid.
  10. 7.2
  11. Note: The only other option that doesnæt work is Free, but personally I
  12. donæt think thatæs much of a problem. Format and Verify both work OK.
  13. 7.2
  14. P.S. Make sure the Step timings are set to those values given in the
  15. original documentation, as they are reset when upgrading to RISC OS 3.á
  16. R.áGeorge, Cambridge.
  17. 7.2
  18. Å    Grey Scales Ö I frequently use Draw to produceádiagrams for inclusion
  19. in text produced using Impression, or for independent printing. The
  20. drawing package which comes with RISCáOSá3 generally satisfies my needs.
  21. 7.2
  22. One facility which I often need is a grey scale which will produce
  23. distinct shades on my LaserDirect printer, with the minimum of
  24. Égraininessæ. Ignore the adverts which proclaim 256 Grey Shades! If you
  25. need a Éseamlessæ transition from black to white, this is fine, but if
  26. you want to print blocks of greys which all look different, you will be
  27. lucky to manage 16 shades.
  28. 7.2
  29. The simplest approach to this problem is to try using the colours on the
  30. palette. It can be helpful to have the features of your diagram
  31. highlighted in blue, red, green, etc on the screen, but how will they
  32. appear printed in black-and-white? If you use the default palette (which
  33. I do not!) the 16 colours come out in various shades of grey, as shown
  34. below. The squares are labelled with the appropriate colour numbers, and
  35. arranged from white to black. These squares appear on my Impression
  36. screen, of course, in glorious technicolour.
  37. 7.2
  38. I cannot be sure how this will turn out if Paul prints it in Archive,
  39. but on my printer there are only seven, perhaps just eight,
  40. distinguishable shades. They are all fairly grain-free, printed at
  41. 600╫600 dpi, so a suitable selection can be used. If you want them to
  42. appear on the screen as shades of grey, use Écoloursæ
  43. 0ááâ2áá1áá2áá3áá4áá5(?)áá7. If you prefer them displayed in colour, use
  44. the series 0ááâ2áá9ááâ4ááâ5ááâ0áá5(?)áá11áá7.
  45. 7.2
  46. I have continued this investigation to attempt to find the best possible
  47. grey scale using colours not necessarily on the palette. I have
  48. restricted my investigation to grey Écoloursæ, i.e. those using the
  49. same, or similar, intensities of red, green and blue. That is enough to
  50. be going on with!
  51. 7.2
  52. !Draw allows you to select each of the three components on a scale
  53. 0Ö255. The !Palette utility only allows 16 intensity levels for each
  54. component (producing the 4096 standard colours), so I have started with
  55. this restriction. Representing the 16 degrees of intensity by the hex-
  56. digits 0ÖF, and allowing a difference of only one between the three
  57. components, I have devised the 16-grey-shades scale shown below.
  58. 7.2
  59. How these colours appear on your screen depends on what palette you are
  60. using. In front of me now, I can see shades of buff/brown, because I
  61. have modified the standard, rather harsh, palette. You could try setting
  62. up a palette using these as colours 0Ö15. The result on the screen is
  63. pretty horrible! The result in print, however, is quite good, although
  64. the lighter shades are a bit grainy.
  65. 7.2
  66. Using the Fill Colour facility of Draw gives us greater flexibility,
  67. because we can select from 0Ö255 for each primary colour. To keep things
  68. fairly simple, I have tried only Épure greyæ shades, in which the
  69. intensities of red¡green¡blue are always the same. This gives 256 shades
  70. to try.
  71. 7.2
  72. Using this technique, LaserDirect clearly does not print 256 shades.
  73. Groups of four consecutive shades always appear identical, so our
  74. selection comes down to 64 shades. I printed blocks of these shades,
  75. each identified by the intensity number used for each of the three
  76. components, 0á=áblack ... 255á=áwhite. The shades which show the least
  77. grain are, for some reason, those numbered 243áá235áá227áá219ááetc, i.e.
  78. those whose codes are 8k+3.
  79. 7.2
  80. There are 32 such shades, but adjacent ones are very similar in print,
  81. often apparently identical. In an attempt to create a usable scale, I
  82. have selected ten of these codes (235 219 203 187 171 155 139 123 99 and
  83. 67) plus 0 (black) and 255 (white). These are the shades which I will
  84. try for my next few Draw diagrams. Even these shades show little
  85. difference between adjacent pairs, and it is desirable to use alternate
  86. ones only, if possible.
  87. 7.2
  88. Colin Singleton, Sheffield.
  89. 7.2
  90. Å    Hard disc usage Ö How much space do my hard disc files occupy? The
  91. answer depends on how I try to measure them! My investigations resulted
  92. in the recovery of 5.6Mb (13%) from an unexpected source which I donæt
  93. think has been mentioned previously in Archive.
  94. 7.2
  95. We all know that the disc usage figures given by *Free and *Count are
  96. different. *Count returns the total number of data bytes in the files,
  97. in my case 22.3Mb. *Free returns the total number of bytes used (or
  98. reserved) on the disc, in my case 42.8Mb. These are different for at
  99. least two reasons.
  100. 7.2
  101. Firstly, disc space is allocated to files in units which vary from drive
  102. to drive. In the case of the Acorn SCSI on my A540, this unit is 1Kb.
  103. Hence, on average, 512 bytes is wasted at the end of each fileáÖáthis is
  104. included in the bytes used returned by *Free, but not by *Count. For the
  105. 5,134 files on my drive, this totals 2.5Mb.
  106. 7.2
  107. Secondly, some space is reserved for each Directory Header. The Index
  108. occupies 2Kb, irrespective of the drive and filing system which, for my
  109. 1204 directories, amounts to 2.4Mb, increasing *Count to 24.7Mb.
  110. However, SCSIFS reserves a larger allocation per directory, as noted by
  111. several Archive readers, including Steve Drain (Archive 5.12). On the
  112. A540, each directory is allocated 15Kb, of which only 2Kb is occupied by
  113. the Index. Some of the rest may, if I am lucky, be occupied by small
  114. files subsequently created within the directory. If I am unlucky, I lose
  115. 13Kb per directory. For my 1204 directories, this could amount to
  116. 15.3Mb.
  117. 7.2
  118. Adding this 15.3Mb to the 2.5Mb noted above, gives a maximum wastage of
  119. 17.8Mb. The actual discrepancy, however, was 42.8 Ö 24.7 = 18.1Mb, so
  120. there must have been something I hadnæt discovered. In order to
  121. investigate, I considered my disc directories in three groups, as
  122. identified in the table overleaf.
  123. 7.2
  124.  
  125. 7.2
  126. The largest is headed by a directory called Documents. This contains all
  127. my Impression documents, plus a large number of drawfiles and several
  128. hundred old First Word Plus text files retained for reference. When I
  129. discovered the 13Kb per directory wastage, I realised that Impression,
  130. which normally uses three directories per document, was wasting a great
  131. deal of space.
  132. 7.2
  133. I tackled this problem some time ago, by saving most of my Impression
  134. documents as Text only. This Impression feature in fact stores the
  135. Styles with the text, but does not store graphics or frame data. If I
  136. drag one of the resulting text files onto the Impression icon on the
  137. iconbar, this displays the text in its original fonts, sizes, etc. If,
  138. instead, I drag the text of a letter into the document which contains a
  139. Éblankæ letterhead, the letter is restored exactly as it was originally
  140. createdáÖ provided it contained no graphics and no frames other than
  141. those defined in the letterhead document.
  142. 7.2
  143. I was thus able to store most of my Impression documents as Text only,
  144. and recover several megabytes, without losing anything. This was done
  145. some months ago, before the exercise I am describing here. At that time,
  146. I also compressed all these Édocumentæ files, using Compression and they
  147. are now read and written using Cfs. Some of the other directories on my
  148. disc are also held in compressed form and are identified below as Other
  149. Cfs. The rest (mainly fonts and software) are not compressed and are
  150. identified as Non-Cfs.
  151. 7.2
  152. The table shows the *Count for each group of files and the *Count
  153. obtained via Cfs, which shows what the count would have been if the
  154. files had not been compressed. For interest, I have also shown the sizes
  155. of the backups for each category. These were obtained using by !Backup,
  156. into a temporary directory on the same disc and noting the *Counts of
  157. the backup data directories created (excluding the recovery software
  158. stored with the backup data). !Backup uses !Spark compression which, we
  159. can see from the figures, has some effect on the Non-Cfs files. For the
  160. others, however, no further compression is possible and the backup
  161. actually uses more space than the live files, owing to the directory
  162. structures and other parameters stored by !Backup.
  163. 7.2
  164. In order to assess the Actual Mb used for each group, I copied (by
  165. dragging) each in turn into a temporary directory on the same disc and
  166. noted the decrease in *Free bytes. Then I discovered that the three
  167. figures obtained did not total the Used bytes given by *Free for the
  168. whole discáÖáthe discrepancy being over 5Mb. After some experimentation,
  169. I concluded that the copying process did not produce a precise Écloneæ
  170. occupying the same space as the original. The only way to discover the
  171. space occupied by a group of directories is to delete it and note the
  172. increase in *Free bytes.
  173. 7.2
  174. Hence I copied each group in turn, then deleted the original, rather
  175. than the copy, and noted the change in total usage arising from the
  176. deletion rather than the copying. The copies were then retained in place
  177. of the originals. This process not only revealed the true original
  178. sizes, but also gained 5.6Mb free space, because the copies occupied
  179. less space than the originals!
  180. 7.2
  181. Where did this windfall come from? The first point to note is that it
  182. was all gained in the Documents directories. These have been very active
  183. in the past. Apart from the usual process of addition and amendment of
  184. documents, the filing system has also had to endure the process of
  185. replacing most of the Impression documents with text files, the
  186. compression of all the files and, recently, a major exercise of
  187. restructuring the directories and renaming most of the files. Many of
  188. the recent changes were made by copying files, then deleting the
  189. originals, rather than by renaming. All this activity must have produced
  190. considerable small-scale fragmentation of the free space, which is
  191. perhaps not mapped and included in the *Free bytes. *Compact (which
  192. should not be needed with this filing system) did produce a
  193. simplification of the free space *Map, but did not change the number of
  194. *Free bytes. Copying the files in sequence, however, produces a new
  195. directory with no fragmented waste.
  196. 7.2
  197. As a result of all this, I can now calculate the wasted space as 8.5Kb
  198. per directory, instead of an apparently impossible 13.3Kb. If I could
  199. recover all of this, I would save another 10Mb in total, but that seems
  200. to be impossible. I could recover perhaps three quarters of it by re-
  201. formatting the disc using a smaller File Allocation, except that I donæt
  202. want to do that unless it is really necessary, and in any case, I donæt
  203. appear to have the right Format program ...!á Colin Singleton,
  204. Sheffield.
  205. 7.2
  206. Å    Image enhancement Ö I think I can offer a solution to Cain Huntæs
  207. request for a cheap image enhancer (7.1 p26). With hindsight, I might
  208. have included the information in the notes on colour printing (7.1áp35).
  209. Version 0.90 of Acornæs !ChangeFSI application comes Éfreeæ on the RISC
  210. OS 3.1 Support Disc and its many facilities include most of the sprite
  211. processing options I suggested; brightening and gamma correction for
  212. example. It also accepts some foreign formats (e.g. TIFF), converting
  213. them to sprites.
  214. 7.2
  215. The documentation is not so hot. There seems to be nothing between the
  216. rather sketchy notes starting on page 207 of the RISC OS 3 Applications
  217. Guide and the detailed but very complex FSIinfo file in the !ChangeFSI
  218. directory. However, this desktop application is intuitive to use, and
  219. trial and error will often produce the desired result. Although it is
  220. possible to apply two or more processing functions in parallel, I do
  221. support the notesæ recommendation to operate on an unmodified file and
  222. try changing only one parameter at a time.
  223. 7.2
  224. The only process I would like to see added to !ChangeFSI is Chameleonæs
  225. ÉWeakenæ function which, for me, seems to give more effective control of
  226. colour sprites than Brighten.
  227. 7.2
  228. I spotted a documented facility in !ChangeFSI which allows very large
  229. output files to be built in Éstripsæ using the parameter ChangeFSI
  230. <source address><destination address>28-max<n> where n is the desired
  231. size of the strip, e.g. 512Kb. I wonder if some very clever person might
  232. be able to use this as a basis for a utility to transfer large
  233. TIFFáfiles between Archimedes/PCs/Macs, split between two or more MS-DOS
  234. floppy discs?
  235. 7.2
  236. As a further postscript to the colour printing notes, a reader has
  237. recommended Hewlett Packard HP 92296U transparencies for my Canon LBP-4;
  238. about 32p each. Iæve since tried them and the results, especially on 600
  239. dpi graphics, are excellent.á Jim Nottingham, York.
  240. 7.2
  241. Å    Indelible ink Ö At long last, there is an indelible ink refill
  242. available for HP Deskjet cartridges. They are available from Misco
  243. Computer Supplies, Faraday Close, Park Farm Industrial Estate,
  244. Wellingborough, NN8 6XH. A two-refill kits costs ú13 plus postage.á Mike
  245. King, Guernsey.ááA
  246.