Mary,

I don't know if you are working on a Mac or a PC, but this is a message that I 
posted for another user that had the same problem with special characters not 
capitalizing. I hope it helps you.

.......
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 4:48 AM
To: FusionPro Users Forum
Subject: [fusionpro] Special characters can't be formatted

Hi!
I have a problem with changing a field's content to uppercase using the
tag <uppercase>. It seems to work fine as long as there are no special 
characters in
the fields' value, but as soon as there is a special character - for
example the danish sign "ΓΈ" - it doesn't work. The special character is
always printed out as a regular lower-case letter, but the rest is printed
out in uppercase.

Any ideas on why this is happening and most interesting of all - how I can
work around it? I need a solution to this! Thanks!
 




+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
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