Creating index tags in areas
The area must occur in a consistent location in each page group; however, it can consist of a variable number of lines. In the index area, you can create an index tag with text from more than one AFP text block on a line. You can concatenate the text in the text blocks, or separate the text with a blank or any other character. You can also edit the text to remove unwanted characters.
For example, a customer account number might occur on the first page of each page
group in three separate AFP text blocks on the same line. To create an index tag that
contains the entire account number, first you identify the account number area by
drawing a box around all three text blocks. Then you create one index tag with text
from all three text blocks, and you specify the character to use to separate the text
in each text block. If the text blocks contain account number 123
, 45
, and 678
, the index tag can contain: 12345678
, 123 45 678
, or 123-45-678
.
Notes:
- If the AFP file does not contain page groups, create page groups. Otherwise, to create an index tag for an area on a page outside a page group, see Creating index tags on supplemental pages.
- In AFP Visual Environment you can display measurement units in inches or millimeters. To change the measurement unit, click .
- In AFP Visual Environment, open a sample AFP file that contains the text you want to index. Then click .
- To create the index area, position your cursor at a corner of the area that contains
text you want to index. While pressing the left mouse button, draw a box that includes
the text you want to index.The index area must include the first character in each AFP text block that you want to index; however, the area does not need to include all the characters in the AFP text blocks.
- Right-click anywhere on the page and click Create Index Tags.You see the Create Index Tags in an Area window.
- Check that the text you want to index is shown in the Lines in the area field. If the text is not shown, click Cancel and redraw the area on the page, or click the Position tab to adjust the origin and size of the index area.Note: If the text displays correctly in the AFP file but incorrectly in the Lines in the area field, try changing the default code page ( ). If the text still does not display correctly, this usually indicates that the code page does not use standard Unicode mapping. In this case, use the
SampleCodePointMap.cp
font-mapping file to create a code point map file before proceeding. - Optional: On the Position tab, change the origin (top-left corner) and size of the index area in these fields.
Decimal values (such as 2.5) are allowed. Specify the origin and size in inches or
millimeters.
- X position
- The horizontal distance of the left side of the area measured from the left side of the logical page (not the physical sheet of paper).
- Y position
- The vertical distance of the top of the area measured from the top of the logical page (not the physical sheet of paper).
- Width
- The horizontal width of the area.
- Height
- The vertical height of the area.
Note: If you rotated the AFP file using the Rotate by 90o option on the View menu, measure the X and Y positions from the top-left corner of the logical page in the unrotated view. - On the Index Tags tab, type a descriptive name for the area in the Index area name field.For example, if the area contains an account number, the name could be
Account number area
. - Specify the character or characters that you want to use to separate text blocks in
the Character between text blocks field.The default character that separates text blocks is one blank. If you want to concatenate the text in multiple text blocks, delete the blank from the field.In the Lines in the area field you see the text with the character that you specified (if any) shown between the text blocks.
- To create an index tag for the text shown in a line in the area:
- Click Add.
- Use the default code page encoding or select an encoding from the drop-down list if the text displays incorrectly.
- Type a descriptive name for the index tag.For example, if the index tag contains an account number, the name could be
Account number
. - Select the line that contains the text you want to index:
- To select the first line or a line relative to the first line, click First line. Then use the drop-down list for this field to select a relative line. For example, select First line plus 1.
- To select the last line or a line relative to the last line, click Last line. Then use the drop-down list for this field to select a relative line. For example, select Last line minus 1.
You see the value of the index tag in the Edited value field. - Decide whether you want to use the entire text value to create the index tag or only part of the text. To select part of the text as the index tag, click Edit index value. Edit the index value in the Edit Value window and click OK.
- Clear the Create tag for an empty value field if you do not want AFP Indexer to create index tags with null values. Otherwise, an index tag contains the value
null
if the text that you indexed does not exist in a particular page group. For example, if a page group has an address that does not contain a country name, the index tag for country name isnull
for that page group. - Click OK.You see the index tag and the index tag value in the Index tags for specific lines field.
- Optional: To create another index tag with text on the same line or on a different
line, click Add again.You can create as many index tags as you want in the area.
- Click OK.You see the index tags listed in the bottom pane for each page group.
- Verify that the correct index tags have been created:
- Double-click the index tags in the bottom pane and verify that the correct pages in the page groups are displayed.
- If an index tag is incorrect, click to modify or delete the tag.The index tag is listed under.