Platform Windows XP Pro SP3
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 5 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Binary build 1004  provided by ActiveState http://www.ActiveState.com
Built Sep 3 2008 13:16:37
Check the grammar of Irish language text
Author: Kevin Scannell <email@example.com>
C:\>gram-ga.pl --aschod=cp850 --dath=none "z:\sampla.txt"
Currently checking z:\sampla.txt
4 errors shown it seems to be working fine.
Using gramadoir.sxw macro in OpenOffice.org 3.
OpenOffice.org 3, in Tools > Options... > + OpenOffice.org > Security > Macro Security... > I changed the Security level from High to Medium Level. (So that I was prompted to run the macro.)
Below are a set of steps that I found on the Internet for using 1.1.2 macros in OpenOffice.org 2.03, link as follows :
1. In the document containing the macro required: select Tools > Macros > Organize Macros > OpenOffice.org Basic...
2. In the OpenOffice.org Basic Macros dialog: select "Organizer..."
3. In the OpenOffice.org Basic Macro Organizer dialog: select the Libraries Tab
4. Then highlight the required library and select "Export..."
5. Check "Export as BASIC Library" and select "OK"
6. From the "Export as BASIC Library" dialog save in a suitable folder.
7. Close the original document and open a new document.
8. Select Tools > Macros > Organize Macros > OpenOffice.org Basic...
9. In the OpenOffice.org Basic Macros dialog: select "Organizer..."
10. In the OpenOffice.org Basic Macro Organizer dialog: select the Libraries Tab
11. Make sure that "My Macros & Dialogs" is selected (or wherever you want the new library)
12. Select "Import..."
13. In the "Import Libraries" dialog: locate the folder saved in step 6.
14. Two files (dialog.xlb and script.xlb) should be visible.
15. Highlight one and select "Open"
16. In the resulting dialog, the filename selected is at the top and the library name is in the box below with a check against it: check "Replace existing libraries" and select "OK"
17. Now repeat the previous two steps for the other .xlb file.
This all seems to work ok.
When I go Tools > Macro > Run Macro > Macro Selector> Library + MyMacros + Gramadoir > Gramadoir > Macro Name callGramadoir.
callGramadoir (is highlighted) > Run
I get the macro on screen with an error message.
BASIC runtime error.
An exception occured
Message URL seems to be an unsupported one.. OK
Contents of Macro Gramadoir
The line where I have put the * seems to be the problem?
oPathSubst = createUnoService("com.sun.star.util.PathSubstitution")
TempDir = oPathSubst.getSubstituteVariableValue("$(temp)")
tempURL=TempDir & "/" & TempFileName
param=Chr(34) & convertFromURL(myURL) & Chr(34) & " " & Chr(34) & convertFromURL(tempURL) & Chr(34)
Is this because OpenOffice.org now uses .odt files? Is it just a question of editing a couple of entries in the two batch files?
Log in to post a comment.