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

How many characters to fill textFrame

Enthusiast ,
May 29, 2017 May 29, 2017

Somebody has an idea how to get how many characters to fill out a textFrame?

Even if I have an empty textFrame or filled with some characters...

Thanks.

TOPICS
Scripting
1.2K
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

correct answers 1 Correct answer

Enthusiast , Sep 24, 2017 Sep 24, 2017

Solved some time ago, using this:

Translate
Guru ,
May 29, 2017 May 29, 2017

Would that be i or W ?

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
Enthusiast ,
May 29, 2017 May 29, 2017

That's exactly the point. Filling the textFrame with placeholder text, with

the paraStyle applied into it.

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
Guru ,
May 29, 2017 May 29, 2017

If you don't know what you are filling with you can't calculate it.

I think there is a least one thread here about finding the contents of the placeholder text. You can search for it.

Once you get past that problem it's still going to be really tough to do the calculation. Alignment and hyphenation are things to consider.

I think you only chance of anything accurate is a divide and conquer trial and error.

For a starting figure you can measure an average size letter "a" and calculate how many of those would fit in and then apply your devide and conquer.

HTH

Trevor

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
Enthusiast ,
May 29, 2017 May 29, 2017

Ok. Currently I'm filling with placeholder, then calculate how many chars

are inserted, and then, finally, I remove what was placed.

I just asking to put more heads thinking about.

Thank you so much!

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
People's Champ ,
May 30, 2017 May 30, 2017

@Trevor

If you don't know what you are filling with you can't calculate it.

I can't agree more.

I have been involved with a client where people constantly claimed for such a pre-calculation feature. That way the "exact" numbers of characters could be indicated upfront in their CMS. I tried thousand times to explain why it didn't make sense with few to no success

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
Guru ,
May 30, 2017 May 30, 2017

Yep even with a monspaced font it would be pretty much impossible because one can't no where the spaces are going to be that will trigger the new line.

I hope you were paid by the hour for your explanations.

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
People's Champ ,
May 30, 2017 May 30, 2017

No the problem is that people are so attached to the idea they won't just listen. Believe me, I could explain to the same person on Monday and he will claim for it on Tuesday. Explained on Tuesday then required on Wednesday and etc.

In fact it was more about changes in the process that people disliked.

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
Enthusiast ,
May 30, 2017 May 30, 2017

Yes, I know about all these problems.

I don't need the exact number. But, understood.

Thank you all.

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
Enthusiast ,
Sep 24, 2017 Sep 24, 2017
LATEST

Solved some time ago, using this:

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