Adding Captions

   

Director allows you to provide text captioning for hearing-impaired users. Although this feature was most likely added to meet Section 508 guidelines, its implementation in Director is of extremely limited use.

Director's text captioning works only with sprites for which text-to-speech has been implemented. When the user selects a spriteeither with the mouse or from the keyboardand the accompanying text is spoken, the text also appears in a caption box on the Stage, where hearing-impaired users can read it. Since the purpose of text-to-speech is to describe visual sprites to visually impaired users, it's hard to imagine why hearing-impaired users would need to read the descriptions (since they can presumably see the sprites that are being described).

A legitimately useful implementation of text captioning would allow captions to be synchronized with sound or digital video files, similar to the closed captioning used on TV. Though this can't be done in Director, it can be done with Apple's QuickTime Pro, by adding a text track to a QuickTime file. The resulting captioned file can then be imported into Director. (Techniques for implementing captioning in QuickTime are outside the scope of this book, but you can find much information on the subject by searching for QuickTime captioning on the Web.)

To add text captioning to a Director movie:

  1. Open a movie in which keyboard navigation and text-to-speech have been implemented. (See "About Keyboard Navigation" and "Adding Text-to-Speech Capability," earlier in this chapter.)

  2. Choose Window > Text Inspector to open the Text Inspector.

  3. In the Score, select the cell where you want the caption box to appear.

  4. Click the Text tool in the Tool palette.

    You'll use this tool to create the caption box.

  5. On the Stage, position the mouse pointer at the place where you want the upper-left corner of the caption box to be.

  6. Press the mouse button and drag horizontally.

    A rectangle appears on the Stage.

  7. When you reach the desired width of the caption box, release the mouse button.

    The border of the rectangle widens, and a flashing insertion point appears inside ( Figure 20.32 ).

    Figure 20.32. When you first create the caption box, you can set its width, but not its height.

    graphics/20fig32.gif

  8. In the Text Inspector, set the font, size , style, and other attributes of the caption text. (If you wish, you can type some text in the rectangle to use as a reference; see Figure 20.33 )

    Figure 20.33. You may want to type some temporary text in the rectangle so you can see the effects of the settings you've made in the Text Inspector.

    graphics/20fig33.gif

    You may want to set the background color of the text to be different from the background color of the Stage, so that the caption box is easily visible.

  9. If you typed any text in the rectangle, delete it.

  10. Click anywhere on the Stage outside the rectangle.

    The rectangle disappears, but the empty caption box remains on the Stage ( Figure 20.34 ).

    Figure 20.34. The empty caption box on the Stage.

    graphics/20fig34.gif

  11. Select the caption box sprite on the Stage or in the Score.

  12. Click the Text tab in the Property Inspector.

  13. From the Framing menu in the Property Inspector, choose Fixed.

  14. On the Stage, drag the lower-right corner of the caption box until it reaches the desired depth.

  15. Choose Window > Library Palette to open the Library palette.

  16. Choose Accessibility from the Library List pop-up menu.

    The list of accessibility behaviors appears.

  17. Drag the Accessibility Captioning behavior from the Library palette to the Stage, and drop it on the caption-box sprite.

    A Parameters dialog box appears ( Figure 20.35 ).

    Figure 20.35. Parameters for the Accessibility Captioning behavior, which turns a regular text sprite into a caption box.

    graphics/20fig35.gif

  18. From the "Which Accessibility Group does this belong to?" pop-up menu, choose the name of the accessibility group of the other sprites currently on the Stage. (In most cases, there will be only one name on the menu.)

  19. Click OK to close the dialog box.

  20. Drag the Accessibility Sync Caption behavior from the Library palette to the Stage, and drop it on a sprite for which you want captioning to be enabled.

    The sprite must already have the Accessibility Item behavior and the Accessibility Group Order behavior applied to it (from when you added keyboard navigation), as well as the Accessibility Speak or Accessibility Speak Member Text behavior (from when you added text-to-speech).

    When you drop the behavior on the sprite, a Parameters dialog box appears ( Figure 20.36 ).

    Figure 20.36. Parameters for the Accessibility Sync Caption behavior, which allows you to determine the rate at which a text caption is displayed.

    graphics/20fig36.jpg

  21. From the "Which Accessibility Group does this belong to?" pop-up menu, choose the name of the accessibility group of the other sprites currently on the Stage. (In most cases, there will be only one name on the menu.)

  22. If you want the text caption to remain visible in the box after the speech is finished, deselect the "Clear when done?" check box. Otherwise, leave it selected.

  23. In the first "At word" field, enter the number of the word at which you want captioning to begin.

    For example, if you want the caption to start displaying when the first word is spoken, enter 1. If you want the first word to be omitted from the caption (which you might, if the first word is Picture: or Button: ), enter 2.

  24. In the "Display how many of the words that follow?" field, enter the total number of words that you want to be displayed at the same time the first word is displayed. For example, if you want the caption box to hold ten words at a time, enter 10.

  25. In the next "At word" field, enter the number of the word at which you want the next chunk of captioning to begin.

    At most, this should be 1 plus the total number of words that have been displayed so far. If you want portions of the captions to overlap, you might enter a lower number.

  26. In the next "Display how many of the words that follow?" field, enter the total number of words that you want to be displayed in the second chunk of the caption. This may or may not be the same number you entered in the previous "Display how many of the words that follow?" field.

  27. Repeat steps 25 and 26 until you've accounted for all the words in the spoken text that accompanies the sprite ( Figure 20.37 ).

    Figure 20.37. Here's how the parameters might be filled in for a 21-word caption.

    graphics/20fig37.gif

  28. Click OK to close the dialog box.

  29. Repeat steps 20 through 28 for each sprite on the Stage to which you want to apply text captioning.

  30. Click on the Stage to make it the active window.

  31. Test the movie.

    As you press the Tab key to move from sprite to sprite, the computer speaks the text associated with each sprite, and the spoken text is displayed visually in the caption box ( Figure 20.38 ).

    Figure 20.38. As each sprite is highlighted in turn , its spoken text appears in the caption box.

    graphics/20fig38.gif

To create an on/off switch for text captioning:

  • Follow the directions for "To create an on/off switch for speech-to-text" (earlier in this chapter), but choose Captioning On and/or Captioning Off in step 12.

   


Macromedia Director MX for Windows and Macintosh. Visual QuickStart Guide
Macromedia Director MX for Windows and Macintosh. Visual QuickStart Guide
ISBN: 1847193439
EAN: N/A
Year: 2003
Pages: 139

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net