Displaying CUE Print Measurement Data
You can configure the story elements in a CUE Print-integrated storyline to display "as you type" measurement data consisting of character, word and "write to fit" line counts:
The line count changes color according to its write-to-fit status:
-
Black if the current line count is less than the requested line count
-
Green if the current line count matches the requested line count
-
Red if the current line count exceeds the requested line count
To enable this functionality for a story element, you must add a
ui:count
element story element's type definition
(in addition to the cue:cueprint
element that
specifies its target CUE Print element tag:
<?xml version="1.0" encoding="UTF-8"?> <story-element-type xmlns="http://xmlns.escenic.com/2008/content-type" xmlns:ui="http://xmlns.escenic.com/2008/interface-hints" xmlns:cue="http://xmlns.cuepublishing.com/configuration" name="headline"> <ui:label>Headline</ui:label> <ui:icon>headline</ui:icon> <ui:priority>900</ui:priority> <ui:count show="true"/> <cue:cue-print elementTag="Headline"> <field name="headline" type="basic" mime-type="text/plain"> <ui:title-field/> </field> <ui:style> .story-element-headline [contenteditable='true'] { font-size: 2.5em; } </ui:style> </story-element-type>
Note that:
-
The
ui:count
element'sfor
attribute (used when enabling word/character counts for online storylines, see Configuring Character and Word Counts) is not used in this context. -
The
ui:count
element can only be used in this way with story elements. Although theui:count
element can added to individual fields of a story element when enabling word/character counts for online storylines (see Configuring Character and Word Counts), this is not the case when enabling CUE Print-based measurements.