Your message dated Sat, 25 Mar 2006 19:47:09 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#350412: fixed in tex4ht 20060312-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: tex4ht
Version: 20051223-1
Severity: normal

*** Please type your report below this line ***

This is a long report. A short table of contents:

  1 Tests showing the problem
  2 Proposal for fix
  2.1 Suggested patch
  2.2 Tests that the patch passes
  2.3 Explanation of patch

* 1 Tests showing the problem

Test file named test.tex:

\documentclass[a4paper]{article}

\begin{document}

\section{A section}
\label{sec:section}

\begin{equation}
  \label{eq:1}
  2 + 2 = 5
\end{equation}
\end{document}

Tests producing incorrect document types:

1) Command line: mk4ht xhmlatex test.tex "xhtml,frames"

   Document types of output files:

   test.html:  XHTML 1.0 Frameset
   test2.html: XHTML 1.0 Transitional
   test3.html: XHTML 1.0 Transitional

2) Command line: mk4ht mzlatex test.tex "xhtml,frames"
   Also for:     mk4ht mzlatex test.tex "xhtml,frames,portable"
  
   Document types of output files:

   test.xml:   XHTML 1.1 plus MathML 2.0
   test2.xml:  XHTML 1.0 Transitional
   test3.xml:  XHTML 1.0 Transitional

Expected document types:

   test.html and test.xml:   XHTML 1.0 Frameset
   all the other files:      XHTML 1.1 plus MathML 2.0

   For mzlatex with 'pmathml' no DOCTYPE for the other files since 
   none is produced wihout the 'frames' option.

Rationale for expectation:

The main file test.html/test.xml contains frames. Only the Frameset
document type allows this.

The other files contain the content of the original document and no
frames. Since mathml is requested, the document type must allow 
mathml content, i.e. it should be XHTML plus MathMl.


* 2 Proposal for fix
** 2.1 Suggested patch:

diff -u /usr/share/texmf/tex/generic/tex4ht/html4.4ht ./html4.4ht
--- /usr/share/texmf/tex/generic/tex4ht/html4.4ht       2005-12-28 
13:38:27.000000000 +0100
+++ ./html4.4ht 2006-01-29 15:31:37.000000000 +0100
@@ -621,7 +621,7 @@
 [EMAIL PROTECTED]
   {<!ENTITY \% xhtml.dtd \xhtml:DOCTYPE>\Hnewline\%xhtml.dtd; \Hnewline}
 %
-   \def\:DTD{xhtml}
+   \csname fix:DTD\endcsname
 \else
    \Configure{DOCTYPE}{\IgnorePar\HCode
    {<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//\expandafter
diff -u /usr/share/texmf/tex/generic/tex4ht/html-mml.4ht ./html-mml.4ht
--- /usr/share/texmf/tex/generic/tex4ht/html-mml.4ht    2005-12-28 
13:38:27.000000000 +0100
+++ ./html-mml.4ht      2006-01-29 15:35:37.000000000 +0100
@@ -46,8 +46,7 @@
 "\Hnewline
      "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";
 }
-\def\:temp{xhtml}
-\ifx \:DTD\:temp
+\def\fix:DTD{%
    \Configure{DOCTYPE}{\HCode
   {<!DOCTYPE html PUBLIC
      "-//W3C//DTD XHTML 1.1 plus MathML 2.0//\expandafter
@@ -58,8 +57,10 @@
      "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";
 %
    >\Hnewline
-}}
-
+}}}%
+\def\:temp{xhtml}%
+\ifx \:DTD\:temp
+   \fix:DTD
 \fi
 \Configure{halignTD} {}{}
    {<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
diff -u /usr/share/texmf/tex/generic/tex4ht/mozilla.4ht ./mozilla.4ht
--- /usr/share/texmf/tex/generic/tex4ht/mozilla.4ht     2005-12-28 
13:38:27.000000000 +0100
+++ ./mozilla.4ht       2006-01-29 15:35:40.000000000 +0100
@@ -57,24 +57,11 @@
                 \ConfigureHinput{tex4ht}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     \:CheckOption{pmathml} \if:Option
-    \Configure{DOCTYPE}{}
-
-\else
-    \Configure{DOCTYPE}
-  {\IgnorePar
-    \HCode{<!DOCTYPE html
-   PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//\expandafter
-\ifx \csname a:dtd-lang\endcsname\relax EN\else
-  \csname a:dtd-lang\endcsname
-\fi
-"\Hnewline
-   "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";
-   >\Hnewline
-%   "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"; [\Hnewline
-%     <!ENTITY mathml "http://www.w3.org/1998/Math/MathML";>\Hnewline
-%  ]>\Hnewline
-  }}
-
+    \def\fix:DTD{\Configure{DOCTYPE}{}}%
+  \def\:temp{xhtml}%
+  \ifx \:DTD\:temp
+     \fix:DTD
+  \fi
 \fi
 \Configure{XML-STYLESHEET}
   {\HCode{<?xml-stylesheet type="text/css"

** 2.2 Tests that the patch passes:
Command lines:

htlatex test.tex
mk4ht xhlatex test.tex
mk4ht xhmlatex test.tex
mk4ht mzlatex test.tex
mk4ht mzlatex test.tex "xhtml,pmathml"

htlatex test.tex "html,frames"
mk4ht xhlatex test.tex "xhtml,frames"
mk4ht xhmlatex test.tex "xhtml,frames"
mk4ht mzlatex test.tex "xhtml,frames"
mk4ht mzlatex test.tex "xhtml,frames,pmathml"

In all cases, the document types are:
* HTML for htlatex and XHTML otherwise.
* Frameset for the main document if 'frames' specified.
* For all other documents and the main document without 'frames':
  * Transitional for htlatex and xhlatex
  * XHTML+MathML for xhmlatex and mzlatex without 'pmathml'
  * No DOCTYPE for mzlatex with 'pmathml'

** 2.3 Explanation of patch

I think the problem is that modules \Configure{DOCTYPE} commands 
interact badly.  I suggest the following method:

html4.4ht:

It indicates by setting \:DTD to xhtml that xhtml modules should 
\Configure{DOCTYPE} at Preamble time.  (I think this is already the 
intention of this macro.)  Irrespective of \:DTD modules also set 
\fix:DTD to be the appropriate \Configure{DOCTYPE} at Preamble time.
Then it is the duty of html4.4ht to call \fix:DTD to actually set 
the DOCTYPE.

At Preamble time, the last loaded module's setting wins.
This has to be considered in the loading order.

\:DTD must be set before the other modules are called at Preamble 
time.

The change in html4.4ht is merely to call \fix:DTD at the 
appropriate time.

html-mml.4ht:

The change is just for complying the above policy.

mozilla.4ht:

The change is also for compliance.
It relies on the fact that it is loaded _after_ html-mml.4ht.

It merely deletes the DOCTYPE for the 'pmathml' option.

The \else branch is removed because the DOCTYPE is already set by 
html-mml.4ht.

Best wishes,

        Gabor Braun

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.14-2-686
Locale: LANG=hu_HU.iso88592, LC_CTYPE=hu_HU.iso88592 (charmap=ISO-8859-2) 
(ignored: LC_ALL set to hu_HU.iso88592)

Versions of packages tex4ht depends on:
ii  libc6                     2.3.5-8        GNU C Library: Shared libraries an
ii  libkpathsea3              2.0.2-30sarge4 path search library for teTeX (run
ii  tetex-bin                 3.0-13         The teTeX binary files
ii  tex4ht-common             20051223-1     LaTeX and TeX for Hypertext (HTML)

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: tex4ht
Source-Version: 20060312-1

We believe that the bug you reported is fixed in the latest version of
tex4ht, which is due to be installed in the Debian FTP archive:

tex4ht-common_20060312-1_all.deb
  to pool/main/t/tex4ht/tex4ht-common_20060312-1_all.deb
tex4ht_20060312-1.diff.gz
  to pool/main/t/tex4ht/tex4ht_20060312-1.diff.gz
tex4ht_20060312-1.dsc
  to pool/main/t/tex4ht/tex4ht_20060312-1.dsc
tex4ht_20060312-1_i386.deb
  to pool/main/t/tex4ht/tex4ht_20060312-1_i386.deb
tex4ht_20060312.orig.tar.gz
  to pool/main/t/tex4ht/tex4ht_20060312.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kapil Hari Paranjape <[EMAIL PROTECTED]> (supplier of updated tex4ht package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 21 Mar 2006 11:28:43 +0530
Source: tex4ht
Binary: tex4ht tex4ht-common
Architecture: source i386 all
Version: 20060312-1
Distribution: unstable
Urgency: low
Maintainer: Kapil Hari Paranjape <[EMAIL PROTECTED]>
Changed-By: Kapil Hari Paranjape <[EMAIL PROTECTED]>
Description: 
 tex4ht     - LaTeX and TeX for Hypertext (HTML) - executables
 tex4ht-common - LaTeX and TeX for Hypertext (HTML) - support files
Closes: 350411 350412 350768 357263
Changes: 
 tex4ht (20060312-1) unstable; urgency=low
 .
   * New upstream release (2006-03-12-21:45).
         - Fixes the conversion lines for "gif"
           and "svg" formats. Closes: #350411.
         - Fixes the DTD header for xhtml output
           with frames. Closes: #350412.
         - Fixes an XML error in the mathml output.
           Closes: #350768.
   * Replaced the use of "\href" with "\url" in tex4ht_doc.tex.
     Thanks to Braun Gabor for this bug report and patch,
     and numerous others that led to the fixes described above.
   * Build with libkpathsea4 if possible. Thanks to
     Frank Ku:ster. Closes: #357263.
   * Added bugfixes*.html files to doc directory from
     the upstream web site. These files provide the "NEWS"
     and "changelog(s)" for the package.
Files: 
 d06b61a9a6fd23bbedf21a3779ec3e43 633 tex optional tex4ht_20060312-1.dsc
 51f5bbb2bc995a0fb097637d0abee7a8 3420764 tex optional 
tex4ht_20060312.orig.tar.gz
 55ed56e1a1038a4fafd295ebe5189ff8 90324 tex optional tex4ht_20060312-1.diff.gz
 e0818e96551ed53a8500be8d437bd85e 1273472 tex optional 
tex4ht-common_20060312-1_all.deb
 6de1175154f8445684e7f900d4b58340 162760 tex optional tex4ht_20060312-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEJgmKipBneRiAKDwRAgTTAKCpAoQEcHne1VK+j0JRkdoudqHAkQCgpk5m
hw88qASW4bRYLW96iLWCKOE=
=1pAL
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to