0.3 Preamble

<..configure html-speech tex4ht..>
 \Configure{VERSION}
     {\HCode{<?xml version="1.0" <.xml encoding.> ?>\Hnewline
             <?xtpipes file="htspk.4xt" ?>\Hnewline}}
-_-_-

<..xml encoding..>
 encoding="\expandafter\ifx \csname a:charset\endcsname\relax
          \expandafter\:encoding\A:charset
    \else \expandafter\:encoding\a:charset\fi"
-_-_-

<..configure html-speech Preamble..>
 \:CheckOption{math-}     \if:Option
     \edef\Preamble{\Preamble,mathml-}
 \else
    \Log:Note{for sources failing to produce
        clean math code, try the command line option ‘math-’}%
 \fi
-_-_-

<..configure html-speech Preamble..>+
 \def\CssSpeech#1{\Css{@media speech{#1}}}
 \def\add:description#1#2{<span class="#1"
            title="speech-extra" >\Hnewline #2\Hnewline</span>}
 \def\add:vdescription#1#2{<div class="#1"
            title="speech-extra" >\Hnewline #2\Hnewline</div>}
-_-_-

The attribute ‘title="speech-extra"’ is useful when there is a need to check just the content provided to the translation.

<..configure html-speech tex4ht..>+
 \Css{.begin-math, .end-math                    {color:red;}}
 \Css{span.semi-math            {color:red;font-style:italic;}}
 \Css{span[title="ch-verbose"]                    {color:red;}}
 \Css{.added-description                        {color:green;}}
 \Css{.begin-end                                {color:green;}}
 \Css{.begin-root, .end-root, .mid-root         {color:green;}}
 \Css{.begin-stack, .end-stack, .mid-stack      {color:green;}}
 \Css{.capital-description                      {color:green;}}
-_-_-

<..configure emacspeak tex4ht..>
 \CssSpeech{.begin-end                    {stress:4; richness:4;}}
 \CssSpeech{.begin-math, .end-math        {stress:3; richness:5;}}
 \CssSpeech{.semi-math     {pitch: 8; pitch-range: 7; volume: 5;}}
 \CssSpeech{.begin-root, .end-root, .mid-root         {stress:3;}}
 \CssSpeech{.begin-stack, .end-stack, .mid-stack      {stress:3;}}
 \CssSpeech{.char-del                                 {stress:4;}}
 \CssSpeech{.capital-description                      {stress:4;}}
 \CssSpeech{body {speak-punctuation: none}}
-_-_-

<..show input line no..>
 <!--l. \the\inputlineno-->%
-_-_-

<..configure html-speech Preamble..>+
 \edef\Preamble{\Preamble,xhtml}
-_-_-

<..configure html-speech tex4ht..>+
 \Configure{DOCTYPE}
   {\HCode{% <!DOCTYPE html \xhtml:DOCTYPE>            \Hnewline
           <!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
           \Hnewline}}
 \def\xhtml:DOCTYPE{PUBLIC
      "-//W3C//DTD XHTML 1.0 Transitional//<.dtd lang.>"\Hnewline
     \space\space "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}
-_-_-

The DOCTYPE is not provided since we don’t know how to hide it from Java SAX in stpipes.