Lisa,

I think that this is another situation where Mac and PC speak a different 
language. I just created this function and it works on my PC, but not quite on 
my Mac...

function foreignUpper(str)  {
var strOut = "";
var strLength = Len(str);

for( var x = 1; x <= strLength; x++)
{
    var strTest = Mid(str, x, 1);
    if ((Asc(strTest) > 224) && (Asc(strTest) < 254)) {
        var newStr = Asc(strTest) - 32;
        strOut += Chr(newStr);
    }
    else  {
        strOut += ToUpper(strTest);
    }
}
return strOut;
}


Basically what I'm doing is sending a string of characters to a function. Then 
the function tests and converts it one character at a time. If the ASC range of 
a character falls within the values of 224 and 254, then that specific 
character is a lowercase accented foreign character. If it is, then subtract 32 
from that ASC value and append the CHR equivalent of that new character to my 
output string. If not, then use the FP function "ToUpper" to switch the case of 
that character. The result on my PC gives me the correct values for upper and 
lower cases foreign characters with accents - subtracting 32 given the 
uppercase value, and adding 32 gives the lowercase equivalent.

The problem is that I don't have any printouts of the Mac Roman character 
"ASCII" values for the 255 characters, so I don't know the relationship that 
occurs to add or subtract the correct amount. To be truthful, I don't even know 
if Macs have the same ASCII-255 character range with any similar relationship 
at all, so when I tried this on my Mac, the resulting output was not what I 
expected. The "English" lowercase characters came out fine, but the foreign 
characters did not. Also there are some entities on the Mac that will not print 
out at all through FusionPro. Printable has listed them in one of their manuals 
around page 74 "Entities" - I think it's their one on Tagging.

The best suggestion that I can give you is to start with the above function, 
then maybe look at the rules functions that Printable has in their program for 
"ToUpper" or "ToLower" and see if you can find the relational pattern on the 
Mac.

Hope this helps you out. Good Luck.

---
David A. Sweet
Web Designer/Graphic Designer
HKM Direct Market Communications
A DirectConnectGroup Company

-----Original Message-----
From: Lisa Brooks [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2008 1:01 PM
To: FusionPro Users Forum
Subject: [fusionpro] RE: Returning an accent mark using all caps rule

Hi David,

I'm actually working on a Mac but I try this....it didn't work.  If I do
this, it returns a regular capital "E" with no accent mark.  I also tried
using the entity "&Eacute;" and that didn't work either - it also returns
the capital "E" with no accent mark.

Lisa Brooks
Brooks Litho & Digital Group

-----Original Message-----
From: David Galvan [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2008 12:46 PM
To: FusionPro Users Forum
Subject: [fusionpro] RE: Returning an accent mark using all caps rule

If you're using a windows platform you can use ALT0201
Or copy and paste: É  

-----Original Message-----
From: Lisa Brooks [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2008 11:51 AM
To: FusionPro Users Forum
Subject: [fusionpro] Returning an accent mark using all caps rule

Hi all,

I am working on a business card in which the name needs to appear in all
caps.  I have created an All Caps rule however one of the names is José.  It
is listed as "José" in the data file however when I compose the record using
the All Caps rule, the rule returns "JOSé".  For some reason it will not
return the upper case value of the "é" character.

Has anyone come across this or know how to get around it?

Thanks!

Lisa Brooks
Brooks Litho & Digital Group



+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!


Variable text on a curve and soft drop-shadows for variable text


LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade

New licenses available for $599 each at:
http://fusionpro.printable.com/store/

All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to