From: Hal Vaughan (hal@thresholddigital.com)
Date: Mon Nov 18 2002 - 21:38:19 EST
I thought as much.
I was just hoping there might be something that could be used to detect codes
that where just setting things to the way they were anyway.
Thanks.
(I did look into a Perl script -- I figured if I did that, I'd do it all out
-- by tracking all the formatting to verify that it only removed codes that
were, in actuality, not changing anything.)
Hal
On Monday 18 November 2002 08:34 pm, you wrote:
> On Mon, 2002-11-18 at 15:53, Mark Gilbert wrote:
> > -----Forwarded Message-----
> >
> > From: Hal Vaughan <hal@thresholddigital.com>
> > To: abiword-user@abisource.com
> > Subject: Removing extra codes
> > Date: 17 Nov 2002 23:50:06 -0500
> >
> > I'm using AbiWord in an unusual way. I use it to convert .doc files from
> > clients into AbiWord's XML, so I can manipulate the files with a short
> > Perl mailmerge script. (For example, I define fields with markings like:
> > [#FirstName#], then I use the Perl script to search and replace the
> > fields with the merge data.)
> >
> > Everything has been working perfectly until recently. Now I'm finding
> > extraneous formatting codes that show up in the middle of my merge
> > fields, for instance, in the sample above, I might find that </c><c
> > {other format data}> has somehow crept in between two letters in the
> > merge field. I figure this has happened because I (or my client, working
> > with a Word file) accidently highlighted half the word when making a
> > formatting change.
> >
> > These fields do not have a format change in the middle of the text. Any
> > formatting codes that have crept in seem to be repitition or restatement
> > of the currently valid formatting conditions.
> >
> > Is there any way I can use to remove these extra codes?
>
> Ummm, how about another perl script to locate those </c><c tags and
> remove them? :-)
>
> Seriously, if you manipulate abi's XML files files directly you are on
> your own.
>
> Good Luck!
>
> Martin
>
> > Thanks!
> >
> > Hal
> > -----------------------------------------------
> > To unsubscribe from this list, send a message to
> > abiword-user-request@abisource.com with the word
> > unsubscribe in the message body.
-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
This archive was generated by hypermail 2.1.4 : Mon Nov 18 2002 - 21:39:46 EST