Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to determine column inches in a text frame with intersecting frames?

Guest
Dec 02, 2010 Dec 02, 2010

I am trying to write a script to determine how much text would fit in a text frame before actually having the text. If the frame has no run-around areas intruding on the frame it is the simple depth of the frame. Is there an easy way to determine the area of the frame with the obstructed areas subtracted?

TOPICS
Scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Dec 02, 2010 Dec 02, 2010

Maybe you could fill text frame with placeholder text:

myTextFrame.contents = TextFrameContents.placeholderText;

Hope that helps.

--

tomaxxi

http://indisnip.wordpress.com/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 03, 2010 Dec 03, 2010

I need to do this calculation a lot. To use this, I guess I would save any text that may be in the frame, fill it with placeholder text and calculate the size, then remove the placeholder text and replace the starting text. I hope there would be a faster way. Any other ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 04, 2010 Dec 04, 2010
LATEST
Any other ideas?

You can use InCopy's copyfitting text feature.

Kasyan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2010 Dec 03, 2010

How do define "how much"?

Different glyphs take up different amounts of horizontal space, so it's impossible to know the number of characters that will fit before you know what they are...

Harbs

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 03, 2010 Dec 03, 2010

When working with newspapers, they measure in column inches which uses an average character width to make a good estimate how big a story can fit into an area. When the area is a rectangle for the text the column inches is the number of columns in the frame times the depth of the frame. When another frame covers one of the columns, this area needs to be subtracted to find the equivilent depth.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines