cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Get detailed information about composed lines using FOM / fdLine (APP V11.1 M020)

Get detailed information about composed lines using FOM / fdLine (APP V11.1 M020)

fdLine - available in JS thru display object - provides some information about composed lines.

But... some are missing (in particular, line content length, line status, space strech...). Available via getvars (01753, 21760, 21761, 21762, 01751) but only at formatting time and using a try table.

According to Simon Taylor, it would not be too difficult to add them to the fdLine object.

The aim is to be able to detect if a page is composed correctly or if it requires some manual (or even automatic) touch-up.

3 Comments
SimonTaylor
12-Amethyst

Hi Jacques

So if you had an array where each element of the array represented each object (including references and other secret stuff) on the line and had information about that object, you'd be able to write code to analyse each line and find spacing problems etc. How does that sound?

If we could provide some 'summary' information on the fdLine object too, like max space or width formatted, then it would make it quicker for you to find the information you need.

How do these sound? What information would want?

Thanks

Simon

jtripoz
3-Visitor

Would be just perfect 🙂

I've found documentation about the getvars in TechNote 40 (updated) and most interesting to add into fdLine would probably be (I would prefer new properties rather than an array...)

fdLine.termCode == getvar 01751 (line termination code)

fdLine.hyphCode == getvar 01752 (line hyphenation code)

fdLine.badFlags == getvar 01753 (bad line flags, if !=0, there's a problem in the line)

fdLine.wordStretch == getvar 21761 (word space value)

fdLine.letterStretch == getvar 21762 (letter space value)

fdLine.textWidth == getvar 21760 (formatted width of text)

But if an array is easier, OK for the array (as far as it's documented).

Thx

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.