1| !Run file for !Antiword
2| (C) Adri van Os 1998-2005
3|
4if "<System$Path>" = "" then Error 0 System resources cannot be found
5if "<Font$Path>" = "" then Error 0 There are no fonts available
6|
7Set      Antiword$Dir  <Obey$Dir>
8IconSprites <Antiword$Dir>.!Sprites
9|
10SetMacro Antiword$Path Choices:Antiword.,<Antiword$Dir>.,<Wimp$ScrapDir>.Antiword.
11|
12SetMacro Antiword$ChoicesFile Antiword:Choices
13if "<Choices$Write>" <> "" then Set Antiword$ChoicesSave <Choices$Write>.Antiword.Choices else Set Antiword$ChoicesSave <Antiword$Dir>.Choices
14|
15SetMacro Antiword$FontNamesFile Antiword:FontNames
16if "<Choices$Write>" <> "" then Set Antiword$FontNamesSave <Choices$Write>.Antiword.FontNames else Set Antiword$FontNamesSave <Antiword$Dir>.FontNames
17|
18Set Antiword$Latin1 <Antiword$Dir>.Resources.Unicode01
19Set Antiword$Latin9 <Antiword$Dir>.Resources.Unicode15
20|
21RMEnsure UtilityModule 3.10 Error You need RISC OS 3.10 or later
22RMEnsure UtilityModule 5.00 RMEnsure CallASWI 0.03 RMLoad System:Modules.CallASWI
23RMEnsure UtilityModule 5.00 RMEnsure CallASWI 0.03 Error You need CallASWI 0.03 or later
24RMEnsure FPEmulator 4.03 RMLoad System:Modules.FPEmulator
25RMEnsure FPEmulator 4.03 Error You need FPEmulator 4.03 or later
26RMEnsure SharedCLibrary 5.17 RMLoad System:Modules.CLib
27RMEnsure SharedCLibrary 5.34 Error You need SharedCLibrary 5.34 or later
28RMEnsure DrawFile 1.43 RMLoad System:Modules.DrawFile
29RMEnsure DrawFile 1.43 Error You need DrawFile 1.43 or later
30|
31if "<File$Type_AE6>" = "" then Set File$Type_AE6 MSWord
32|
33WimpSlot -min 360K -max 360K
34Run <Antiword$Dir>.!RunImage %*0