Length displayed in mpt
This column displays the length of the body element. The column is 80 units wide, and uses the "Length" sort.
The length is displayed in millipoints.
<ColStyle Name="Length" Width="80" Height="0" SortName="Length">
<CellTemplate>
<xp:TextBlock
VerticalAlignment="Top"
Text="{Binding Path=[article.bodyTextH]}" />
</CellTemplate>
</ColStyle>
Length displayed in points
This column displays the length of the body element. The column is 80 units wide, and uses the "Length" sort.
The length is displayed in points, with max. 2 decimals, followed by the string "pt"
<ColStyle Name="Length" Width="80" Height="0" SortName="Length">
<CellTemplate>
<xp:TextBlock
VerticalAlignment="Top"
Text="{Binding Path=[article.bodyTextH], Converter={StaticResource UnitConverter}, ConverterParameter=pt::{0:0.00} pt}" />
</CellTemplate>
</ColStyle>
Length displayed in inches
This column displays the length of the body element. The column is 80 units wide, and uses the "Length" sort.
The length is displayed in inches, with max. 2 decimals, followed by the string "in"
<ColStyle Name="Length" Width="80" Height="0" SortName="Length">
<CellTemplate>
<xp:TextBlock
VerticalAlignment="Top"
Text="{Binding Path=[article.bodyTextH], Converter={StaticResource UnitConverter}, ConverterParameter=in::{0:0.00} in}" />
</CellTemplate>
</ColStyle>
Length displayed in millimeters
This column displays the length of the body element. The column is 80 units wide, and uses the "Length" sort.
The length is displayed in millimeters, with max. 2 decimals, followed by the string "mm"
<ColStyle Name="Length" Width="80" Height="0" SortName="Length">
<CellTemplate>
<xp:TextBlock
VerticalAlignment="Top"
Text="{Binding Path=[article.bodyTextH], Converter={StaticResource UnitConverter}, ConverterParameter=mm::{0:0.00} mm}" />
</CellTemplate>
</ColStyle>
Length of story, based on words
This column displays the length of the body element that is an estimation about how much of the vertical space the element would take. The result is related to a "default" column, in other words, the most frequently used one. The calculation uses a fixed factor (e.g. 29.5.), that needs to be adjusted for every newspaper.
<ColStyle Name="Length" Width="80" Height="0" SortName="Length">
<CellTemplate ObjectTypeName="story">
<xp:TextBlock
VerticalAlignment="Top"
Text="{Binding Path=[story.nWords], Converter={StaticResource DivideConverter}, ConverterParameter=29.5:{0:0.00} in}" />
</CellTemplate>
</ColStyle>
Adjust words-based length to your default column
Follow this procedure:
1.Locate a medium long text with and paste it on a page in Fred4 in a frame with the width that can be considered as a "most frequently used one". For the sake of this example, let's assume the text has 100 words.
2.Scale the frame height so the text fits.
3.Read the frame height, expressed in the measurement unit you want to use in the directory style, e.g. "cm".
4.Divide number of words with the frame height: that's your factor value.
Note: obviously, the factor value is related to the typographical characteristics of the text (type size, leading, etc).
Various formats
Unit |
Line |
in |
ConverterParameter=in::{0:0.00} inches |
mm |
ConverterParameter=mm::{0:0.00} mm |
cm |
ConverterParameter=cm::{0:0.00} centimetres |
pt, 1 decimal |
ConverterParameter=pt::{0:0.0} pt |
Note: the unit, displayed in red has to be a reserved GN4 unit name, while the unit displayed as highlighted, is a simple string where you can specify what you want.
See also