TitleFactory rules for parsing text and placing text on images

 

These rules are in effect when the input text file is free formatted text, that is, the text is not Timecoded or in a an Exact format.

The number of characters-per-line on an image will be limited to that specified on the Process Settings window.

The maximum-number-of-lines-per- image will be limited to that specified on the Process Settings window.

Sentences must end in a period, exclamation mark, or question mark.  If a sentences does not end in a period, exclamation mark, or question mark and the end of paragraph is reached, the sentence will be discarded.  Previous sentences within the paragraph will be recognized.

New images will be created whenever new paragraphs are begun.

Sentences that cannot be ended on one image will be continued on another image and possibly subsequent images. Sentences can span several images.

Multiple sentences can appear on one image if they can be completed on the image.  If a sentence cannot be completed on an image that already has one or more sentences on it, it will not be placed on that image but will be started on a new image. 

A exception to the previous rule occurs when a partial sentence completes on an image.  In this case  no additional sentences will be placed on that image.

Balancing rules:

The algorithm used to balance lines of text on an image will keep the lines of text to a minimum, that is, any attempt to balance the text will not, unnecessarily increase the lines on an image.

The balancing of sentences that span multiple images will also occur.  This is necessary to avoid the condition where a long sentence uses multiple lines on one image, and only a very small amount of a line on another image.  When the maximum-number-of-lines-per-image is greater than 2, this may also result in balancing of the lines across the images.  For example, if the maximum-number-of-lines-per-image is 3 then a sentence with 4 lines will create two images with two lines each.

 

 

Copyright © 2002-2007 Riverslime Productions. All rights reserved.