home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_08 / issue_03 < prev    next >
Text File  |  1995-02-16  |  18KB  |  323 lines

  1. Hints and Tips
  2. 8.3
  3. Å  A3000 bulging case (Archive 8.2 p62)áÖáIn the hint last month, I
  4. suggested replacing the plastic cases of A3000 computers. In the text I
  5. sent to Paul, I made some mention of safety aspects but Paul edited them
  6. out. (Oops, sorry!) Please note that, for a variety of reasons,áyou
  7. should not attempt to change the bottom case if your power supply is the
  8. cardboard-covered type. If you are unsure, I would be happy for you to
  9. write to me or ring me on 01564-776745.á Keith Coton, 118 Purnells Way,
  10. Knowle, Solihull, B93 9ED.
  11. 8.3
  12. Å  Binder problemsáÖáA number of people have said that, when they
  13. reached the end of Volume 7, the last magazine wouldnæt fit into the
  14. binder. Let me assure you that they do fit in the binder (well, just).
  15. If you canæt get them in, it could be because you have been putting the
  16. rods into the holes instead of into the slots. The holes are there only
  17. for use when the volume is incomplete, i.e. with a half-full binder, the
  18. magazines tend to flop about and the rods easily come out unless you put
  19. the rod for the top issue into an appropriate pair of holes. I suppose
  20. we ought to send out instructions with the binders, but having used the
  21. same binders for 8 years, I forget that they are new to some of you.
  22. Sorry! Ed.
  23. 8.3
  24. Å  Day of the week functionáÖáI agree entirely with the basic message of
  25. Cain Huntæs article, öWhy bother programming?ò (8.1 p29). When I write
  26. number-crunching programs in Basic, I Éprintæ the results to a spool
  27. file, which I drag into Impression and format into a suitable
  28. presentation document.
  29. 8.3
  30. One helpful comment, if I may, is that the calendar shouldnæt need to be
  31. told the day of the week of January 1. The function to use (which
  32. returns a value in the range 0=Sunday to 6=Saturday) is:
  33. 8.3
  34. DEFFNNewYear(Y%)=(1+1461*(Y%Ö1)DIV4Ö(1+ (Y%Ö1)DIV100)*3DIV4)MOD7
  35. 8.3
  36. Colin Singleton, Sheffield.
  37. 8.3
  38. Å  Impressionæs single-file document iconáÖáIn Archive 8.2 p.19, Paul
  39. complained about the very dowdy grey icons that Impression Publisher and
  40. Style use for their documents.
  41. 8.3
  42. Fortunately, this is easily changed: All you have to do is look for the
  43. sprite called file_bc5 in the three directories !Sprites, !Sprites22 and
  44. !Sprites23 inside Impressionæs application directory, and the sprite
  45. called docsprites inside Resources.Sprites; you can replace them with
  46. whatever icons you prefer Ö I took the Impression II document sprite and
  47. changed its background from white to pale yellow to be able to tell the
  48. two types of documents apart.á Jochen Konietzko, K÷ln, Germany
  49. 8.3
  50. This was one of many similar suggestions. Thanks to all who attempted to
  51. put me out of my misery. My desktop is now resplendent with white Iæs
  52. and yellow Iæs, so now I can see which I is which. Ed.
  53. 8.3
  54. Å  Inkjet paper quality (8.2 p63)áÖáReyjet paper can be obtained from
  55. ÉStaples (Office Superstores)æ. The price, a few months ago, was ú2.39
  56. (+VAT) per ream. I have found these stores to be well worth a visit, in
  57. terms of both choice and price. Their catalogue contains a paper/printer
  58. type compatibility chart and lists five types suitable for b/w inkjets
  59. (from 80gsm to 100gsm, one in A3 size) and three for colour inkjets. The
  60. Superstores tend to be Home Counties-based (Croydon, High Wycombe, and
  61. Staples Corner in London) but they have other stores through the country
  62. (e.g. Leeds, Cambridge, Swansea, etc.) though I do not know if they
  63. carry full stocks.á Bob Bourne, Ware.
  64. 8.3
  65. If anyone canæt get Versoix paper locally, it is readily available from
  66. Viking Direct at ú5.49 per ream or ú19.95 per 5 reams, both excluding
  67. VAT and delivery. Eight reams or more are delivered free, usually
  68. overnight. Viking Direct are on Freephone 0800-424444 and have a very
  69. wide range of general computer and office supplies.á Jim Nottingham,
  70. York.
  71. 8.3
  72. Å  Impressionæs öSome fonts not foundò ÖáSince the arrival of Impression
  73. Style and Publisher, I have read repeated complaints about the fact that
  74. both versions still replace fonts that have been used in a document but
  75. are currently not available, with the default font. Coupled with this
  76. complaint, usually, is a wish that there should be an option to abort
  77. and install the missing fonts (most recently in Archiveá8.1, p.31).
  78. 8.3
  79. I canæt quite see the point of these complaints. I work with just three
  80. or four fonts most of the time, so that one of the all-singing, all-
  81. dancing font handlers like FontDirectory would be a waste of money for
  82. me. Therefore, I have simply distributed my fonts over four directories
  83. Ö a small one with those few fonts that I use most often and, one step
  84. down in the directory structure, the rest, grouped according to their
  85. general look.
  86. 8.3
  87. When Impression Style now gives out its önot foundò message, all I have
  88. to do is let RISC OS 3.10 öseeò the relevant font directory, then press
  89. <f12><return>, and the missing font will be loaded into Style.
  90. 8.3
  91. Problems really only occur when you load someone elseæs document with
  92. fonts which you donæt have. In this case, it would be nice if Impression
  93. gave the option to choose the replacement font. You could then use
  94. something really noticeable like Dingbats, so that it would be easy to
  95. locate the style or effect that needed changing. áJochen Konietzko,
  96. K÷ln, Germany.
  97. 8.3
  98. Å  NoCaps IIáÖáAfter the hint in Archive 8.1 regarding disabling the
  99. capslock key I had a request for a version that would respond normally
  100. to capslock, but turn it off when shift was pressed. This could be
  101. useful for things like postcodes, where it is easier to turn capslock on
  102. than to get confused about when you need to press <shift>. Rather than
  103. adding this functionality to the original module, I generated a new
  104. version, which is more economical on space than having both in one, and
  105. you are only likely to use one or the other. The two modules are on this
  106. monthæs disc as NoCaps (disable capslock as before) and SNoCaps (shift
  107. disable capslock).á Matthew Hunter, NCS.
  108. 8.3
  109. Å  Powersave & librariesáÖáSeveral people have expressed interest in the
  110. powersave program from issue 8.1 of Archive, but have had difficulty
  111. incorporating it into their !Boot sequence. I will therefore describe
  112. how to install it. (The methods apply equally to other command line
  113. programs you may wish to run Ö just replace powersave in the description
  114. below with the program you wish to install.)
  115. 8.3
  116. There are three basic ways around this problem. The first thing to do
  117. (whichever method you use) is to find your boot file. If your machine
  118. has RISC OS 3.11 or earlier, the boot file will be in the root directory
  119. of your hard disc (unless you have moved it). On the Risc PC you will
  120. have to hold down shift (to open application directories) and double-
  121. click on !Boot, Choices, Boot, Tasks, in that order, as you go down the
  122. directory structure (clicking with <adjust> each time will close the
  123. previous filer window Ö useful in this situation). Once you have located
  124. your boot file (called É!Bootæ) hold shift and double-click on it to
  125. load it into !Edit. Find where in the boot sequence you wish to run the
  126. program and insert a blank line. Make sure the cursor is at the start of
  127. the blank line, ready for the command that will execute the desired
  128. program.
  129. 8.3
  130. Probably the easiest method is to use an absolute reference. Copy
  131. powersave somewhere Ésafeæ and preferably out of the way so that it does
  132. not clutter the hard disc. Type öRUN ò and then hold down <shift> and
  133. drag the Épowersaveæ icon, from where you put it, into the text window
  134. containing the boot file set up above. When you release <select>, you
  135. should see the full pathname appear in the text file following the run
  136. command. You can then set up the parameters as described below.
  137. 8.3
  138. The second possibility is to set aside a special directory where you
  139. keep all your command line programs. Fortunately, Acorn provide such a
  140. system, the Library directory, which on pre-Risc PC machines is, by
  141. default, a directory called ÉLibraryæ in the root of your hard disc. On
  142. the Risc PC, there is a directory inside the !Boot application, also
  143. called ÉLibraryæ. Open the appropriate Library directory and copy
  144. powersave into it. You can then type Épowersaveæ into the blank line in
  145. the boot file ready for the parameters to follow.
  146. 8.3
  147. This is fine except that it relies on default settings, and puts
  148. programs into Library that you only use very rarely. The method I use
  149. therefore is to put the programs, and utility applications that I load
  150. only during the boot sequence (backdrop picker, configuration tester,
  151. for example), into a directory, say ÉBootLibæ. I then have a line in my
  152. Boot file Éset BootLib$Path full::pathname.$.for.BootLib.æ as
  153. appropriate for the location of the BootLib directory. Again, this can
  154. be found by Shift-dragging BootLib into the text editor, but note that,
  155. to be successful, the path must end with a full stop. I can then run any
  156. program in Bootlib with the command ÉBootLib:prognameæ. This is longer
  157. for a single program, but I only have to set bootlib once, and then
  158. reference it several times. I have an absolute reference, so the default
  159. settings do not affect it, and the library directory is kept for
  160. frequently used programs. It is also far simpler to move the directory Ö
  161. if you use the first method, you have to re-enter the full pathname for
  162. every program that has moved. If I move BootLib, however, I only have to
  163. change the line where BootLib is set, and all the programs will work as
  164. before.
  165. 8.3
  166. Once you have got the program ready to run by one of the three methods
  167. above, all you need to do is to add any parameters to the end of the
  168. line as appropriate for the program. In the case of powersave, an
  169. example would be Édelay 4 120æ for a two minute inactivity delay before
  170. spinning down the drive. Do not use Éspindownæ in your boot sequence.
  171. Doing so will force the drive to spindown part way through the boot, and
  172. immediately spin back up again, causing unnecessary strain.á Matthew
  173. Hunter.
  174. 8.3
  175. Å  Publisher: editing effectsáÖáIt is possible to edit effects as if
  176. they were styles and even then to turn them from effects into styles. If
  177. you look inside !Publisher, in the Resources directory is a file called
  178. UK. In it is a line: öCnf1:ò and if you change this to read öCnf1:Eò and
  179. re-save it, then from the next time you load Publisher, you will find
  180. that effects become editable just as if they were styles.
  181. 8.3
  182. This partially solved a problem caused by the change to Publisher.
  183. 8.3
  184. With Impression II, when articles came in that had bits in bold, I would
  185. just put them into the magazine and the öboldò bits would come out as
  186. Plantin.Semibold. (I prefer to use Plantin.Bold because the body text is
  187. Plantin.Light and the full bold face, although OK for headings, looks
  188. too dark within the body of the text.) This worked because, prior to
  189. Style and Publisher, anything using the bold effect was given the name
  190. öboldò and, in the magazine, the öboldò style was defined as using
  191. Plantin.Semibold.
  192. 8.3
  193. However, if contributors us <ctrl-B> for bold, when I load it into the
  194. magazine, it forces the text into Plantin.Bold. At first, I had to edit
  195. öby handò every single occurrence of the bold effect, changing it into
  196. my bold style! The way I now get round it is to go to the incoming file,
  197. click on a piece of öboldò text and press <ctrl-f6> to edit the style.
  198. The effect then appears in the style editing window as something like
  199. öEffect17ò, or whatever. All I have to do then is to change this name to
  200. öBoldò and this then becomes a style rather than an effect and, when
  201. loaded into the magazine, it automatically assumes my Plantin.Semibold
  202. style.á Ed.
  203. 8.3
  204. Å  Publisher: finding styles and effectsáÖáIf you are given a document
  205. that contains a huge range of effects and styles, as I often am, it is
  206. good to simplify it before pasting it into another document. (You would
  207. be amazed at the complex combinations of styles and effects people use
  208. in their documents!!) You have the choice of a quick <ctrl-A><ctrl-N> to
  209. remove all styles and effects and then re-insert the styles you really
  210. want or of leaving in some styles and removing others. But how do you
  211. know which style/effect does what? Well, styles are easy because you can
  212. use search and replace to find them. The menu button next to the öFind
  213. what:ò box allows you to enter the name of a style. Then add an ö@ò and
  214. it will find the first occurrence of anything in that style.
  215. 8.3
  216. Finding effects is more tortuous and can only be achieved if you have
  217. used the Cnf1:E trick mentioned above. So, if you press <ctrl-A> and
  218. look across on the Style menu, you will see a list of ticked styles and
  219. effects. Suppose you decide you want to find what and where öEffect 598ò
  220. is. The trick is that you double-click on a word and use the Style menu
  221. option to apply Effect 598 to it. Pressing <ctrl-f6> will then bring up
  222. Effect 598 on the Edit style window. Click on öShow on style menuò and
  223. OK it. Now you can go to the top of the document and use <f4> to find
  224. that effect as it will now appear on the find style menu. The only bit
  225. of really bad planning here is that, if you want to look at each of the
  226. occurrences of this effect and get rid of some of them, you cannot use
  227. <ctrl-N> to remove the effect because <ctrl-N> is taken to mean önext
  228. matchò when you are searching! Drat! Keystroke to the rescue again. I
  229. have programmed <alt-N> to give me the menu selection, Style Ö Clear all
  230. styles. Ed.
  231. 8.3
  232. Å  Screenload on the Risc PCáÖáIt has been pointed out that the
  233. *screenload command appears to work differently on the Risc PC from
  234. previous machines, in that it no longer loads into the current graphics
  235. window but loads at the bottom left corner of the screen instead. In
  236. fact the operation has not changed, but is modified by the new mode
  237. system. A screenload will load the sprite to the screen, changing mode
  238. if necessary, and it is the mode change that causes the problems. For
  239. example, if, while in mode 31, you screenload a sprite, defined in mode
  240. 27, the computer will change to mode 27 first. Changing mode redefines
  241. the graphics window, so you will find that (on any machine) the result
  242. of the following program will be to place the sprite in the bottom left
  243. hand corner of the screen (assuming there is a sprite called Étestæ,
  244. defined in mode 27 in the currently selected directory).
  245. 8.3
  246. MODE 31
  247. 8.3
  248. VDU 24;100;100;600;600;
  249. 8.3
  250. *SCREENLOAD test
  251. 8.3
  252. This is because the graphics window set by the VDU 24 is reset by the
  253. mode change implied in the *screenload. Adding the lines.
  254. 8.3
  255. VDU 24;200;200;600;600;
  256. 8.3
  257. *SCREENLOAD test
  258. 8.3
  259. to the end of the program will successfully move the sprite to 200,200
  260. before plotting... except on the Risc PC. This occurs because the mode
  261. is already set to 27, so the mode is not changed, and the graphics
  262. window remains intact. The problem with the Risc PC is that when the
  263. machine tries to change into mode 27 (after the first screenload) it
  264. ends up as a 640 by 480, 16 colours, 60Hz mode. Therefore, although the
  265. sprite is loaded, the machine is not actually in mode 27, so the next
  266. screenload also tries to change to mode 27, resetting the graphics
  267. window again. Unfortunately changing the mode in which a sprite is
  268. defined is does not cure the problem. If you need to move the sprite
  269. away from the bottom left corner, you will need to use sprite calls to
  270. load and plot the sprite yourself.á Matthew Hunter, NCS.
  271. 8.3
  272. Å  Style file sizeáÖáThe Impression Style manual says that: öDeleting
  273. unused master pages does not make the document significantly smallerò
  274. (page 180) and öSingle file format has the advantage that files are
  275. smaller. This is useful for short documents such as lettersò (page 17).
  276. However, there is no comment on the merits of deleting unused styles, so
  277. I thought I would check it out.
  278. 8.3
  279. Taking a two page letter built on a letter master page and with a sprite
  280. picture (25,240 bytes), I have tested these statements out. The Info Box
  281. gave:
  282. 8.3
  283. Document  Pages: 2  Size: 171Kb
  284. 8.3
  285. Text  Stories: 19  Memory: 6Kb
  286. 8.3
  287.   Chapters: 1  Words: 452
  288. 8.3
  289. Graphics  Pictures: 5  Memory: 147Kb
  290. 8.3
  291. When saved, the document took up 175,912 bytes (single file) or 176,543
  292. bytes (directory)
  293. 8.3
  294. The reason for the massive size is that I had four master pages for
  295. different letter-type documents, each with the logo graphic. So, after
  296. removing three unused master pages, the document took up: 42,792 (single
  297. file) or 44,367 (directory).
  298. 8.3
  299. The document had fifteen other unused master pages which took up between
  300. 188 and 1,216 bytes each Ö when all were removed, the document shrank
  301. to: 35,316 (single file) or 36,851 (directory).
  302. 8.3
  303. If I saved the text only, with no style information, it only occupied
  304. 2,332 bytes.
  305. 8.3
  306. As I already have the picture stored elsewhere, I only need to keep the
  307. text and that does not need any style or frame information and so my
  308. final storage needs will not be 176Kb but about 2Kb which can then be
  309. very effectively archived.
  310. 8.3
  311. What I have learnt from this: (1) save all writing as text files if
  312. possible, (2) redundant styles do not take up a large amount of space
  313. and there is no benefit in removing them for storage reasons and (3) be
  314. careful how many times you save graphics, especially in dormant master
  315. pages!
  316. 8.3
  317. I will now remove many of the master pages from my default document and
  318. save them in separate documents (or in useful groups as I donæt think
  319. you can merge master pages into one document!) for when I need them.
  320. This will also have the knock-on effect of having smaller initial
  321. documents in memory which will load more quickly! áRobert Lytton,
  322. Leeds.ááAá
  323.