Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 19th, 2010, 07:07 AM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Superscript and Copyfit and Line Breaks - Oh My!

I have inherited a new responsibility with an old problem. When applying copyfitting to a text box with a variable that includes a superscript tag, the superscripted character will sometimes remain on one line while the trailing dollar amount breaks to the next line. The original thread was posted in October 2008. The problem still exists. I'm wondering if there is a way we can fix this internally, and if not, does FP have a bug report created for this to work on a solution?
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #2  
Old March 15th, 2010, 08:54 AM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Sorry to bump this, but can FP acknowledge if this is a bug and whether it is being addressed? Thanks.
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #3  
Old March 16th, 2010, 01:46 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,408
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Yes, there are some known issues with using superscript in conjunction with non-alphanumeric (symbol) characters such dollar signs and copyright marks. The case number is FP-10847. Unfortunately, I can't say whether this case is being considered for inclusion in any specific release.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #4  
Old March 19th, 2010, 07:14 AM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Until the issue can be addressed, do we know what the superscript tag "does" (i.e. shrink font by 50% and alter baseline by 15%)? Would it be possible to write a script to apply the same changes to the character without the actual <superscript> tag to reproduce the effect without the tag thus eliminating the negative side effect?
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #5  
Old March 19th, 2010, 10:30 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,408
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Quote:
Originally Posted by esmith View Post
Until the issue can be addressed, do we know what the superscript tag "does" (i.e. shrink font by 50% and alter baseline by 15%)?
Yes, the defaults are specified in the Global Paragraph Settings dialog. You can get to this from any instance of the Variable Text Editor dialog by clicking "Paragraph" and then "Global Settings." These global defaults can be overridden in a given paragraph by setting attributes of the <p> tag such as "superratio" and "superoffset"; please see the Tags Reference Guide for details.
Quote:
Originally Posted by esmith View Post
Would it be possible to write a script to apply the same changes to the character without the actual <superscript> tag to reproduce the effect without the tag thus eliminating the negative side effect?
You can certainly modify the point size of text easily enough, with either a <z> or <magnify> tag. Hoiwever, effecting a baseline shift is more difficult; there's no tag to do that. The simplest workaround may be to find a font which outputs the necessary character(s) raised above the baseline.

Depending on how the text is set up, you may also be able to write a script using the FusionProTextMeasure object to determine whether the text will fit on a line with the part you want to keep together, and if not, insert a <br> tag. I'd have to know more about the specifics of the job in order to determine whether such a strategy is possible.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #6  
Old March 19th, 2010, 11:38 AM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Quote:
Depending on how the text is set up, you may also be able to write a script using the FusionProTextMeasure object to determine whether the text will fit on a line with the part you want to keep together, and if not, insert a <br> tag. I'd have to know more about the specifics of the job in order to determine whether such a strategy is possible.
I'm uploading a sample file of the ongoing job that we have been editing post-FP composition to fix the line breaks. There are several composition errors in this sample file since I have stripped a lot of proprietary info out of the files, but you should get the gist of where the problem is.
Attached Files
File Type: zip sample.zip (1,011.9 KB, 6 views)
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #7  
Old March 19th, 2010, 01:41 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,408
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Quote:
Originally Posted by esmith View Post
I'm uploading a sample file of the ongoing job that we have been editing post-FP composition to fix the line breaks. There are several composition errors in this sample file since I have stripped a lot of proprietary info out of the files, but you should get the gist of where the problem is.
Sorry, this way the text is being set is too complex for a Text Measurement-based solution, especially since it's using Copyfitting.

I think your options are:
  • Rework the job to set the prices in their own columns with a table or simple tab stops, use CopyfitLine, or otherwise change things so that the prices are protected from wrapping lines.
  • Modify only the point size of the dollar sign instead of using true superscript.
  • Find a font with a dollar sign which appears superscripted by default, changing the first line of your superScript function to something like:
Code:
str = str.replace(/(\$)/g,"<f name=\"NEW FONT NAME HERE\">$</f>");
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #8  
Old March 22nd, 2010, 11:10 AM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: Superscript and Copyfit and Line Breaks - Oh My!

Quote:
Originally Posted by Dan Korn View Post
  • Find a font with a dollar sign which appears superscripted by default...
A $99 copy of TypeTool and a day of testing, and we have a working solution. Thanks for the brainstorming nudge!
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
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 01:36 PM.


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