Go Back   MarcomCentral (PTI) and FusionPro User Communities > Search Forums

Notices

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: step
Forum: Formatting Text August 16th, 2016, 12:39 PM
Replies: 27
Views: 22,089
Posted By step
Re: Superscript tag inside ReplaceSubstring rule

It's kind of difficult to say what's going on from just those 4 lines of code. I will remind you, though:


Again, I'm not really sure what you're saying. You can adjust the size and offset of...
Forum: Formatting Text August 16th, 2016, 08:02 AM
Replies: 27
Views: 22,089
Posted By step
Re: Superscript tag inside ReplaceSubstring rule

Maybe you could post the template and data that you're working with so that we could take a closer look?

My guess is that your template is converting those special characters to their HTML...
Forum: Formatting Text August 15th, 2016, 05:36 PM
Replies: 27
Views: 22,089
Posted By step
Re: Superscript tag inside ReplaceSubstring rule

I converted the '<variable name="...">' tags to the actual strings that they're supposed to return before replacing the symbols in case a field or rule being returned in the text frame contains one...
Forum: Formatting Text August 15th, 2016, 03:09 PM
Replies: 27
Views: 22,089
Posted By step
Re: Superscript tag inside ReplaceSubstring rule

var chars = {
// Find: Replace:
'\\^': '<superscript>^</superscript>',
'\\+': '<superscript>+</superscript>',
'<<first>>': Field("First Name"),
}

var text =...
Forum: Formatting Text August 15th, 2016, 02:01 PM
Replies: 27
Views: 22,089
Posted By step
Re: Superscript tag inside ReplaceSubstring rule

You could try putting this in your OnRecordStart rule:

var chars = [
'\\^',
'\\+',
// Add as many as you like
];

var text = FindTextFrame('FullBody').content
.replace(/<variable...
Forum: Formatting Text August 15th, 2014, 06:41 AM
Replies: 27
Views: 22,089
Posted By step
Re: Superscript tag inside ReplaceSubstring rule

You need to use superscript tags. Edits made in red:

var s = Rule("Fit Name Degree Designation");
s = ReplaceSubstring(s, "LEED", "LEED<superscript>&reg;</superscript>");
return s;
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -7. The time now is 08:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.