This template converts a presentation to a series of plain-text HTML pages that include the text from each slide's Title and Body placeholders. This makes the presentation accessible to site visitors with vision disabilities who use screen readers or other assistive devices to read the text on your site.
Template contents:
<html> <head> <TITLE>:Prefs.PageTitle:</TITLE> </head> <body> <CENTER> <H1>:Slide.Ph.TitleText:</H1> <p>Slide :Slide.Number: of :File.TotalSlides:</p> </center> <HR> <CENTER><H2>:Slide.Ph.SubtitleText:</H2></CENTER><FONT SIZE="4">:Slide.Ph.BodyText1_AsBullets.HTML:</FONT> <HR> <CENTER> <TABLE> <TR> <td><center>:Nav.NextOrNothing.HTML:</center></td> <TD> </TD> <TD> </TD> <TD><CENTER>:Nav.LinksToAll:</CENTER></TD> <TD> </TD> <td><center>:Nav.PreviousOrNothing.HTML:</center></td> <TD> </TD> <TD><CENTER><A accesskey="H" HREF=":Prefs.Homepage:">PPT2HTML Sample Conversions page</A></CENTER></TD> </TR> </TABLE> </CENTER> </body> </html>
And now, the line by line explanation:
<html> <head> <TITLE>:Prefs.PageTitle:</TITLE> </head> <body>
Standard HTML headers and Page Title as explained in The BASIC Template
<CENTER> <H1>:Slide.Ph.TitleText:</H1>
PPT2HTML substitutes the slide's title text for the :Slide.Ph.TitleText: placeholder.
The HTML code above makes it an HTML H1 headline and centers it.
<p>Slide :Slide.Number: of :File.TotalSlides:</p> </center>
Screenreader users may appreciate extra navigational aids to help them determine where they are in the presentation. Using the :Slide.Number: and :File.TotalSlides: placeholders here produces text like "Slide 1 of 8" in the HTML. The screen reader reads this aloud right after it reads the slide title.
<HR> <CENTER><H2>:Slide.Ph.SubtitleText:</H2></CENTER><FONT SIZE="4">:Slide.Ph.BodyText1_AsBullets.HTML:</FONT> <HR> <CENTER>
Here, we use placeholders for both the slide's Subtitle and its Body Text. It may seem odd to ask for both in one HTML page, but since PowerPoint slides can have either a subtitle or body text but not both, and since PPT2HTML blanks out any placeholders it can't "fill" with data from the presentation, this bit of trickery is the equivalent of code that says:
If this is a title slide layout and this slide has a subtitle then put the subtitle here If this is not a title slide and it has body text, then put the body text here
Using :Slide.Ph.BodyText1_AsBullets.HTML: instead of one of the other body text placeholders forces PPT2HTML to format the body text as HTML text, complete with different levels of bullet indents.
<TABLE> <TR>
Start a table to hold the text-only navigation aids we're about to add
<TD><center>:Nav.NextOrNothing.HTML:</center></TD>
First cell of the table is a link to the next slide in the presentation, but it becomes blank if we're on the last slide in the presentation (ie, there IS no next slide). The :Nav.NextOrNothing: placeholder does this automatically. See :Nav.Next: :Nav.NextOrLoop: :Nav.NextOrHome: :Nav.NextOrNothing: :Nav.NextOrNothing.HTML: to learn how you can modify the text PPT2HTML uses when it produces one of these links.
<TD> </TD> <TD><CENTER>:Nav.LinksToAll:</CENTER></TD>
A cell filled with non-breaking spaces as a spacer, then a cell filled with slide numbers, one for each slide in the presentation, and each a link to the html version of the slide.
<TD> </TD> <td><center>:Nav.PreviousOrNothing.HTML:</center></td>
Another cell with nonbreaking spaces as a spacer, then a link back to the previous slide, or a blank if we're on the first slide in the presentation.
<TD> </TD> <TD><CENTER><A accesskey="H" HREF=":Prefs.Homepage:">PPT2HTML Sample Conversions page</A></CENTER></TD>
A nonbreaking space-filled spacer cell then a link back to the home page specified in the Preferences dialog.
Setting Accesskey="H" allows the user to press Alt+H+Enter to activate the link without having to locate it manually. By using different placeholders for the Next and Previous links, we could also supply access keys for these.
</TR> </TABLE> </CENTER> </body> </html>
Close the table, close the body section, close the html section.
Supercharge your PPT Productivity with PPTools
Content authoring & site maintenance by |