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
  #1  
Old July 20th, 2010, 10:57 AM
GailUdell GailUdell is offline
Junior Community Member
 
Join Date: Sep 2008
Location: Corvallis, Oregon
Posts: 32
Default Hard Justify rule?

I have to recreate a card online and the designer has chosen to adjust tracking per line to essentially do a hard right and left justify. Of course, there are variables within each line... I am hoping there is a rule within javascript that can help me achieve this. Any ideas?

___________________
Gail Udell
Web-to-Print Administrator
Windows XP Pro. Acrobat 9.x, FP 6.2P1a

Last edited by GailUdell; July 20th, 2010 at 11:08 AM..
Reply With Quote
Old July 20th, 2010, 11:54 AM
esmith
This message has been deleted by esmith.
  #2  
Old July 20th, 2010, 12:00 PM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: Hard Justify rule?

The variable text editor includes an option for justified text. I don't know that I've ever applied it to a frame returning variable text in FP though.
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #3  
Old July 20th, 2010, 12:01 PM
GailUdell GailUdell is offline
Junior Community Member
 
Join Date: Sep 2008
Location: Corvallis, Oregon
Posts: 32
Default Re: Hard Justify rule?

Here is the bottom of the card. Every line of her InDesign file has a different tracking. To add to that, there is the option of a cell number in which the phone headers change to a single letter (p/c/f) and the tracking then changes again.
Attached Images
File Type: jpg BCbottomSample.jpg (30.6 KB, 21 views)
__________________
Gail Udell
Web-to-Print Administrator
Windows 7/Mac OS 10.6.4
Acrobat X Pro, FP 7.2P1k
Reply With Quote
  #4  
Old July 20th, 2010, 12:07 PM
GailUdell GailUdell is offline
Junior Community Member
 
Join Date: Sep 2008
Location: Corvallis, Oregon
Posts: 32
Default Re: Hard Justify rule?

I did use the "Justify" tool, but I guess it only works on paragraphs? Since I have a return at the end of each line, it only makes it left justified.
__________________
Gail Udell
Web-to-Print Administrator
Windows 7/Mac OS 10.6.4
Acrobat X Pro, FP 7.2P1k
Reply With Quote
  #5  
Old July 20th, 2010, 04:20 PM
jurgmay jurgmay is offline
Regular Contributor
 
Join Date: Aug 2009
Location: Bristol, UK
Posts: 53
Default Re: Hard Justify rule?

Quote:
Originally Posted by GailUdell View Post
I did use the "Justify" tool, but I guess it only works on paragraphs? Since I have a return at the end of each line, it only makes it left justified.
Does it work if you put in a soft return instead of a hard return?
__________________
FusionPro Desktop 6.2P1a Windows XP & Mac OS X 10.6 (Snow Leopard)
Reply With Quote
  #6  
Old July 20th, 2010, 04:36 PM
GailUdell GailUdell is offline
Junior Community Member
 
Join Date: Sep 2008
Location: Corvallis, Oregon
Posts: 32
Default Re: Hard Justify rule?

I don't think I can do that. The address line is fixed, so I think I can just set the tracking on that. The phone numbers line is a single rule, but I think I can extend that rule to accommodate different tracking based on two or three phone numbers (saw how I could do that with javascript in another thread... just need to find it again) and the final line - the email - will just have to be justified left. What a rotten design!
__________________
Gail Udell
Web-to-Print Administrator
Windows 7/Mac OS 10.6.4
Acrobat X Pro, FP 7.2P1k
Reply With Quote
  #7  
Old July 21st, 2010, 01:14 AM
jurgmay jurgmay is offline
Regular Contributor
 
Join Date: Aug 2009
Location: Bristol, UK
Posts: 53
Default Re: Hard Justify rule?

Quote:
Originally Posted by GailUdell View Post
I don't think I can do that. The address line is fixed, so I think I can just set the tracking on that. The phone numbers line is a single rule, but I think I can extend that rule to accommodate different tracking based on two or three phone numbers (saw how I could do that with javascript in another thread... just need to find it again) and the final line - the email - will just have to be justified left. What a rotten design!
Seems FP doesn't behave as I'd expected! My solution would have worked except FP applies spacing between each word rather than each character with no apparent options to change that behaviour.

I've used some software called PageFlex and I could do exactly what you want to achieve in that so thought FP would be the same.

Hope you get it sorted!
__________________
FusionPro Desktop 6.2P1a Windows XP & Mac OS X 10.6 (Snow Leopard)
Reply With Quote
  #8  
Old July 21st, 2010, 10:03 AM
GailUdell GailUdell is offline
Junior Community Member
 
Join Date: Sep 2008
Location: Corvallis, Oregon
Posts: 32
Default Re: Hard Justify rule?

Since this is for web, this is all I have. :0 I think I can make it work. Thanks for trying...
__________________
Gail Udell
Web-to-Print Administrator
Windows 7/Mac OS 10.6.4
Acrobat X Pro, FP 7.2P1k
Reply With Quote
  #9  
Old July 29th, 2010, 11:18 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,359
Default Re: Hard Justify rule?

Quote:
Originally Posted by GailUdell View Post
and the final line - the email - will just have to be justified left. What a rotten design!
This is the way that "full justification" works in the Text Editor: the last line of the paragraph is left-justified. Look at the last line of a paragraph in a newspaper, or try it in any word processor. Admittedly, since you're not formatting a newspaper column or a similar "flow" of text, your needs are different, but any other design would be non-standard and more confusing to users who expect it to work the way that it does.

That said, there are several things you can do:
  1. You can put a "soft return" at the end of the last line by holding down the shift key and hitting Enter. This will force justification on the previous line. If you don't want the extra whitespace from the empty line, type a space, select it, and set its point size to 1. Note that this solution requires no JavaScript or tagging.
  2. You can use a tag such as <p br=false quad=JJ> (note the double "J") to force full justification on every line of the paragraph, including the last line. You can return this tag from a JavaScript rule and place the variable before the line of text.
  3. You can "fake out" a line with something left-justified and something else right-justified by putting a tag like <p leading=1 quad=R> between the two items.
__________________
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
  #10  
Old July 29th, 2010, 04:22 PM
GailUdell GailUdell is offline
Junior Community Member
 
Join Date: Sep 2008
Location: Corvallis, Oregon
Posts: 32
Default Re: Hard Justify rule?

Thanks so much Dan - I will give these a shot.
__________________
Gail Udell
Web-to-Print Administrator
Windows 7/Mac OS 10.6.4
Acrobat X Pro, FP 7.2P1k
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 07:38 AM.


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