Xerox 4450, 4650 manual Text in boxes, Locating the closest box, Error calculations

Page 60

TROUBLESHOOTING

Text in boxes

When text is entered for placement within a box, the system attempts to determine whether the given text exceeds the largest font size that can fit within the boundaries of the box. If FDL computations indicate that the entered text may not fit within the box, the following error message is displayed:

TEXT WILL NOT FIT IN THE BOX

The system checks the horizontal and vertical directions of the box. If an error is detected in one or both directions, an attempt is made to indicate an approximate value for the largest font.

Locating the closest box

When you specify text to be placed in a box, the system locates the closest box within a ten-dot square of the specified point.

Example If text is to be placed in a box located two grid units by two grid units from the origin of the form, the system selects the box closest to this point and within ten dots square. The upper left corner of this box becomes the relative origin for subsequent text placement.

·If text is to be placed in the next box horizontally, FDL begins searching at the upper right corner of the box in which previous text was placed.

·If text is to be placed in the next box vertically, the search begins at the lower left corner.

Error calculations

Horizontal errors The calculations made for horizontal errors (for example, too many characters in a line) are usually accurate. FDL uses the following formula for reporting horizontal errors:

S = P * (B/T)

S target point size

Poriginal font point size B width of the box in dots T width of the text in dots.

Vertical errors The calculation made by FDL for vertical errors (for example too many lines in the box) is a rough approximation of the actual size of text, and the computation may, in fact, be larger than the font for which an error message was displayed. This is because the FDL calculation does not take into account the leading used within the font or provided by line spacing specifications.

The following formula is used by the error-handling routine to compute text size when the box is too small in a vertical direction:

S= (72/300) * (D/N) S target point size

72 number of points in an inch

300 number of dots in an inch

D distance between top and bottom of the box (in dots) N number of lines that are involved.

4-10

XEROX 4050/4090/4450/4650 LPS FORMS CREATION GUIDE

Image 60
Contents Xerox Page Table of contents Troubleshooting Compiling and printing formsGrid Font Line BOX Text Logo Graphic Section Comment ENDAppendices GlossaryIndex GLOSSARY-1Page Introduction Uppercase Bold BlueLowercase black italics UppercaseRelated publications Publication NumberAdvantages of FDL LPSOrientation FontsCharacter spacing/line length examples Paper Image size considerationsFont memory SystemPhysical VirtualPhysical page sizes Inches MillimetersEdgemarking Virtual page originImaging error messages Registration shift and skewNon-imaged elements Landscape orientation shift and skew 11 x Output performance considerations Patient NameForm origin Positioning form elements Form elements and corresponding originsForm element Text block originGrids Y coordinatesPredefined formats Data types Data typesData type Description FDL command overview Command formatForms Description Language Command summary FDL command summaryCommand types Commands Command function Setup commands Form creation processForm Paper LANDSCAPE/PORTRAIT Grid Font FORM/RESOLUTION Paper Paper Size is valueParameter options Unit by y unitLANDSCAPE/PORTRAIT Orientation page Size is n Wide by m HighOrientation Grid Grid Unit is format id Origin y unit x unitGrid Unit is value Origin y unit x unit Format idFont Fonts id 1 id 2 id 3...id 32jFonts UN106A,UN104C,UN114A Description commands · Line · BOX · Text AT · Text in BOX · Logo · GraphicLine Direction AT c a unit c a unit ... Every c i unitDirection BOX Thickness DensityText Text AT#ETAIL #D#ISTRIBUTION Using Font n in position BOX y unit x unit `text `text Text in BOXNext direction BOX `text `text PositionText positioning Next Horizontal BOX `text `textLogo Logo id AT y unit x unitGraphic EagleGraphic name AT vpos unit hpos unit Scale is n/d VposSample .FSL Placing a graphicSyntax Begin Section id Do Section id AT y unit x unitDefault None Begin Section PhoneBegin Section PhoneComment Do Section Phone AT 0,0 Do Section Phone AT 30,37Syntax Comment text Syntax END Parameters None Default None ENDEndend Compiling and printing forms Form printing processFSL data transfer OfflineCompiling a form OnlineFDL compilation time Invoking the forms compilerRES=spi Compiling 600 spi formsCompiling 4850 color forms and logos Using the compilation options Error checksSummary sheet FDL Tryit SimplexFile storage ProofFDL filename Proof Secured filesPrinting a compiled form Example 1 FDL Tryit TraySample filename.FRM Sample TRYIT.FRMTroubleshooting Suggested coding techniquesConverting preprinted forms Designing new formsRecommended coding sequence Syntax ambiguitiesForms Paper size Hints and tips Hints and tipsKeywords Hints and tips Image complexity factors Line tablesHints and tips Keywords Importance of orderly construction Example of extraneous drawn linesScan line density Lines entered in unintended locationsDetermining line density limitations Landscape pagesPortrait pages Generation errors Local density and page setup errorsSuperimposed lines Using boxes Solid 2 box sharing part of a Solid 1 box edgeError calculations Text in boxesLocating the closest box Correcting text-in-box errors Centering text in boxesShading factors Text Spaced AT 4 Dots in BOX 10 `TEXT LineTerminating shading to avoid line density problems Section factorsAT 8 Draw VER Line from 4 to 5 Using Hairline Rounding measurement factorsConverting other unit values to dots Rounding variable data Grid unit scaling specifications Grid unit specification System responseFDL statistics Grid unit scalingFDL command syntax summary FDL command syntax conventionsSyntax Meaning Compiling commands syntax ENDSystem default summary Specification Substitution Grid and origin substitutions for 8.27 byInch/A4 paper Grid and origin substitutions for all paper sizes Page Sample form creation Figure C-1.Earnings registerWriting the setup commands Using the Comment commandVertical Line command Drawing linesDrawing horizontal lines Drawing vertical linesDrawing boxes Placing text at a locationUsing the END command Placing text in a boxCompiling the form Edit 1STFRM.FSLFigure C-12.Source statement 1STFRM.FSL Page FDL capacity limits Capacity limitsMaximum Page Standard print formats Format ID No. Lpi Cpi Point SizeBegin Lines Columns Size1 Orientation2 Values y,x Font IDPage Support tools and measurements Forms design rulerStandard formats and spacings Side Formats/spacingSupport Tools and Measurements Command examples Grid examplesForm results with grid specified, but no Size or originCommand Examples Grid Unit is 1 CMFigure G-5.Form results with grid and page size specified Line examples DrawFigure G-8.Drawing a horizontal line inches BOX examples EveryShading and Repeat Vertically Every Figure G-12. Drawing boxesText AT examples Command Examples Text in BOX examples Center positionsBottom positions Glossary BCDBOF BOTCME DjdeEnet EOTFCB FCPFCU FDLJCB JCLJDE JDLLPS PCC PDEPDL PSC TOF UcsbUCS XddiSymbols IndexFDL FSL ImagePredefined formats, 1-13, 2-6 to