Mombu the Computer Design Forum sponsored links

Go Back   Mombu the Computer Design Forum > Computer_Design > Text size, text box size automation
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th September 07:58
External User
 
Posts: 1
Default Text size, text box size automation



Hello all.

Using CS2 on MAC OS X

I am fairly new to InDesign and very new to using xml, so please be understanding if I am asking a question that everyone knows the answer to.

I am outputting xml files from InDesign which are then re-imported after some text changes to the original do***ent. The problem I have is as follows: I tag a text box that has to remain a certain size. The text within that box is altered using the xml file. When I re-import the xml file the 'new text' may have more characters than the original 'headline' - I then have layout issues.

So, if anyone is still reading this ; ) what I basically need to find out is:

Is there a way I can instruct CS2 to reduce the size of the text to fit the text frame?

I am thinking that I might have to use some sort of script (I will be posting this in the script forum also). I know there is an old script called 'Fit frame to text'. What I need seems to be the opposite of that as I know that I can fix the size of the original text box.

If anyone out there can help, even if you have a suggestion of where I should be looking, please let me know.

Thanks in advance.
  Reply With Quote


  sponsored links


2 11th September 08:01
eric_
External User
 
Posts: 1
Default Text size, text box size automation



If you have alternate stylesheets, this may be a scriptable thing.

In pseudo-Applescript-ish code it might look like:
-- Assumes you've labeled every Headline box with a script label "hdline_box_1"
set myHeadlines to every page item whose label = "hdline_box_1"
repeat with thisHeadline in myHeadlines
-- (not sure how you *really* say this next line)
if overflow of thisHeadline = true then
-- Assumes you have several different "Hdline" paragraph styles with differing type sizes
set paragraph style of contents of thisHeadline to "Hdline Size 2"
end if
end repeat
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666