Creating index tags in address 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 area, you can create an index tag for a ZIP Code that is in the U.S. Postal Service format.
For example, a customer address might consist of either 3 or 4 lines, with the ZIP Code always on the last line. First you identify the location and size of the address area by drawing a box around an address that contains the maximum lines in the address: in this example, 4 lines. If the sample AFP file does not have an address with the maximum number of lines, draw a box large enough to include all possible lines in the address area. If you know the exact position and size of the address area, you can adjust the size of the box you drew by specifying the exact X offset, Y offset, height, and width of the address area. (X and Y offsets are from the origin of the logical page, not the physical sheet of paper.)Notes:
- If the AFP file does not contain page groups, create page groups. Otherwise, to create an index tag for an address 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 .
Next you can create index tags for text on specific lines: the customer name on the first line, the city on the last line, and the state on the last line. Then you can create multiple index tags for the intermediate lines that contain the street address. Intermediate lines are the lines between the specific lines that you indexed. The address area can contain a variable number of intermediate lines, as shown:
JOHN SMITH <-- first line 123 MAIN STREET <-- intermediate line 1 SUITE 100 <-- intermediate line 2 (optional line) DENVER, CO 12345-6789 <-- last line
If the ZIP Code is in the U.S. Postal Service format (nnnnn or nnnnn-nnnn), AFP Indexer can automatically extract the ZIP Code on a line and create an index tag for it.
- In AFP Visual Environment, open a sample AFP file that contains the addresses that you want to index in the format that you want to index. Then click .
- Navigate to an address that contains the maximum number of lines.If you cannot find an address with the maximum number of lines, in the next steps either draw a larger area or specify the exact size of the address area on the Position tab to include the maximum number of lines.
- To create the address area, position your cursor at a corner of the area that contains
the entire address. While pressing the left mouse button, draw a box that includes
all the lines in the address.The address area must include the first character in the AFP text blocks that you want to index; however, it does not need to include all the text because text blocks can contain text of variable length in different page groups. For example, a text block that contains a customer name might contain a short name in one page group and a long name in another page group.
- Right-click anywhere on the page and click Create Index Tags for an Address.You see the Create Index Tags in an Address Area window.
- Check that the text you want to index is shown in the Index tags for intermediate lines 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 address area.Note: If the text displays correctly in the AFP file but incorrectly in the Index tags for intermediate lines 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.cpfont-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 address area in these fields.
Decimal values (such as 2.5) are allowed. Specify the values in inches or millimeters.
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.
- 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).
- The horizontal width of the area.
- The vertical height of the area.
- On the Index Tags tab, type a descriptive name for the area in the Index area name field.For example, if the area contains the customer's address, the name could be
Customer address 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 Index tags for intermediate lines field you see the text with the character that you specified, if any, shown between the text blocks.
- Optional: To create an index tag for a specific 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 line contains the customer name, the name could be
- 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.
- 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.You see the value of the index tag in the Edited value field.
- 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
nullif 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 is
nullfor 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 for specific lines as you want in the area.
- Optional: To create index tags for the lines that are shown in the Index tags for intermediate lines field:
AFP Indexer creates index tags for each intermediate line in the area; for example:
- Click Index intermediate lines.
- Specify the name for the index tags in the Index tag name field. For example, the name could be
- Use the drop-down box next to the Index tag name field to select the number to append to the index tag for the first intermediate line.
- Use the default code page encoding or select an encoding from the drop-down list.
Street2. AFP Indexer does not create index tags for intermediate lines that do not exist in a page group. For example, if the address in a particular page group does not contain the second intermediate line in the street address, AFP Indexer only creates index tag
- Optional: To create an index tag for a ZIP Code in the U.S. Postal Service format
(nnnnn or nnnnn-nnnn):
- Click the ZIP Code tab.You see the ZIP Code in the ZIP Code field.
- Type a descriptive name for the index tag.For example, the name could be
- Use the default code page encoding or select an encoding from the drop-down list.
- Clear the Create tag for an empty value field if you do not want AFP Indexer to create an index tag with a
nullvalue. Otherwise, if the ZIP Code does not exist in a particular page group, the index tag for that page group contains the value
- Click the ZIP Code tab.
- 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.