Table of Contents

Previous

Next


Using Text in External Files to Assign Long Descriptions to Images in Word

Use the ImageLongDescByRef marker to assign long descriptions to images using text in external files. To assign a long description to an image, your Stationery and template must have the ImageLongDescText marker type configured. Your output format must also support this feature. For more information about output formats that support this feature, see “Features Available in Each Output Format” on page 8.

The following procedure provides an example of how to use text in external files to assign long descriptions to images in Microsoft Word source documents using Microsoft Word 2003. Steps for using text in external files to assign long descriptions to images in Microsoft Word may be different in other versions of Microsoft Word.

To assign a long description to an image using marker text in a Microsoft Word source document

  1. Create a .txt file that contains each image long description.

  2. Place each image long description text file in a folder in the ProjectName\Formats\TargetName\Files folder for your project, where ProjectName is the name of your ePublisher project and TargetName is the name of your target.

For example, place the each image long description in the following location:

ProjectName\Formats\TargetName\Files\longdescriptions\imagelongdescr'iption.txt

where ProjectName is the name of your ePublisher project, TargetName is the name of your target, longdescriptions is the name of the folder where you placed the image long description, and imagelongdescription is the name of the .txt file that contains the image long description.

  1. In your Microsoft Word source document, locate the image to which you want to assign a long description.

  2. Right-click the image, and then click Format Picture or Format Object.

  3. Change the layout setting of the image to Top and Bottom by completing the following steps:

By default when you insert images into Microsoft Word, Microsoft Word inserts the image using the Inline with text layout setting. In order to specify the image scale for image output files, you must group the image and the text box that contains the ImageLongDescByRef marker. However, you cannot group images using the In line with text layout setting in Microsoft Word. To work around this known Microsoft Word issue, if you have an image that uses an In line with text layout setting, use the Top and Bottom layout setting for the image while you insert the ImageLongDescText marker, and then reapply the In line with text layout setting after you group the image and the ImageLongDescText marker.

  1. On the Layout tab, click Advanced.

  2. On the Text Wrapping tab, click Top and Bottom.

  3. Click OK, and then click OK again to close the window.

  4. Select your image.

  5. On the Insert menu, click Text Box, and then click to the right of your image. Microsoft Word inserts a text box.

  6. Insert your cursor into the text box, and then complete the following steps:

  7. On the WebWorks menu, click Markers.

  8. In the Markers field, select ImageLongDescByRef from the list of markers.

  9. In the Value field, type the path to the .txt file that contains the long description you want to assign to the image.

For example, type:

./longdescriptions/imagelongdescription.txt

where longdescriptions is the name of the folder where you placed the image long description, and imagelongdescription is the name of the .txt file that contains the image long description.

  1. Click OK. ePublisher inserts the ImageLongDescText marker into the text box.

  2. Select the text box.

  3. Right-click the selected text box, and then click Format Text Box.

  4. On the Colors and Lines tab, in the Fill area, in the Color field, select No Fill.

  5. In the Line area, in the Color field, select No Line.

  6. Click OK.

  7. Drag and drop the text box onto the image.

  8. Select the text box and the image.

  9. Right-click the selected text box and image, and then click Grouping  > Group.

When you select Group, the location of the image in your Microsoft Word source document may change in relation to the text in your source document. For example, the image may move up or down in your Microsoft Word source document. This is known Microsoft Word behavior. You may need to scroll up or down in your source document to the new location of the image to find the image.

  1. If your image previously used the In line with text layout setting for the image, reassign this style to your image by completing the following steps:

  2. Right-click only the image, and then click Format Object.

You must ensure you right-click only the image, and not on the text box or the grouped text box and image. If you right-click on the text box or the grouped text box and image, Microsoft Word does not display the Format Object menu option on the context menu.

  1. On the Layout tab, click In line with text.

  2. Click OK, and then click OK again to close the window.

  3. Save your Microsoft Word source document.

  4. Generate output for your project. For more information, see “Generating Output” on page 300.

  5. In Output Explorer, verify ePublisher assigned the long description to the image using the long description in the external file when it generated output by completing the following steps:

  6. On the View menu, click Output Directory.

  7. In the TargetName\ProjectName folder, open the page that contains the image to which you assigned the long description using an external file in Notepad and verify that the longdesc attribute references the external text file that contains the long description for the image, where TargetName is the name of your target, and ProjectName is the name of your project.

ePublisher/2008.3/Help/Preparing_and_Publishing_Content/Preparing_Word_Files.2.76 (last edited 2008-10-11 06:33:31 by BenAllums)