Dan, Thanks for the explanation, that helped. The string does make more sense viewing it using the Validate button as I can see where "smallcaps" is being turned off and on. As far as the "work around" it worked perfectly. Thanks again.
Chris Cisneros Spectrographics [EMAIL PROTECTED] -----Original Message----- From: Dan Korn [mailto:[EMAIL PROTECTED] Sent: Wed 2/20/2008 1:42 PM To: FusionPro Users Forum Subject: [fusionpro] RE: FW: RE: SuperScript and SmallCaps Hi Chris, The reason I'm using a closing tag at the beginning and an opening tag at the end is because the entire result is going to be put in small caps. The last line of the rule is still the same as in your original post: return '<smallcap>'+SupVariable+'</smallcap>'; So, what the replacement is doing is turning off the small cap style that's already in effect, outputting some superscript, and then turning the small caps back on. If you look at the entire string that gets returned from the rule (using the Validate button), you can see that everything is properly nested with opening and closing tags. As for the numbers being inconsistent in the small caps style, that might be a different (although possibly related) bug. To be honest, I'm not sure how many different combinations of styles get routinely tested with small caps. (The matrix of combinations of all the various styles you can put text in with tags is staggering.) We're in a bit of a dusty corner here. I'm also not sure what the "right" way of handling numbers in small caps mode should be, that is, whether they should match the height of upper- or lower-case letters. It might depend on the font. But either way, it should be consistent. In any case, the workaround is just to do another replacement, like so: SupVariable = SupVariable.replace( /(\d+)/gi, "</smallcap>$1<smallcap>"); SupVariable = SupVariable.replace(" ", " "); Dan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 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 -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 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 --
