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

Units of measurement for Attribute Rules

Highlighted
Level 1

Units of measurement for Attribute Rules

Dear all

Another request for FOSI help. Having licked the problem of the on-screen
element alignment (many thanks to Suzanne Napoleon for that solution) I'm
now attempting to generate indents on text.

My element has an attribute "hang", of type NUMBER, which can be
given a value to generate a hanging indent on the paragraph. When the data
is processed on output, this value is the number of pica ems that each line
following the first should indent on the left. So:


This is ordinary text with no hang This is ordinary text with no hang This
is ordinary text with no hang This is ordinary text with no hang This is
ordinary text with no hang


This is ordinary text with an em hang This is ordinary text with an em hang
This is ordinary text with an em hang
{ } This is ordinary text with an em hang This is ordinary text with an
em hang This is ordinary text with an em
{ } hang This is ordinary text with an em hang

(The brackets illustrate the size of the indent.)

So, the obvious port of call in the FOSI is the Attribute Rule, so:







The problem with this is that the default unit of measurement is the point,
and there seems to be no way to over-ride this, either within the e-i-c or
globally.

Now, if I can't apply the value directly, perhaps I can store it as part of
a construction rule, appending the "pi" and then using this as the indent?
Does anyone know how? I'm happiest using the FOSI Panels, but if I have to
get my hands dirty in the code, so be it....

As always, I'm grateful for any advice.

Regards,
Matt
Tags (2)
1 REPLY 1

Units of measurement for Attribute Rules

The short answer is No, there is no way to change the default units. If a
number is specified without a unit of measurement, points are assumed. In
your case, because the attribute is type NUMBER, the unit of measurement
cannot be entered as part of the attribute.

But there is probably a way to do what you want, although I'm not positive
what you want to indent---my mailer isn't displaying your example well.
Hanging indent" usually refers to indenting all lines of the paragraph
except the first line. This is specified in the FOSI with left indent=xx
and first line indent=0 or first line indent=*-xx. I'm assuming that's what
you want.

Note that it is not necessary to use specval to test for #ANY before doing
a fillval: a fillval will not be processed if the attribute has no content.

But in this case, fillval won't work unless the attribute is entered as
points (in ADEPT and Epic, 1 inch=72.27 points; 1 pica=6 points). But you
can use specval to test the hang attribute and indent accordingly. For
example:




















Hope this helps!

Good luck!
Suzanne Napoleon
Arbortext, Inc.