Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old January 8th, 2013, 12:47 PM
MeeshKB MeeshKB is offline
Regular Contributor
 
Join Date: Jun 2012
Location: Alberta, Canada
Posts: 64
Default Re: Add a character conditially if line does not break

We are so very close, Eric. Thank you so much for all the help.

The sole remaining issue is that this code isn't actually returning the designation text at the reduced size (6). Is there any way to roll that last detail into this rule?
__________________
Michelle
Digital Services Coordinator at Rileys (print and electronic services provider) in Alberta, Canada
FusionPro VDP 9.1.0, Windows 7, Acrobat Pro XI , InDesign CS6, Avanti eAccess, EFI Digital Storefront
Reply With Quote
  #12  
Old January 8th, 2013, 12:59 PM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: Add a character conditially if line does not break

What does Rule("Add Reg to LEED") actually return? I had assumed you were already tagging your designations with that rule. If not, you will need to add font tagging to the result by revising this section of my previous code:
Code:
      result = name + ", " + designation;
   }
   else result = name + '<br>' + designation;
to look like this:
Code:
      result = name + ', <z newsize="6">' + designation;
   }
   else result = name + '<br><z newsize="6">' + designation;
And don't forget to check the box for returning result as tagged text.
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #13  
Old January 8th, 2013, 01:20 PM
MeeshKB MeeshKB is offline
Regular Contributor
 
Join Date: Jun 2012
Location: Alberta, Canada
Posts: 64
Default Re: Add a character conditially if line does not break

Eric, you are my new hero. That worked like a charm.

Rule("Add Reg to LEED") returns the designation, with a replaceSubstring to add a Registered Trademark character after any occurence of the acronym LEED. I hadn't tagged the rule because I was adding it as a separate element, and had applied the type size in the text editor.

Thank you so very much for your help. Every one of these challenges I overcome, I learn a bit more. I sincerely appreciate that you and the others here are willing to share your knowledge.
__________________
Michelle
Digital Services Coordinator at Rileys (print and electronic services provider) in Alberta, Canada
FusionPro VDP 9.1.0, Windows 7, Acrobat Pro XI , InDesign CS6, Avanti eAccess, EFI Digital Storefront
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:03 AM.


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