yep, that makes sense, thanks. :-)

will

----

William H Bowen
Marketing Communications Manager
ALSTOM EAI Corporation

Justin Balog wrote:

Here is a quick "pseudo code" thought, off the cuff so to speak. Not sure
how you handle the presentation of you text, but this might get you started?

Read Text
        Find occurrence of product
                if not in productFoundList
                        format
                        add tm
                        add to prouctFoundList
                        return var
                else
                        format
                        return var
                end
/Read

Does that make sense? Or is this the obvious thing that misses the point?

Justin
                        

-----Original Message-----
From: William H Bowen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:45 PM
To: [EMAIL PROTECTED]
Subject: [CFCDev] creating a cfc to format text


well, in the infinite wisdom of Senior MarComm managers I have been assigned the following tasks:


"write code that automatically highlights (with bold/italic formatting) all of our product names"

easy enough sez I, so I modified a UDF I found at cflib.org, no problems...

now, sez they, "add an ™ or ® depending on product line."

again, easy enough. Transfered it all to cfc on our external site, works
like a charm.

now here comes the tricky part...

sez they, "bold/italic or bold by product line, ™ and ® only on
the first instance of a product in body copy;

so:

<body copy start>
1st instance <b>e-terra</b><i>assetmanager</i>(tm)
2nd instance <b>e-terra</b><i>assetmanager</i>  --  no (tm)
1st instance <b>e-terra</b><i>marketmanager</i>(tm)
1st instance <b>BiTRONICS</b>(r)
2nd instance <b>BiTRONICS</b> -- no (r)

and so on..."

Is this possible? If so, how? do I need to check for the first instance of
each productname?




--


will

----

William H Bowen
Marketing Communications Manager
ALSTOM EAI Corporation


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to