home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_06 / issue12 < prev   
Text File  |  1995-02-16  |  22KB  |  510 lines

  1. Hints and Tips
  2. 6.12
  3. Å    Cfs and the cluttered iconbar Ö There are five drive icons on my
  4. iconbar, together with five Cfs (i.e. Computer Conceptsæ Compression)
  5. icons, so there is hardly room for anything else!
  6. 6.12
  7. Since version 1.17 of Cfs, however, things have rather changed for the
  8. better, due to the key combination <ctrl-insert> which lets you switch
  9. between the Cfs and the normal window.
  10. 6.12
  11. I now find that one Cfs icon on the iconbar is all I need. What I have
  12. done is this: My !Boot file contains nine lines concerning Cfs:
  13. 6.12
  14. <d>.!Cfs
  15. 6.12
  16. (This runs the application. <d> gives the path for the program, as
  17. described in Archive 3.9, p.8)
  18. 6.12
  19. RMEnsure CFSModule 1.17 RMLoad <d> .!Cfs.CFSModule
  20. 6.12
  21. RMEnsure CFSModule 1.17 Error CFSModule not loaded
  22. 6.12
  23. (These two lines are just to make doubly sure.)
  24. 6.12
  25. CFStemp <s>!Scrap.ScrapDir
  26. 6.12
  27. NewCFS ADFS::0
  28. 6.12
  29. NewCFS ADFS::intern
  30. 6.12
  31. NewCFS SCSI::SCSIDrive0
  32. 6.12
  33. NewCFS SCSI::SCSIDrive4
  34. 6.12
  35. NewCFS SCSI::extern
  36. 6.12
  37. (The last six lines duplicate the way in which everything was first set
  38. up from the Cfs iconbar icons.)
  39. 6.12
  40. With these commands in the !Boot file, it is now possible to delete all
  41. but one Cfs icon from the iconbar and save the changes. Now one of my
  42. drives (the one I use most often) can have its Cfs directory windows
  43. opened directly. On all the others, I open the relevant uncompressed
  44. window, then press <ctrl-insert>.á Jochen Konietzko, K÷ln, Germany
  45. 6.12
  46. Å    Impression arrows Ö Left and right arrows in Impression are extremely
  47. easy to generate. You start with ö<ÖÖò or öÖÖ>ò and use <ctrl-R>
  48. inbetween the characters to reduce the spacing (kerning) between the
  49. characters so that you end up with ö<ÖÖò or öÖÖ>ò. Those two needed one
  50. <ctrl-R> between the dashes and nine <ctrl-R>s between the angle bracket
  51. (inequality sign) and the dash but it will depend on the font size.
  52. (These ödashesò are produced in Impression with <shift-ctrl-hyphen>.
  53. Actually, they are supposed to be minus signs, I think but I prefer them
  54. to the öproperò dash which is <alt-152>. Certainly when I tried the
  55. öproperò dash for this purpose, it produced öÿ>ò which isnæt quite as
  56. good as the height is different and it doesnæt hit quite at the centre
  57. of the angle of the hairpin.) You can see it better at a bigger point
  58. size:
  59. 6.12
  60. Two minus signs: öÖÖ>ò One dash: öÿ>>ò
  61. 6.12
  62. In Times font, which I am using here, the long dash is slightly lighter
  63. and doesnæt match the weight of the angle bracket. However, this trick
  64. does depend on the particular font used Ö itæs a Ésuck it and seeò job.á
  65. Ed.
  66. 6.12
  67. Å    Multistore alphabetical sorting Ö I recently created a large database
  68. for my church roll in which there was a single name field presenting the
  69. information in the form öSue Adamsò. I set up an index on this field
  70. using the Surname function only to discover that it persisted in sorting
  71. öSue Adamsò after öMargaret Adamsonò. An examination of BaseLib (found
  72. by shift-clicking !Multistore and dragging into !Edit) revealed how the
  73. Base Function FNsurn worked and led to the idea of creating another Base
  74. Function, FNchristian, to select the Christian name and any initial.
  75. Using !Edit, I adapted FNsurn and then saved it as a further Base
  76. Function in BaseLib. Then, using the Sort facility with the expression
  77. öFNsurn(@ Name)+FNchristian(@Name)ò, the names were sorted into correct
  78. alphabetical order. It is necessary to quit and re-load Multistore to
  79. ensure that it knows of the new Base Function. FNchristian is as
  80. follows:
  81. 6.12
  82. DEFFNchristian(A$):LOCALI%,C%
  83. 6.12
  84. WHILERIGHT$(A$,1)=ö ò:A$=LEFT$(A$) :ENDWHILE:I%=LENA$: C%=ASCMID$(A$,I%)
  85. 6.12
  86. WHILEI%>0AND((C%>64ANDC%<91)OR(C%> 96ANDC%<123)ORC%=45):I%-=1
  87. 6.12
  88. C%=ASCMID$(A$,I%):ENDWHILE
  89. 6.12
  90. IF INSTR(A$,ö ò)>0THEN=LEFT$(A$, I%-1)ELSE=öò
  91. 6.12
  92. Colin Brockie, Kilmarnock.
  93. 6.12
  94. Å    Multiple stories on one page in Impression Ö It can sometimes be
  95. extremely desirable to have two or more independent stories on a single
  96. page in Impression. Normally, when you enter text in a single-frame page
  97. and the text fills the frame, a new page is created and the text
  98. continues to flow onto the new page. Creating a second frame on any
  99. given page simply makes a local frame which does not exhibit this
  100. ability to flow text onto a new page when it is full. However, if it
  101. were possible to have two or more frames on a page which could
  102. independently create new pages when full, this would be very useful Ö it
  103. would make for easy creation of footnotes, for one thing.
  104. 6.12
  105. I was recently asked how to achieve this effect by a user who was
  106. setting opera libretti, and who wanted to have two columns side by side
  107. for different languages. A two-column master page layout did not achieve
  108. the desired effect because the text flowed from one column to the next
  109. on the same page, rather than from any given column to the equivalent
  110. column on the following page.
  111. 6.12
  112. There is, in fact, a way of achieving the required effect in Impression,
  113. but the technique is a little subtle.
  114. 6.12
  115. How to do it Ö Either choose a suitable master page which exists already
  116. or use the ÉNew master pageæ menu option to create an appropriate page
  117. with the desired number of columns on it. Create whatever extra frames
  118. you need on your master page in the normal way.
  119. 6.12
  120. Now use the ÉShow flowæ option from Impressionæs iconbar menu to see how
  121. the text will flow between the frames. Under normal circumstances, to
  122. link frames into the text flow sequence you click <select> on the first
  123. frame in the sequence, followed by <adjust> on the succeeding frames in
  124. the correct order. However, it is not possible to remove frames from the
  125. sequence using this method and so, if you try to alter the order of flow
  126. which is automatically assigned on the master page, you will find you
  127. are not able to do so. Therefore, the only way to remove a frame from
  128. the text flow sequence is to actually delete it and then recreate it.
  129. 6.12
  130. So, for each frame which is to contain its own page-creating story,
  131. first select the frame and then open the ÉAlter frameæ dialogue box with
  132. <ctrl-f10>. Make a note (mental or otherwise) of the X and Y coordinates
  133. of the frame, close the dialogue box and press <ctrl-X> to cut the frame
  134. to the clipboard. Immediately you have done this, press <insert> (or
  135. <ctrl-V>) and paste the frame back to where you cut it from. Finally,
  136. open the ÉAlter frameæ box again and restore the coordinates to what
  137. they were before.
  138. 6.12
  139. On the face of it, this seems pretty pointless. All you have done is
  140. delete a frame and then put it back again in the same place. However,
  141. the practical effect of the action is to un-link the frame from the text
  142. flow sequence. If you choose ÉShow flowæ from the iconbar menu again,
  143. you will see that the frame no longer has an arrow pointing to or from
  144. it. (In fact, if you have a layout of three or more columns, you will
  145. see that the flow has bypassed this frame, but still connects the
  146. others.)
  147. 6.12
  148. What this boils down to is that you can have as many individual stories
  149. as you want on a single master page. Each story can consist either of a
  150. separate frame or any number of linked frames. Any such set of frames on
  151. an Impression master page will cause the creation of a new page when
  152. filled with text in the document.
  153. 6.12
  154. The layout shown in the illustration is not intended to be a serious
  155. example but it merely illustrates the idea. The frames for both Story 1
  156. and Story 2 have been linked, whilst the frame for Story 3 is a separate
  157. entity, as is the frame for footnotes.
  158. 6.12
  159. As for practical examples of this idea, one has only to look at the old-
  160. style (RISC OS 2) Acorn manuals, such as the BBC Basic Guide or PRM.
  161. These manuals all have a vertical line about a third of the way across
  162. each page, to the right of which is the main text. The headings and sub-
  163. headings all appear to the left of the line. Although the creation of
  164. such pages by conventional methods would be perfectly possible, having
  165. two independent stories (one for the main text, another for the
  166. headings) would greatly simplify the process.
  167. 6.12
  168. A similar idea commonly found in educational material is to have a
  169. column, at the right hand side of the page, which contains comments
  170. relating to the ideas presented in the main body of the text.
  171. 6.12
  172. Another good use for this idea is the presentation of tabulated material
  173. such as a printed index. If you want a column of numbers to be in a
  174. different style to the reference text the numbers accompany, it is far
  175. easier to have two independent stories than to apply a specific style
  176. for each number on a line.
  177. 6.12
  178. When using this approach, there is just one thing to watch out for. If
  179. there is not a direct one-to-one correspondence between the number of
  180. lines in the stories (which there may or may not be, depending on the
  181. document), you must remember to press <ctrl-G> (which corresponds to the
  182. ÉFrame=>Force to nextæ menu option) when you have typed in all the text
  183. for the shorter story on each page. If you donæt do this, you may find
  184. that, when you position the caret in the frame in which you want to
  185. start typing, the text appears on the previous page. However, you will
  186. soon get used to this.
  187. 6.12
  188. As for footnotes, if you know that none of your footnotes will exceed a
  189. single line in depth, you should create your footnote master page frame
  190. to be just large enough to contain one line of text. Then, each time you
  191. press <return>, the caret will advance one page. If you need longer
  192. footnotes, however, make the master page frame large enough to hold the
  193. largest note and remember to use the <ctrl-G> method.á Richard Hallas,
  194. Huddersfield.
  195. 6.12
  196. Is it possible to have two or more independent stories running side-by-
  197. side in Ovation? If so, can anyone explain how? Ed.
  198. 6.12
  199. Å    Printing to files Ö I experienced the same problem as Tom Rank
  200. (Archive 6.9 p63) with printing to a file. This involved an address
  201. exception being caused at the end of each print run which prevented the
  202. last few graphics lines from being printed. The problem is caused by
  203. ADFSBuffers. Setting this to zero using:
  204. 6.12
  205.     *Configure ADFSBuffers 0
  206. 6.12
  207. solves the problem.á Paul Mellor, Derby.
  208. 6.12
  209. Å    Vector overlays Ö The new version 1.10 of Vector offers the option to
  210. draw lines with overlays (i.e. between 1% and 99% of the lineæs interior
  211. is drawn in a different colour), a feature which makes drawing little
  212. map sketches very simple.
  213. 6.12
  214. A problem arises if you want to join two roads or two rivers without a
  215. seam.Vector produces something like this (overlay 50%):
  216. 6.12
  217. For a decent map you need, instead, something like this:
  218. 6.12
  219. If, as in this case, all paths have the same width, it is simple: Just
  220. select them all and merge them through the öSpecialò menu. (This also
  221. saves memory: The five paths in the first picture take up 1071 bytes,
  222. the merged path only 883 bytes.)
  223. 6.12
  224. If the width differs, the thickest line will force its width upon all
  225. the others, making a merge inadvisable; then you will have to apply
  226. little öbeauty patchesò in the form of completely white rectangles to
  227. cover the unwanted black lines.
  228. 6.12
  229. While you rotate the rectangles to align them with the road, it is best
  230. to switch the amount of detail shown on the screen from stage 5 to stage
  231. 3, so that all the rectangles appear just as thin black outlines (even
  232. if they are not selected) and this makes an öinvisibleò shape rather
  233. more easy to handle.
  234. 6.12
  235. When you go about rotating those rectangles, it makes sense to lock
  236. everything else first with <ctrl¡H> because else it is very simple to
  237. rotate something else besides the little patch.á Jochen Konietzko, K÷ln,
  238. Germany.ááA
  239. Using RISCáOSá3.1
  240. 6.12
  241. Hugh Eagle
  242. 6.12
  243. SCSI problems
  244. 6.12
  245. Barry Thompson found one day that he was unable to access the hard
  246. drive, an Oak Worra Winnie 45Mb on an A340 with RISCáOSá3.11. The error
  247. message, ÉDisc not understood ù has it been formatted?æ came into view.
  248. On Oakæs advice, he refitted RISCáOSá2 and the message became ÉBad free
  249. space map.æ Adrian Lookæs !FixMap was unable to help, so the disc had to
  250. be reformatted and, of course, all the data was lost. Someone at Oak
  251. suggested to Barry that SCSI can be less reliable with RISCáOSá3 than
  252. with RISCáOSá2 and recommended doing a *Checkmap every couple of days
  253. and, if errors were reported, to back everything up and reinitialise the
  254. disc.
  255. 6.12
  256. Synonymous pathnames
  257. 6.12
  258. Mick Day writes, öI wrote some time ago that the operating system did
  259. not check for synonymous valid references to the RAMDisc pathnames. This
  260. is, in fact, more general. If full and accurate pathnames are always
  261. used, this is no problem; and where removable media are concerned, it is
  262. probably necessary. However, comparison of the ÉBytes freeæ or a CRC
  263. number could have largely eliminated this. Alternatively, if an
  264. abbreviated Disc Spec was given, the filer could have filled it in
  265. completely and thus discovered identical manifestations of filer
  266. windows! It does no harm, but is confusing. If you set the pathnames for
  267. your harddisc in the following short program:
  268. 6.12
  269. *Filer_OpenDir RAM::RamDisc0.$
  270. 6.12
  271. *Filer_OpenDir RAM::0.$
  272. 6.12
  273. *Filer_OpenDir RAM:$
  274. 6.12
  275. *Filer_OpenDir SCSI::HardDisc4.$ | set these
  276. 6.12
  277. *Filer_OpenDir SCSI::4.$| names to
  278. 6.12
  279. *Filer_OpenDir SCSI:$| your system
  280. 6.12
  281. *Filer_OpenDir ADFS::MCDay.$
  282. 6.12
  283. *Filer_OpenDir ADFS::0.$
  284. 6.12
  285. END
  286. 6.12
  287. you will find, on running, three identical filer windows on the screen
  288. for RAMDisc, three for Fixed disc and two ADFS floppy! I think this is
  289. sloppy implementation, akin to not checking the disc before issuing
  290. ÉFreeæ!ò
  291. 6.12
  292. Top bit set characters
  293. 6.12
  294. Mick Day uses a Star LC10 mainly for address labels. The dip switches
  295. set it to the Epson character set. However, he sometimes needs to use
  296. top-bit characters in foreign addresses. He thus has implemented a
  297. complete look-up table for the characters 160-255, trying as near as
  298. possible to get the Latin1 set. He says that, interestingly, it is
  299. possible to dodge about and use the IBM set in addition to the Epson
  300. set! The Basic program $.Latin1 on the monthly program disc summarises
  301. it; anyone with a Star LC10 should be able to get it going. It might
  302. work on some others as well.
  303. 6.12
  304. Form feeds
  305. 6.12
  306. Mick Day also writes: öI have spent a lot of time trying to stop the
  307. PDriver module or its front end from issuing formfeeds. I would rather
  308. decide for myself when the paper is to be thrown out onto the desk. Am I
  309. missing some glaring instruction or is it really impossible to configure
  310. this simple option? I experimented further with !Printers after reading
  311. Tim Nicholsonæs article (Archive 6.10 pp 43-47), but got no further. I
  312. suspect that the formfeed is done by PDriver; I have set the printer
  313. configure to the start sequence instead of the end and removed the
  314. formfeed character, but all to no avail. It means that if you drag a
  315. single address to print on labels, you need a specific Printer with a
  316. page length of 9 Ö a sledgehammer to crack a nut! I want one driver for
  317. the printer which does what I tell it. Can anyone tell me definitively
  318. if the terminal formfeed is configurable or not? Otherwise I could be
  319. experimenting until I die!ò
  320. 6.12
  321. Testing a printeræs on-line status
  322. 6.12
  323. (See Archive 6.11 p51) Mick Day says that he prefers the following
  324. routine to the one published last month (which he says is slower and
  325. escape can interrupt it):
  326. 6.12
  327. DEF FNCheckPrinter
  328. 6.12
  329. *FX 5,1
  330. 6.12
  331. *VDU 2,1,0
  332. 6.12
  333. SYS öOS_Byteò,152,3 to ;f%
  334. 6.12
  335. f%=f%AND2
  336. 6.12
  337. *FX 21,3
  338. 6.12
  339. VDU 3
  340. 6.12
  341. *FX 5,5
  342. 6.12
  343. =f%
  344. 6.12
  345. (Iæm no expert in these matters, but I believe that the *FX 5,1 only
  346. applies if your printer is connected to the parallel port and the *FX
  347. 5,5 might have unwanted effects if your system is set up differently
  348. from Mickæs ù HE.)
  349. 6.12
  350. He adds that the important point to emphasise is that öthe fundamental
  351. difference between earlier Acorn systems and RISCáOSá3.1 is that, in
  352. RISCáOSá3.1, once you have issued a VDU 3 or equivalent, you are dead!
  353. You can only switch the printer on or press <esc> (if it is enabled).
  354. Page 18 of the Release Notes specifically refers to freezing when
  355. attempting to print to Énon-existentæ printers. They could have been
  356. much more helpful here in only a few words. I wonder how many man-months
  357. of time-wasting this has generated?ò
  358. 6.12
  359. AZERTY keyboard
  360. 6.12
  361. Mick Day says that, try as he might, he cannot get an AZERTY keyboard
  362. with *Country/*Language/*Keyboard France. He knows of at least one
  363. Belgian colleague who was impressed by his Archimedes but who did not
  364. buy one because he could not get the keyboard he wanted. (We have a
  365. couple of modules that get round this problem Ö for French and German,
  366. anyway Ö they are on this monthæs program disc.)
  367. 12
  368. The following are taken from extracts from recent Acorn Customer Service
  369. Newsletters which Barry Thompson has kindly forwarded:
  370. 6.12
  371. RISCáOSá3 CMOS problems
  372. 6.12
  373. There have been a number of reports of systems not powering up properly.
  374. Acorn suspect this is due to rogue CMOS RAM settings which occurred
  375. while the system was used with RISCáOSá2 and they östrongly recommend
  376. that a ÉDelete-power-onæ is performed before the RISCáOSá2 upgrade is
  377. removed. This will ensure that CMOS RAM locations now used by RISCáOSá3
  378. are set correctly.ò
  379. 6.12
  380. First Word Plus ÉWindow Definitionæ error
  381. 6.12
  382. If First Word Plus issues the message ÉWindow definition will not fitæ,
  383. a ÉDelete power onæ will cure the problem (but may well, of course,
  384. corrupt other CMOS settings)!
  385. 6.12
  386. Maximum DOS partition sizes
  387. 6.12
  388. DOSFS only supports DOS hard disc partitions up to 32Mb. If you create a
  389. larger DOS partition, it will not be possible to access it from the RISC
  390. OS desktop environment.
  391. 6.12
  392. DOS partitions larger than 32Mb can only be accessed from within the PC
  393. card or PC Soft (i.e. PC emulator) environment. Therefore, if you wish
  394. to transfer files between a large DOS partition and a RISC OS based
  395. filing system, this should be done via floppy disc(s) or another
  396. (smaller) DOS partition.
  397. 6.12
  398. Windows driver with the Acorn 486 card
  399. 6.12
  400. Following on from the last point ...
  401. 6.12
  402. The Windows Driver disc supplied with the PC card is in Acorn ADFS
  403. format. So, if you have created a DOS partition which is larger than 32
  404. Mb, it will not be possible to use the procedure outlined in the PC Card
  405. User Guide to copy the file on this disc to the DOS partition. Instead,
  406. you should use the following procedure:
  407. 6.12
  408. ù From within the RISC OS desktop, format a blank floppy disc to 720Kb
  409. DOS format.
  410. 6.12
  411. ù Click <select> on the floppy disc drive icon to open a Filer window
  412. showing the contents of the root directory of the DOS format floppy (at
  413. this stage it will be empty).
  414. 6.12
  415. ù Remove the DOS floppy and insert the Windows Driver disc. Click
  416. <select> again and copy the file ARMVGA/DRV from the Windows Driver disc
  417. to the DOS floppy.
  418. 6.12
  419. ù Start the !PC Card  application.
  420. 6.12
  421. ù Insert the DOS floppy again.
  422. 6.12
  423. ù At the DOS prompt type:
  424. 6.12
  425. copy a:*.* C:\WINDOWS\SYSTEM
  426. 6.12
  427. to copy the correct Windows driver for use with the PC card into the DOS
  428. partition.
  429. 6.12
  430. ù Load the \WINDOWS\SYSTEM.INI file into the DR DOS text editor by
  431. typing at the DR DOS prompt:
  432. 6.12
  433. C:\DRDOS\EDITOR C:\WINDOWS\ SYSTEM.INI
  434. 6.12
  435. ù Use the cursor keys to move down to the line that reads:
  436. 6.12
  437. display.drv=vga.drv
  438. 6.12
  439. and change it to read:
  440. 6.12
  441. display.drv=armvga.drv
  442. 6.12
  443. ù Save the modified file by holding down <ctrl> and pressing <K> and
  444. then <Q>. Then press <escape> to return to the DR DOS prompt.
  445. 6.12
  446. ù The new driver will be loaded the next time you start Windows, and a
  447. different hourglass shape will indicate its presence.
  448. 6.12
  449. MEMC1a or no MEMC1a
  450. 6.12
  451. The following short command can be used from within Basic to find out
  452. whether a MEMC1a chip is fitted:
  453. 6.12
  454. PRINT ?274 AND 1
  455. 6.12
  456. If the result is 1 then a MEMC1a is fitted.
  457. 6.12
  458. RISCáOSá4 Wish List (continued)
  459. 6.12
  460. The following are from Richard Burnell:
  461. 6.12
  462. Å    Shutdown ù Include an öare you sureò window after you press <ctrl-
  463. shift-F12> with an option to cancel the Shutdown, in case you press it
  464. by accident.
  465. 6.12
  466. Å    Unlimited directories ù Allow more than 77 files in a directory.
  467. 6.12
  468. Å    Filer windows ù Allow file icons to be positioned where you want them
  469. (as on an Apple Macintosh).
  470. 6.12
  471. Å    Other disc formats ù Include another extension to the filing system to
  472. allow the reading and writing of Amiga and BBC B discs.
  473. 6.12
  474. Å    Outline fonts ù Allow unfilled outlines to be printed (without having
  475. to convert them to paths in !Draw first) as you can in Windows on PCs.
  476. 6.12
  477. Å    !Draw and !Edit should warn you when you try to save files with names
  478. that already exist.
  479. 6.12
  480. Å    !Draw ù When you drag selected objects, it would be helpful to see the
  481. shape of the objects moving (as you do in Artworks), not just the
  482. bounding box.
  483. 6.12
  484. Å    !Edit ù should allow the option not to strip line numbers to be saved
  485. in the configuration.
  486. 6.12
  487. Å    Printer buffer ù Provide one that allows background printing. (Richard
  488. observes that this was advertised as a feature in the pre-release
  489. RISCáOSá3 reviews and finds it surprising that Acorn havenæt yet
  490. released öa working printer buffer moduleò.)
  491. 6.12
  492. Finally, a point from Roger King. A similar suggestion has been made
  493. before but it is worth repeating:
  494. 6.12
  495. Å    Distinguishing non-ADFS discs ù When a non-ADFS disc (e.g. a DOS disc)
  496. is mounted, the disc drive icon on the iconbar should change to a
  497. different colour. (Some form of indication like this is particularly
  498. important because the directory names in Filer windows for DOSFS, as for
  499. other öimage filing systemsò, are prefixed ADFS!) Roger receives many
  500. discs through the post and increasingly often he finds that the discs
  501. are DOS format, presumably because people buy them pre-formatted. The
  502. great snag in using DOS discs in the Acorn environment is the shorter
  503. length of filename allowed. Roger often checks and modifies files sent
  504. to him, then saves them back to the same disc with a öUò (for öUpdatedò)
  505. tacked onto the end of the filename. If the original file has a name 8
  506. characters long and is on a DOS disc this results in the original file
  507. being overwritten by the updated file since the öUò is discarded from
  508. the filename!ááA
  509. 6.12
  510.