looking for compatibility tester: Wd2XML

C

ctipper

I wonder if anyone with Word 2004 installed can help me? I have a
decent sized Word macro that is absolutely critical to publication of
my personal website
http://www.e-conomist.fsnet.co.uk/perspective-readme.html
This macro creates XML from a structured Word document. I know it works
in Word 97 on Windows, but I do not currently have a Mac to test it on.
I am looking to jump ship. :)

It would significantly help my peace-of-mind to know that it was
compatible with Word 2004. Various information on the net suggests that
it is, but it would really help to have confirmation from a real Mac
user. Any feedback on installation issues would be helpful. It should
be enough to open the sample document 'perspective.doc' and run
Wd2XML.main from the Tools|Macros|Run command.

All the best,
Christopher
 
M

matt neuburg

ctipper said:
I wonder if anyone with Word 2004 installed can help me? I have a
decent sized Word macro that is absolutely critical to publication of
my personal website
http://www.e-conomist.fsnet.co.uk/perspective-readme.html
This macro creates XML from a structured Word document. I know it works
in Word 97 on Windows, but I do not currently have a Mac to test it on.
I am looking to jump ship. :)

It would significantly help my peace-of-mind to know that it was
compatible with Word 2004. Various information on the net suggests that
it is, but it would really help to have confirmation from a real Mac
user. Any feedback on installation issues would be helpful. It should
be enough to open the sample document 'perspective.doc' and run
Wd2XML.main from the Tools|Macros|Run command.

Well, for one thing, your characters() routine is not going to work
because the encodings are different. What you've hard-coded as ½,
for example (which appears twice in the table - another bug?), is the
Apple symbol on Mac. m.
 
C

ctipper

Well I removed the duplicate and uploaded. As for the characters, this
is the sort of thing I can fix. What I want to know is does it run?
You'll understand that I can't test this myself as I don't have access
to a Mac.
 
J

John McGhie [MVP - Word and Word Macintosh]

Hi Christopher:

1) Your instructions need updating. You cannot " double-click
perspective.dot in the working directory " on the Mac. The result will be a
Template, not a document attached to a template.

On the Mac, the template MUST be in the user's "My Templates" folder, or
they will be unable to create a document from it.

2) Your macro gives a clean compile in Word 2004 on the Mac.
Congratulations: that's your first big hurdle :)

3) The macro needs to test that the user's document is editable. The
document I chose to test it with happened to be protected for editing, I was
unaware of that and your macro blew up on an unhandled error.

4) Finding the "main" procedure in a long list of macros is a pain. You
may want to set all of your subroutines "Private" so they disappear from the
list.

5) Other than that, your macro runs successfully to conclusion on a Mac.

6) I would have thought the macro should recognise the default Word
headings 1 to 9. It doesn't seem to do so. It treats them as inline bold.

Just for my interest, why are you doing this? Word 2003 will write out to
XML now. Word's default file format on both Mac and PC will be XML in the
next release of Office, and you can use any DTD you like with the next
versions.

Hope this helps


I wonder if anyone with Word 2004 installed can help me? I have a
decent sized Word macro that is absolutely critical to publication of
my personal website
http://www.e-conomist.fsnet.co.uk/perspective-readme.html
This macro creates XML from a structured Word document. I know it works
in Word 97 on Windows, but I do not currently have a Mac to test it on.
I am looking to jump ship. :)

It would significantly help my peace-of-mind to know that it was
compatible with Word 2004. Various information on the net suggests that
it is, but it would really help to have confirmation from a real Mac
user. Any feedback on installation issues would be helpful. It should
be enough to open the sample document 'perspective.doc' and run
Wd2XML.main from the Tools|Macros|Run command.

All the best,
Christopher

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410
 
P

Paul Berkowitz

1) Your instructions need updating. You cannot " double-click
perspective.dot in the working directory " on the Mac. The result will be a
Template, not a document attached to a template.

On the Mac, the template MUST be in the user's "My Templates" folder, or
they will be unable to create a document from it.

And it can't be double-clicked there, either. Again, that will open the
template, not make a document from it. But the templates have to be in "My
Templates" so they can be found in the "Project Gallery" (File menu). When
you select the template there in My Templates list item, then click Open
button, you get a document made from the template.

You need to include those instructions.

(The Mac also has another way of opening new documents from docs saved as
"Stationery" double-clicked, which is presumably why Mac Office went a
different route with templates, though we keep agitating to get that
changed.)

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
C

ctipper

Many thanks all. I like the input on making it compatible.

As for the raison d'etre, well I use Word 97, and it doesn't write XML.
Also I don't believe it is entirely redundant on Word 2003. First off
you get control over semantics (a Title is actually the title of the
document and not just another piece of text), and secondly my
requirements are highly specific--this is what I require for the
articles I write, nothing more, nothing less. At least my markup is
cleaner than Word XML, and the stylesheets correspondingly simpler to
write and maintain.

As for the Headings, well this is deliberate. If you look at the rest
of the site, I am not writing technical documentation. Headings only
make sense if you are writing a manual, and journalists hardly ever use
them (though I wouldn't presume to call myself one). There is a
health-warning to this effect, and it's open source folks, so you are
free to modify it to your needs.

Hope that helps,
Christopher
 
C

ctipper

Many thanks for all your feedback. John's tips on compatibility were
particularly helpful.

As for the heading styles, well I am not really interested in producing
technical documentation. Most journalists don't using headings much
(although I wouldn't presume to call myself one) and even bullet points
are seen as a sign of sloppy thinking by professional writers. This
feature is there however, should you need it. Plus it is easy to add
more heading styles. Hey it's open source folks!

As for why anyone would write this macro, well I still use Word 97, and
as you know XML is not supported in that version. It is also not
entirely redundant on later versions of Office. It is easier to write
and maintain the XSL stylesheets when you use a custom DTD. You also
retain the semantic structure of the document. I know that a Title will
be mapped to the <title> element, rather than just another piece of
text. I also don't trust Microsoft not to break my code some point down
the line. And also their DTD wasn't available when I had the idea back
in 2001. You will also note that several companies are making a living
with exactly this sort of thing. I chose to make it open source to
provide myself with some discipline. Most people don't even know they
need it, and I haven't got time to try and sell it to them. It beats
the pants off writing XML in long-hand from my point of view, and now I
know it works on the Mac my next computer is going to be an iMac G5.
Mac Word 4.0 was where it all started for me anyway, back in 1989. :)
 
J

John McGhie [MVP - Word and Word Macintosh]

Hi:

As for the heading styles, well I am not really interested in producing
technical documentation. Most journalists don't using headings much

Ummm... At least one per story :)
(although I wouldn't presume to call myself one)

I would :) I am one. I was a metropolitan-graded journalist for ten years
before I became a technical writer (shows how old I am... In my day, there
were "metropolitan" and "country" grades.)
and even bullet points
are seen as a sign of sloppy thinking by professional writers.

Not by "this" writer, who has been paid for it daily for the past 30 years.
Despite the (obviously wrong!!) opinions of some of my editors, *I* consider
myself "professional" :) The thing I look for is whether they are used
"appropriately". When I am hiring writers, the first thing I do is ask them
to "write" something. With a pencil and paper. If it doesn't contain at
least one bulleted list, their application probably won't proceed much
further (yeah, I pick a subject that almost guarantees that they must create
at least one un-ordered vertical list and one ordered (numbered) list).
As for why anyone would write this macro, well I still use Word 97, and
as you know XML is not supported in that version.

That's true. But if you want to make some money, I would put my effort into
re-expressing what you have as an XML Transform for Office 2003/Office 12.

I take your point that you would need to buy the Enterprise edition of
Office 2003 to enable you to do this (the lower versions do not have the XML
developer tools). But I am convinced there will be a huge demand for tools
such as that and that demand will hit like a hammer immediately Office 12 is
released. If your tool is tested and debugged by then, you'll make a mint!
I also don't trust Microsoft not to break my code some point down
the line.

True, but XML is a W3C RFP, so they can't easily break that!
And also their DTD wasn't available when I had the idea back
in 2001.

Not even to Microsoft :) They hadn't written it yet :)
You will also note that several companies are making a living
with exactly this sort of thing.

True. I would join them if I were you...
the pants off writing XML in long-hand from my point of view, and now I
know it works on the Mac my next computer is going to be an iMac G5.
Mac Word 4.0 was where it all started for me anyway, back in 1989. :)

I think that may be a poor strategic move. I am waiting for the MacIntel.
I am certain that Microsoft and Apple will try to ensure that everything
made for the latest Macs will "work" on the Motorola processors. But if it
comes to the question of dropping a feature on the older version or spending
a large amount of money: well... both companies need to give us a reason to
buy the new product.

So while I am sure that in the first version, compatibility between the two
platforms will be good, I would not bet my future on it remaining hat way if
I were you. I also suspect that the system demands of Office 12 will be
higher than Office 2004, and many people find Office 2004 too slow on an
iMac. Office 12 appears to be a seriously much nicer product to use, and
more powerful in many ways. But I suspect that all this added functionality
will require a bit more power to drive it.

You only have to wait six months to get a MacIntel, so I would urge you to
wait... I am...

Cheers

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top