\:CheckOption{xht} \if:Option
\:CheckOption{xhtml}\if:Option \else \:CheckOption{xml}\fi
\fi
\if:Option <.xht extension file name.>
\else <.html extension file name.>\fi
\def\:gobbleM#1->{}
<.meta generator / originator.>
\immediate\write-1{TeX4ht package options:
\expandafter\:gobbleM\meaning\Preamble}
\Configure{@HEAD}
{\HCode{<meta name="src"
content="\jobname.tex"\xml:empty>\Hnewline}}
\Configure{@HEAD}
{\HCode{<meta name="date"
content="\:today"\xml:empty>\Hnewline}} -_-_-
\:CheckOption{mathplayer} \if:Option
\Configure{@HEAD}{\HCode{<!--\Hnewline
<meta
http-equiv="Content-Type" content="application/xhtml+xml;
\expandafter\ifx \csname a:charset\endcsname\relax\A:charset
\else \a:charset\fi"\xml:empty>\Hnewline
see http://lists.w3.org/Archives/Public/www-math/2007May/0056.html \Hnewline
-->\Hnewline}}
\else
\Configure{@HEAD}{\HCode{<meta
http-equiv="Content-Type" content="application/xhtml+xml;
\expandafter\ifx \csname a:charset\endcsname\relax\A:charset
\else \a:charset\fi"\xml:empty>\Hnewline}}
\fi
\Configure{ext}{xht}
-_-_-
\Log:Note{for file extension name xht, use the command line option ‘xht’}%
\Configure{@HEAD}{\HCode{<meta
http-equiv="Content-Type" content="text/html;
\expandafter\ifx \csname a:charset\endcsname\relax\A:charset
\else \a:charset\fi"\xml:empty>\Hnewline}}
-_-_-
\Hnewline is needed at end of file to avoid loosing the last line under some
applications.
Tex4ht pages published through FrontPage loose the generator metas, but not the
originator-metas.
\Configure{@HEAD}{\HCode{<meta
name="generator" content="TeX4ht
(http://www.tug.org/tex4ht/)"\xml:empty>\Hnewline}}
\Configure{@HEAD}{\HCode{<meta
name="originator" content="TeX4ht
(http://www.tug.org/tex4ht/)"\xml:empty>\Hnewline
<!--\space\expandafter\:gobbleM\meaning
\Preamble\space-->\Hnewline}}
-_-_-