<br><br><div class="gmail_quote">On Thu, Jul 28, 2011 at 12:56 AM, Ulrike Fischer <span dir="ltr"><<a href="mailto:news3@nililand.de">news3@nililand.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Am Thu, 28 Jul 2011 00:19:57 -0700 schrieb Johannes Wilm:<br>
<div class="im"><br>
<br>
> What I wonder though is what the state of the HTML that is being output<br>
> really is. It seems to me specifically that:<br>
><br>
> a. almost none of the <p>-tags are closed<br>
<br>
</div>Use the xhtml-Option I mentioned earlier.<br></blockquote><div><br></div><div>Ah, yes that's probably what I should done to start out with. Now when I switch html for xhtml, it somehow breaks my SVG-fixing script. I didn't know that the html-option would produce partially invalid HTML, as it seems.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> b. an element that is used a lot are "tspans" which the W3C validation<br>
> claims to not have heard about.<br>
<br>
</div>Make small, complete example that shows this how you got this<br>
element.<br></blockquote><div><br></div><div>I used the options:</div><div><br></div><div><i>\usepackage[html,fn-in,png,charset=utf-8]{tex4ht}</i></div><div><br></div><div><br></div><div>But given that changing to xhtml things start breaking again, I think I will leave all that alone. </div>
<div><br></div><div>What worked for me is another quick-fix, including the following two lines in my script:</div><div><br></div><div><i>rpl tspan span *html</i></div><div><i>tidy -utf8 -m -c --drop-proprietary-attributes true *.htm</i>l</div>
<div> </div><div><br></div><div>Unless I have overseen something, it all seems to work out now. And the epub-files that Calibre cna produce of it seem to work as well.</div></div><br clear="all">I guess everything is currently changing, like<div>
<br></div><div>bibtex -> biblatex</div><div>pdftex -> luatex</div><div>8 bit -> utf-8</div><div>PDF -> EPUB</div><div>PNG -> SVG</div><div>Kile -> LyX</div><div><br></div><div>Maybe that's why everything looks like it is in a semi-broken state right now. I haven't been around long enough to know whether things always are like this. I hope that over time I will be able to remove more and more components of my monster-script, as the native applications manage to get rid of their internal issues. I'll be happy to mail the script to anyone, although it's really just a large and confusing piece of spaghetti-code to anyone other than me.<br>
<div><br></div><div><br>-- <br>Johannes Wilm<br><a href="http://www.johanneswilm.org" target="_blank">http://www.johanneswilm.org</a><br>tel: +1 (520) 399 8880<br><div style="display:inline"></div><br>
</div></div>