Results 1 to 10 of 10
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word to WordPerfect - reveal codes (Word97/SR2 and on)

    I'm opening a Word document and saving it in WordPerfect format.

    I open the saved document in WordPerfect and see more codes that you can shake a stick at.

    I know that Word and WordPerfect have different philosophies on the structure of the document, but wonder .....



    Has anyone found a way to reduce the superfluous codes?



    It seems as if every facet of every paragraph or character style is set out in reveal codes, reminiscent of the way a Word recorded macro includes every property just-in-case.


    I'm considering (shudder!) writing Word macros that will trawl through a WordPerfect document and eliminate superfluous codes based on a pre-determined set of rules. A simple example would read "replace any Not-code/code combination with nothing", so that <font color=red>(bold)this (/bold)(bold)that(/bold)</font color=red> would be reduced to <font color=448800>(bold)this that(/bold)</font color=448800>.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    Can you tell whether the conversion itself is at fault or whether it is faithfully reproducing some hidden inefficiency in the way your document is encoded? If it's the latter, perhaps there is a way to "pre-process" the Word document so that it converts more cleanly. Perhaps this would involve alternating between character styles and direct formatting? Just a thought.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    You are right on the money - right now I can't determine. I got a phone call yesterday and experimented last night.

    I do have an application that cleans up any document read into Word, so if it is cruddy formatting etc I can deal with that. I include conversion of local emphasis (Bold, Italic, Underline combinations) to character styles.

    Howevber, I suspect in the long run it's going to be shown that because Word/Wp are different beasts, and WP seems to rely heavily on what we would call "local formatting", as evidenced by the codes in Reveal Codes, that Word has to shrug its shoulders and dump out the explicit formatting commands for each paragraph. That is, Word has to take everything it can say about the paragraph formatting and dump it as a series of codes.

    The worst I might be able to say about Word is that it didn't check to see if consecutive paragraphs were the same format, and hence the "turn off" codes at the end of the first paragraph and the "turn on" codes at the start of the second could be elided.

    I guess if you're writing a conversion package to wean your client away from your own product, optimization doesn't make a lot of sense; I can understand that.


    If this beomes a big job, I'll maybe do my own conversion, tokenising those characteristics that are necessary and migrating the contents as a TEXT file with text tokens, and have a back-end in WP to convert the tokens back to codes.

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Winston-Salem, North Carolina, USA
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    Have you thought about maybe taking the document through RTF first? In other words, save it as an RTF file from Word, then open it into Word Perfect. I don't work in Word Perfect, and am not accustomed to doing conversions in this direction, but I know that sometimes working from Word Perfect to Word, that step can be helpful.

    Lee Morgan

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    > Have you thought about maybe taking the document through RTF first?

    Yes, but don't tell my client, who is doing it for their client who is doing it for their client who is paying.

    It's a job I think I should have got in the first place, but it was assigned elsewhere, and then I was recommended. Happens all the time.

    I've looked at a fair number of docs; in this case I'm not even sure that the WP codes need to be cleaned up - I suspect one client in the feeding chain thinks they should be cleaned up, but noone seems to know if anyone plans to edit the documents after conversion.


    I'm called because WP codes are flooding the scene, after saving four documents I've never seen, from Word (2000?) to Wp2002.

    My original query (which i can't see from here) was aimed more at wondering if anyone on this board had played with WP codes. I know that this is MSOffice expertise, but I figured if someone had already cracked the nut (as I found when I needed to determine what version of WP by reading the document in binary), then I'd make use of and/or build on or contribute to that knowledge.


    Conversion projects never seem to be as the end-user presents them. Documents may have scads of images that aren't really necessary, or else the documents are going to court, and hence (Ontario) have to be in Courier 10 pt, preferably printed with an old ribbon.

    I had one request, three years ago, to convert hundreds of WP51 macros to Word macros. I didn't get the job because I pointed out that since their WP51 macros were really shortcut keys to text, all they really needed to do was load them into the AutoCorrect table. A quick and dirty macro and I was out of work again. (sigh!) Did I tell you that I was a slow learner? (grin)

    Rest assured, if I do end up editing WP codes from within Word97, I'll brag about it here.



    I have also considered a fudge to get around the details-of-every-paragraph scenario - I'd glue all similar consecutive paragraphs together, replacing the paragraph mark with a token, then Word would dump out one humungous paragraph with embedded tokens, and one set of wp codes at the head and a second set at the rear. A backend processor in WP would convert my tokens to hard returns, and we'd all go merrily whistling on our way.

  6. #6
    3 Star Lounger
    Join Date
    Jun 2001
    Location
    Los Angeles, California, USA
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    Guess I missed a bunch of posts. Sorry to hear you are having problems with WP coding.

    The difference, as I see it, between how Word and WordPerfect work is that Word is a pile of building blocks (char, para, section) and WP flows like a river from beginning to end. In WordPerfect there will always be a [begin] and [end] code, or a [self-contained] item, such as a header or footer. Reveal Codes shows you EVERYTHING that you have to dig for in Word, in one place. If you have a project like this in the future, you may want to look at a commercial conversion package called DocXchange: http://www.microsystems.com/docxchange.htm

    The Reveal Codes window can appear cluttered to the untrained eye. One of the (few!) problems with WordPerfect is that the end-user needs a lot of training/skill to elegantly format documents (unlike Word?). So, you

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    >Guess I missed a bunch of posts. Sorry to hear you are having problems with WP coding.

    No you didn't, and no, I'm not (grin!), but someone along the line may.

    I've done another conversion since then (WP51 to Word) for a client who just wanted files opened WP51 and saved Word without {i]any[/i] cleanup, as in "don't bother removing the {private} field codes". They don't plan on any template strategy, so quite quickly they'll either (a) get floored by different definitions of Normal style in each user's Normal.dot or ([img]/forums/images/smilies/cool.gif[/img] never look at the documents again.

    ([img]/forums/images/smilies/cool.gif[/img] seems the more likely right now.

  8. #8
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Winston-Salem, North Carolina, USA
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    Van -

    You mentioned spending a lot of time tweaking footnotes that won't behave in Word. Do you know my favorite three things to check in fixing footnotes? 1) If you're in Word 2000, check Tools/Options/Compatibility to make sure it is set for Word 2000. If not, change it. That alone fixes lots of wandering footnote problems. 2) Check the margin settings to make sure that the top and bottom margin settings and the header and footer settings are not the same. The header and footer settings MUST be less than the top and bottom margin settings. If they're they same, footnotes will frequently roll to the wrong page. And they are frequently set for the same thing in conversion documents. 3) Make sure the footnote text is in the footnote text style and the footnote references are in the footnote reference style. A lot of times in conversion documents, you'll see footnotes in the Normal style. This, too will cause footnotes to roll to the wrong page.

    Lee Morgan

  9. #9
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    Gee, too bad you aren't going the other way. I could give you a lift into town. WP to Word I can help with.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  10. #10
    3 Star Lounger
    Join Date
    Jun 2001
    Location
    Los Angeles, California, USA
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word to WordPerfect - reveal codes (Word97/SR2 and on)

    Yes, thanks. I have been following these guidelines q118586 and your item 2) is not included there. This will be helpful.

    Thanks again. Van.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •