3.7 Accents

<..latex,plain accents..>
 \:CheckOption{new-accents}     \if:Option
    <.new accents.>
 \else
    <.old accents.>
 \fi
 \let\^^_=\v
-_-_-

<..latex accents..>
 \let\@acci=\’ \let\@accii=\‘ \let\@acciii=\=
-_-_-

<..new accents..>
 \:CheckOption{accent-}     \if:Option
   \Configure{HAccent}\acute{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\bar{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\breve{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\check{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\ddot{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\dot{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\grave{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\hat{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\tilde{AOaoNn{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\vec{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\widehat{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\widetilde{}{\Picture+{}}{\EndPicture}
 \fi
 \:CheckOption{mathaccent-}     \if:Option
   \Configure{HAccent}\"{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\’{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\.{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\={}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\H{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\^{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\‘{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\b{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\c{Cc{}}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\d{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\t{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\u{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\v{}{\Picture+{}}{\EndPicture}
   \Configure{HAccent}\~{AOaoNn{}}{\Picture+{}}{\EndPicture}
 \fi
-_-_-

<..new accents..>+
 \Configure{accent}{*}
    {<!--tex4ht:accent\Hnewline font="}{" char="}{" type="}{"-->}
    {<!--tex4ht:end accent-->}
 \Configure{mathaccent}{*}
    {<!--tex4ht:mathaccent\Hnewline font="}{" char="}{" type="}{"-->}
    {<!--tex4ht:end mathaccent-->}
 \Configure{accented}{*}
    {<!--tex4ht:accented\Hnewline font="}{" char="}{" type="}{"-->}
    {<!--tex4ht:end accented-->}
 \Configure{accenting}{*}
    {<!--tex4ht:accenting\Hnewline-->}
    {<!--tex4ht:end accenting-->}
-_-_-

<..old accents..>
 \Configure{accent}\‘\grave{A{A}E{E}I{I}O{O}U{U}%
                    a{a}e{e}i{i}\i{i}o{o}u{u}{}{}}
    {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
 \Configure{accent}\’\acute{A{A}E{E}I{I}O{O}U{U}Y%
            {Y}a{a}e{e}i{i}\i{i}o{o}u{u}y{y}{}{}}
    {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
 \Configure{accent}\^\hat{A{A}E{E}I{I}O{O}U{U}a{a}%
                       e{e}i{i}\i{i}o{o}u{u}{}{}}
    {\a:accents{circ}{#1}}   {\b:accents{hat}{#1}{#2}}
 \Configure{accent}\~\tilde{A{A}O{O}a{a}o{o}N{N}n{n}{}{}}
    {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
 \Configure{accent}\"\ddot{A{A}E{E}I{I}O{O}U{U}Y%
            {Y}a{a}e{e}i{i}\i{i}o{o}u{u}y{y}{}{34}}
    {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
-_-_-

The following are also placed under accents configuration.

<..old accents..>+
 \Configure{accent}\c\c{C{C}c{c}{}{}}
    {\a:accents{cedil}{#1}}     {\b:accents{cedil}{#1}{#2}}
 \Configure{accent}\t\t{{}{}}
    {\a:accents{udot}{#1}}     {\b:accents{udot}{#1}{#2}}
 \Configure{accent}\H\H{{}{}} {}{\b:accents{Huml}{#1}{#2}}
-_-_-

The following originally have been defined to be parameter-less.

<..old accents..>+
 \Configure{accent}\.\dot{{}{}}  {}{\b:accents{dot}{#1}{#2}}
 \Configure{accent}\u\breve{{}{}}{}{\b:accents{breve}{#1}{#2}}
 \Configure{accent}\vec\vec{{}{}}{}{\b:accents{vec}{#1}{#2}}
 \Configure{accent}\v\check{{}{}}{}{\b:accents{check}{#1}{#2}}
 \Configure{accent}\=\bar{{}{}}  {}{\b:accents{bar}{#1}{#2}}
-_-_-

<..old accents..>+
 \Configure{accent}\widetilde\widetilde{{}{}}
    {}{\b:accents{widetilde}{#1}{#2}}
 \Configure{accent}\widehat\widehat{{}{}}
    {}{\b:accents{widehat}{#1}{#2}}
-_-_-

\vec, \widetilde, and \widehat are for math mode. \b, \c, \d, \t, and \H are for text mode.

<..configure tei-math plain..>
 <.shared latex,plain accents.>
-_-_-

<..configure tei-math latex..>
 <.shared latex,plain accents.>
-_-_-

<..shared latex,plain accents..>
 \:CheckOption{new-accents}     \if:Option \else
    \Configure{accents}
      {\ifmmode \expandafter\mathord\fi
       {<.temp hcode accents.>%
       \ht:special{t4ht@[}#2\ht:special{t4ht@]}}}
      {\ifmmode \expandafter\mathord\fi
        {\HCode{<term type=’accent#1’>}#3\HCode{</term>}}}
 \fi
-_-_-

<..temp hcode accents..>
 \HCode{&\#x\expandafter \ifx\csname U#2#1\endcsname\relax
                  #2#1\else \csname U#2#1\endcsname\fi;}%
-_-_-