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”.
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
Create a .txt file that contains each image long description.
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.
In your Microsoft Word source document, locate the image to which you want to assign a long description.
Right-click the image, and then click Format Picture or Format Object.
Change the layout setting of the image to Top and Bottom by completing the following steps:
Note: 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. On the On the Click Select your image. On the Insert your cursor into the text box, and then complete the following steps: On the In the In the 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. Click Select the text box. Right-click the selected text box, and then click On the In the Click Drag and drop the text box onto the image. Select the text box and the image. Right-click the selected text box and image, and then click Note: When you select Right-click Note: You must ensure you right-click On the Click Save your Microsoft Word source document. Generate output for your project. For more information, see “Generating Output”. 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: On the 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.
Layout tab, click Advanced.
OK. ePublisher inserts the ImageLongDescText marker into the text box.
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:
Layout tab, click In line with text.