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

  1. Hints and Tips
  2. 5.10
  3. Å   RISC-OS 3 & DOS filenames Ö DOS filenames (including extensions) are,
  4. in general, longer than the maximum length of a valid ADFS filename (10
  5. characters). It is not always possible to copy or move DOS files from
  6. hard disc partition or floppy discs directly to the ADFS.
  7. 5.10
  8. The !MultiFS utility, as supplied with the PC Emulator, solves this by
  9. allowing you to truncate the DOS filename while the translation process
  10. takes place. Another very useful option (which I often use when copying
  11. files from C programs) is to force !MultiFS to handle DOS extensions as
  12. directories (hierarchical).
  13. 5.10
  14. However, when the filetype of a DOS partition on your ADFS hard disc is
  15. set to ÉDOSdiscæ, RISC-OS 3 will display a filer window for the
  16. partition when you try to open the folder, while !MultiFS just ignores
  17. it (i.e. no :C drive on the iconbar). This is all very nice but RISC-OS
  18. 3 doesnæt offer the nice name translation options mentioned above. To
  19. enable !MultiFS to display your DOS partitions just set their filetype
  20. to Édataæ before you start !MultiFS. Remember to use the command line
  21. and not the filer menu, because the latter doesnæt allow you to change
  22. the filetype of DOSdiscs. I inserted three lines for each DOS partition
  23. in the !MultiFS !Run file to swap between ÉDOSdiscæ and Édataæ type
  24. partitions when !MultiFS is started:
  25. 5.10
  26. *Filer_CloseDir <PCe$Drive_X>
  27. 5.10
  28. *SetType <PCe$Drive_X> Data
  29. 5.10
  30. directly after setting the system variable <PCe$ Drive_X>, and
  31. 5.10
  32. *SetType <PCe$Drive_X> DOSDisc
  33. 5.10
  34. at the end of the !Run file (although the comment tells us not to do
  35. so).
  36. 5.10
  37. Unfortunately, there are some bugs in !MultiFS: When you copy to a
  38. MultiFS filer window, you must ensure name translation is not set to
  39. hierarchical, otherwise you will end up with wildcards (É?æ) in
  40. filenames. When this happens, you must use DOS itself to delete the file
  41. because RISC-OS fails to wipe those objects. Another bug appears if you
  42. shut down your system after using !MultiFS. This results in an error
  43. report and a task manager crash.á Paul Groot, Holland.
  44. 5.10
  45. Å   Sprite does not exist error Ö In answer to last monthæs query in the
  46. Help! section, the ÉSprite does not existæ error only occurs with the
  47. old version of the printer drivers. It can be solved by simply using a
  48. later version of the printer driver e.g. v2.44 or later (as per
  49. Shareware Disc 17).
  50. 5.10
  51. Progammers take note: The error is cause by programs that print sprites
  52. using their names and not their pointers.
  53. 5.10
  54. Many thanks to all those who called Ö too numerous to mention!
  55. 5.10
  56. Å   High resolution PostScript? When printing sprites to !PrinterPS, the
  57. resulting output may be lower quality than, for example, a 600 dpi
  58. LaserDirect (using !ShowPage), even when printing at 300 dpi. A solution
  59. is to change the configuration file of !PrinterPS to make it think the
  60. resolution is higher e.g. change the Épxresæ and Épyresæ parameters to
  61. 600.á J Thorn, Cardiff.
  62. 5.10
  63. Å   Problem with Font$Path Ö I recently experienced a problem with
  64. Impression 2.16 that took a long time to solve. The problem manifests
  65. itself by Impression, on starting, reporting an error ÉNot Foundæ. If
  66. you select OK to continue, the following error is reported ÉIllegal
  67. window handleæ and at this point you have to quit, because continuing
  68. results in the second error message. After about two hours of trying to
  69. find the problem Ö as the error messages are not particularly helpful Ö
  70. I discovered that the problem lay with Font$Path.
  71. 5.10
  72. I have two !Fonts directory, one with a small number of outline fonts
  73. and one with a large number. Also, my second font directory pulls in the
  74. fonts in my first directory by use of the Font$Path variable. I had
  75. moved the locations of these directories from an Apps folder to the root
  76. folder of my hard disc and this was causing the problems. The ÉNot
  77. Foundæ error is caused by Impression not finding the first directory in
  78. the Font$Path and the second error is caused by the fact that a Font
  79. Menu canæt be created, as the specified directory does not exist.
  80. Indeed, most applications that support outline fonts will also give
  81. similar error messages.
  82. 5.10
  83. I have written a small program (on this monthæs program disc) that will
  84. test the validity of Font$Path and a call to this program should be
  85. placed as the last line in any !Fonts.!Run file. A copy of FontTest will
  86. need to be copied into all !Fonts directories i.e.
  87. 5.10
  88. | !Run file for !Fonts (version 0.11, 10-May-89)
  89. 5.10
  90. |
  91. 5.10
  92. Iconsprites <Obey$Dir>.!Sprites
  93. 5.10
  94. |
  95. 5.10
  96. | Kill newer versions of Font Manager
  97. 5.10
  98. |
  99. 5.10
  100. RMKill FontManager
  101. 5.10
  102. RMKill SuperSample
  103. 5.10
  104. |
  105. 5.10
  106. RMEnsure FontManager 2.42 RMLoad <Obey$Dir>.Fonts
  107. 5.10
  108. RMEnsure SuperSample 0.04 RMLoad <Obey$Dir>.Super
  109. 5.10
  110. |
  111. 5.10
  112. SetMacro Font$Path adfs::
  113. 5.10
  114. HardDisc.$.!Fonts., <Font$Prefix>.
  115. 5.10
  116. Set Font$Prefix <Obey$Dir>
  117. 5.10
  118. |
  119. 5.10
  120. <Obey$Dir>.FontTest
  121. 5.10
  122. The program firstly checks that Font$Path exists and then reads the
  123. environment variable and checks its size. The length of this variable
  124. has to be greater than zero for it to point to a valid !Fonts directory.
  125. 5.10
  126. It then checks that every reference in Font$Path points to a valid
  127. directory. This is done by an OS_File call (line 680) which will return
  128. 2 if the filename given is a directory. If the file reference does not
  129. exist, an error will be generated and the Fonts directory !Run file
  130. needs to be modified.
  131. 5.10
  132. I have included an example of the problem on the program disc in the
  133. ÉExampleæ directory. If you click on !Fonts2 an error will be generated
  134. as the Font$Path contains a reference to a file !Fonts3 (not a direc
  135. tory). Andrew Ferguson, London.
  136. 5.10
  137. Å   ArcFS and sticky backdrops Ö I have a backdrop application on my
  138. machine with all the sprites for the various applications held in an
  139. archive in order to save disc space. In order that the sprites can be
  140. seen, in theory they should be de-archived first. Thanks to my son,
  141. Neil, I have the following set of ArcFS commands in the !Run file of my
  142. !Boot application on the hard disc.
  143. 5.10
  144. RMEnsure ArcFS 0 RMLoad System: Modules.ArcFSMod
  145. 5.10
  146. RMEnsure ArcFS 0 Error I cannot find the module
  147. 5.10
  148. OpenArchive <Boot$Dir>.SpriteLib Sprites
  149. 5.10
  150. IconSprites ArcFS#Sprites:$. !Sprites
  151. 5.10
  152. CloseArchive Sprites
  153. 5.10
  154. C Walker, Wymondham.
  155. 5.10
  156. Å   Elite Commanders Ö On this monthæs program disc, there is a program
  157. which allows you to edit Elite commander files. There are also three
  158. commander files with missions to accomplish. S Edwards, StourbridgeááA
  159. 5.10
  160. 5.10
  161.  
  162. Vector Hints Ö not in the manual!
  163. 5.10
  164. If the paths rotate the wrong way, you get...
  165. 5.10
  166. 5.10
  167. If the paths rotate the örightò way, you get...
  168. 5.10
  169. 5.10
  170. If the paths originate at the same point, you get...
  171. 5.10
  172. 5.10
  173. Remember, always have the same number of points in the paths. The
  174. interpolation in the first example was without reversing or flipping
  175. either of the paths.
  176. 5.10
  177. 5.10
  178. The paper margins are shown on the main window and the printer setup
  179. menu is used to deselect those pages you donæt need.
  180. 5.10
  181. The Eppler profile was öplottedò on an A0 page. The paper margins shown
  182. are A4 size.
  183. 5.10
  184.  
  185. 5.10
  186. 5.10
  187.  
  188.  
  189.  
  190. Impression Hints & Tips
  191. 5.10
  192. Å   Mailmerge in Impression: So it seems that there are no tips like old
  193. tips (Archive 3.9 p20). I claim that Charles Moir learned the trick he
  194. uses from me! Just one point to add, though. You have a choice between
  195. linking frames on a master page and not linking. If you link, the text
  196. flows through the frames on a page and then on to the first frame of the
  197. next page. This is probably convenient for small mailing lists without
  198. use of a database. If you do not link frames, text flows from page to
  199. page within the homologous frame. I recently helped to run a biggish
  200. scientific meeting which involved mail shots to about a thousand
  201. potential delegates and a full feedback of booking information to about
  202. 450. The database resided on a Mac, the most widely-used computer in the
  203. lab, and an output file was generated in <Tab> separated format, ported
  204. to a DOS disk, then to PipeDream. Individual columns (fields) or groups
  205. of columns were then extracted, linefeeds replaced by
  206. 5.10
  207. s, and the fields dropped into the right frames of the first page.
  208. Perfect registration was retained: the last personæs details did belong
  209. to him! All I had to do was to edit some of the less wise entries in the
  210. öcommentsò field of the database, which might have been taken as casting
  211. aspersions on the intelligence, rationality and financial or moral
  212. rectitude of some the participants! This method obviates the need to
  213. generate a report format for your database. You just extract the data
  214. you want for each of your frames and drop it in. Some fields get used
  215. twice, such as parts of names, once for the address (lined up with an
  216. envelope window), and once for the Dear... line.
  217. 5.10
  218. We also produced sheets of individualised meal tickets. The purpose here
  219. was to ensure that none of the three eating places got all the dele
  220. gates. We operated a öswap-shopò but needed to know who was swopping
  221. with whom. Named tickets solved this. In this case, I extracted the
  222. names once and dropped then into the first (unlinked) frame. To make a
  223. copy in the next frame (╫450), <Ctrl-T> to mark all the text in the
  224. frame, 450 pages deep, <Ctrl-C> to copy it and then <Ctrl-V> to paste it
  225. into each frame. The printer who perforated the sheets was quite
  226. impressed by the product: he had never seen the like. He certainly had
  227. no idea how easy it was (save for feeding 450 sheets of card into the
  228. laser printer).á Mike Hobart, Cambridge.
  229. 5.10
  230. Image setting Ö Another firm which does image setting is Stylus
  231. Publications Bureau of 98 Wilberforce Road, Finsbury Park, London N4
  232. 2SR. They also do colour slides and CibaChrom prints and overheads from
  233. Draw and Impression. However, they covered so much of their literature
  234. with gold leaf that I wonder if they are still trading!á Mike Hobart,
  235. Cambridge.
  236. 5.10
  237.  
  238.  
  239.