-Lisa- Posted October 8, 2010 Share Posted October 8, 2010 Does anyone have a rule that returns a different font and front size for the "@" symbol in an Email field? Thanks in advance! Link to comment Share on other sites More sharing options...
Dan Korn Posted October 12, 2010 Share Posted October 12, 2010 Something like this: return ReplaceSubstring(Field("email"), '@', '<span font="Arial" pointsize=20>@</span>');More about the <span> tag Link to comment Share on other sites More sharing options...
esmith Posted October 12, 2010 Share Posted October 12, 2010 I always forget about the span tag, but in the case of substituting a font for a character(s) what is the advantage to using a span tag (<span></span>) instead of just surrounding the character(s) with a font tag (<f></f>) instead? Of course, I can see where the span tag might be a better solution when using tags that don't have a closing tag (<z>, <setwidth>) versus having to trail the changed string with another tag to revert the attribute. Which begs the question, why don't these tags have associated closing tags? Link to comment Share on other sites More sharing options...
Dan Korn Posted October 12, 2010 Share Posted October 12, 2010 I always forget about the span tag, but in the case of substituting a font for a character(s) what is the advantage to using a span tag (<span></span>) instead of just surrounding the character(s) with a font tag (<f></f>) instead? Of course, I can see where the span tag might be a better solution when using tags that don't have a closing tag (<z>, <setwidth>) versus having to trail the changed string with another tag to revert the attribute. Yes, that's exactly it. The rule above works without any knowledge of what running point size it has to revert to. Which begs the question, why don't these tags have associated closing tags? Because FusionPro's tagging is (loosely) based on HTML, which has ending bold, underline, and italic tags, but doesn't have an ending point size tag. (Actually, HTML doesn't really have true point size tags at all, although CSS offers more fine-grain control.) And probably because the people who designed FusionPro's tagged markup to handle pre-generated tagged markup files didn't foresee every possible use case involving tagging generated via JavaScript rules. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.