[tex4ht] babel breaks quotes in HTML code (Re: TOC as an HTML aside)

Hans Georg Schaathun georg+tex at schaathun.net
Wed Jun 1 23:42:02 CEST 2016

On Wed, Jun 01, 2016 at 10:10:33PM +0200, Hans Georg Schaathun wrote:
> On Wed, Jun 01, 2016 at 01:13:31PM +0200, Daniel Becker wrote:
> > here is another example:
> > 
> > Website: http://www.jpberlin.de/d.becker/
> > TeX-File: http://www.jpberlin.de/d.becker/website.tex
> > Configuration: http://www.jpberlin.de/d.becker/htlatexconf.cfg
> Thanks a lot, Daniel.  This is exactly the kind of solution
> I was looking for.
> Unfortunately, I run into a nasty problem when I switch language
> for babel.  Changing «english» for «nynorsk» as babel option,
> the HTML for a TOC entry in the left hand navigation becomes
> (for example) this:
> <ul id=\penalty \@M \discretionary {tt-}{}{t}\penalty \@M \hskip \z at skip
> oc-subsection\T1\guillemotright <li><a 
> href="links.html#x16-270003.2" id="QQ2-16-28">Links</a></li>
> Evidently, there is some smart mechanism which tries to fix the
> quotation marks.  Does anyone know how to fix this?  I don't
> quite understand why this is a problem in these particular tags,
> and not other instances of quotes in HTML attributes ...

I found a solution.
The following lines prevents the active inch mark ("):

However, I suppose there might be a better solution.

:-- Hans Georg

More information about the tex4ht mailing list