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 October 12th, 2009, 11:54 AM
Dan Korn's Avatar
Dan Korn Dan Korn is online now
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,359
Default Re: A single text frame with mutlipe column settings?

Quote:
Originally Posted by tobarstep View Post
Dan, is there an updated Tag Reference Guide we can download? Mine does not make reference to this attribute of the <p> tag.
It's in there. It's just kind of hidden under the section "Attributes Used to Alter and Adjust Text Flows" instead of with the other <p> tag attributes. Search the PDF for "straddleall". Actually, there's a typo in there too, but the syntax I posted above is correct.
__________________
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
  #12  
Old October 12th, 2009, 11:57 AM
marcuslayton marcuslayton is offline
Junior Community Member
 
Join Date: Sep 2008
Posts: 39
Default Re: A single text frame with mutlipe column settings?

ahhh - it was right there - sad thing is - i had to have read that during the good amount i spent on in :/ daaaang

thanks dan!
Reply With Quote
  #13  
Old October 12th, 2009, 12:39 PM
tobarstep tobarstep is offline
Regular Contributor
 
Join Date: Sep 2008
Location: Florida
Posts: 71
Default Re: A single text frame with mutlipe column settings?

Quote:
Originally Posted by Dan Korn View Post
It's in there. It's just kind of hidden under the section "Attributes Used to Alter and Adjust Text Flows" instead of with the other <p> tag attributes. Search the PDF for "straddleall". Actually, there's a typo in there too, but the syntax I posted above is correct.
Very nice. I see about leaving out the space as well. Thanks. This could be a handy way to avoid having to use a table for simple things.
__________________
FusionPro VDP 9.3.12 Desktop/Server
Windows 7 Enterprise / Windows Server 2008 r2
Acrobat X
Reply With Quote
  #14  
Old October 16th, 2009, 03:41 PM
marcuslayton marcuslayton is offline
Junior Community Member
 
Join Date: Sep 2008
Posts: 39
Default Re: A single text frame with mutlipe column settings?

Well we are very close here.

The text frame needs to be centered - it appears that using the "straddleall" makes it top justified regardless of the setting. Is there a /p that i am missing?

~Mark

6.01 on a pc
Reply With Quote
  #15  
Old October 16th, 2009, 04:16 PM
marcuslayton marcuslayton is offline
Junior Community Member
 
Join Date: Sep 2008
Posts: 39
Default Re: A single text frame with mutlipe column settings?

i made the template simpler - and posted the text area in question - notice that the text field actually isn't centered

ideas?
Attached Files
File Type: zip Columns Tester.zip (342.4 KB, 3 views)
Reply With Quote
  #16  
Old October 16th, 2009, 05:52 PM
Dan Korn's Avatar
Dan Korn Dan Korn is online now
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,359
Default Re: A single text frame with mutlipe column settings?

Quote:
Originally Posted by marcuslayton View Post
The text frame needs to be centered - it appears that using the "straddleall" makes it top justified regardless of the setting. Is there a /p that i am missing?
Quote:
Originally Posted by marcuslayton View Post
i made the template simpler - and posted the text area in question - notice that the text field actually isn't centered
Are you talking about the box with the "FrontMiddleTextReturn" variable? A couple of things:

First, you need to turn off Copyfitting for the frame in order for vertical alignment to have any effect.

Second, vertical alignment doesn't really apply to multi-column frames anyway, because the text flows from one column to the next. The issue is that both multi-frame flow functionality and multi-column text frame functionality were designed with the assumption that if you're flowing to a new frame or column, the frame or column you're coming from must have been filled up, so the vertical alignment setting is not taken into account, except for the last frame (or column). That said, you can put a <page destination=topofcolumn balance=true> tag at the end of the multi-column text to "balance" it out between the columns, but vertical alignment still won't apply. The design of the composition engine simply didn't take that particular combination of features into account. (Again, the "straddleall" feature was designed with something like a headline in mind, above multi-column text that would ultimately flow to another page, like in a newspaper, so vertical alignment doesn't come into play in that kind of scenario.)

So, what can you do? Well, depending on how much the text in each part of the frame (both the single-column and the multi-column part) varies, you could just rework this to use two separate frames, and possibly some variation on this logic to keep them around the same size. Or you could roll your own vertical alignment by using Text Measurement to calculate the height of the entire text and inserting some space at the top. But that's getting into some complex template-building which is a bit beyond the scope of what I can do here on the forum.
__________________
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
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 12:54 PM.


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