kristina3909 Posted June 1, 2009 Posted June 1, 2009 I was wondering how I could get help with a rule to superscript a registered mark that is passed through the data. Thanks!
Alex Marshall Posted June 1, 2009 Posted June 1, 2009 For the trademark symbol, one option is to use the entities defined in the FusionPro Tags Reference Guide, specifically the ™ entity. If you're doing this in your flat (delimited) input file, you may need to check the "Treat field values as tagged text" box on the Flat File step of the Data Source Wizard. You can also return the entity directly from a rule, like so: return "™"; Make sure to check "Treat returned strings as tagged text." You could name the rule "Trademark" and insert it in the Text Editor wherever needed. Another option is to use either the Character Map utility on Windows or the Character Palette on Mac to locate the trademark symbol and insert it directly into the Text Editor. (Unlike in external files, any text entered into the Variable Text Editor dialog in FusionPro will automatically be converted to the proper encoding when moving your job across platforms.) The Service Mark (SM) symbol is a little trickier; that's a non-ASCII Unicode character. As such, it's not supported by FusionPro, and is not found in all fonts either. However, you may be able to find a Symbol font which contains it in the ASCII range (under 255), and use a numeric entity such as ÿ (or whatever the ASCII value is). The ASCII value may be specific to the font and the platform encoding. Your best bet for the Service Mark symbol is probably to fake it using the letters "SM" in superscript. This should work in any font and platform.
Dan Korn Posted June 1, 2009 Posted June 1, 2009 The Service Mark (SM) symbol is a little trickier; that's a non-ASCII Unicode character. As such, it's not supported by FusionPro, and is not found in all fonts either. Just to clarify, as of FusionPro 5.8, Unicode is indeed supported, and you can use the entity ℠ to output the Service Mark character (in a font which includes that glyph).
chads Posted July 20, 2009 Posted July 20, 2009 To take this a step further we wanted to have a rule where we could pass , ®, or © in the data after text and apply a superscript after the data was passed in. var products = (Field("Products")); products = products.replace(/(\(R\))/g,"<superscript>®</superscript>"); products = products.replace(/(\(TM\))/g,"<superscript>™</superscript>"); products = products.replace(/(\(C\))/g,"<superscript>©</superscript>"); return Rule("Rule_Products") + products;
Recommended Posts
Archived
This topic is now archived and is closed to further replies.