dreimer Posted November 27, 2012 Share Posted November 27, 2012 I found the symbols I would like to use in rules in Fusion Pro. Is this possible to do? Here is my code. The U+25B2 is an up arrow and the U+25BC is a down arrow. if (Right(Field("Locus"),Len("A")) == "A") { return "<span>" + RawText("U+25BC") + "</span>"; } if (Right(Field("Locus"),Len("B")) == "B") { return "<span>" + RawText("U+25B2") + "</span>"; } return ""; Thanks for any help. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted November 27, 2012 Share Posted November 27, 2012 (edited) You need to use either <unicode> tags or numeric entities. So any of these will work: switch (Field("Locus")[0]) { case "A": return "<unicode>25BC</unicode>"; case "B": return "<unicode>25B2</unicode>"; default: return ""; }Or: switch (Field("Name")[0]) { case "A": return "▼"; case "B": return "▲"; default: return ""; } Or, with decimal values instead of hexadecimal: switch (Field("Locus")[0]) { case "A": return "&[size=3]#[/size]9660;"; case "B": return "&[size=3]#[/size]9650;"; default: return ""; } The latter two cases require the "Treat returned strings as tagged text" box to be checked to parse the entities. But it's not required in the first case, as <unicode> tags are always parsed, even in non-tagged text. You could also create a Formatted Text Resource, and enter the characters in there from the keyboard, or by using the Character Map on Windows or the Character Palette on Mac. Edited November 27, 2012 by Dan Korn Added hexadecimal entity example Quote Link to comment Share on other sites More sharing options...
dreimer Posted November 27, 2012 Author Share Posted November 27, 2012 Perfect Dan, works great, thanks!! Quote Link to comment Share on other sites More sharing options...
dreimer Posted November 28, 2012 Author Share Posted November 28, 2012 OK, so know I have another issue. I was able to get the arrows to work correctly on my PC but I need to also create a 3 of 9 barcode and for some reason the IDAutomation font is not there for this type of barcode, using the FP built in rule. I even re-installed Fusion Pro. So, I tried to do this job on my MAC and I get the opposite, the font is available for the 3 of 9 barcode and it works correctly with the built in rule, but I can't get any of the three codes Dan posted to create the arrows. Anyone have any ideas??? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted November 28, 2012 Share Posted November 28, 2012 OK, so know I have another issue. I was able to get the arrows to work correctly on my PC but I need to also create a 3 of 9 barcode and for some reason the IDAutomation font is not there for this type of barcode, using the FP built in rule. I even re-installed Fusion Pro. The font should be there in Fonts in the Control Panel. You may need to restart the machine and then load fonts again to register it. So, I tried to do this job on my MAC and I get the opposite, the font is available for the 3 of 9 barcode and it works correctly with the built in rule, but I can't get any of the three codes Dan posted to create the arrows. Anyone have any ideas??? You're probably using a different font which doesn't have glyphs for those Unicode characters. Check the composition log (.msg) file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.