#107 PassiveTeX bookmarks fix

XSL (399)

If you generate PDF using PassiveTeX, the bookmarks
for chapters and
sections come out looking like this:

Chapter"A0'fotex3."A0'fotexDownloading and Installing
3.1"A0'fotexHandling Kohlrabi
3.2"A0'fotexSpecial Precautions for Brussel

Apparently the "A0fotex is how fotex.xmt interprets the
  included for each space in the fo. The   is
apparently generated from the   inserted in lieu of
spaces in the some (but not all) language files for the
title-numbered context, which looks something like this
(in the en.xml file):

<l:context name="title-numbered">
<l:template name="appendix" text="Appendix %
n. %t"/>
<l:template name="bridgehead" text="%n. %t"/>
<l:template name="chapter" text="Chapter %
n. %t"/>
<l:template name="sect1" text="%n. %t"/>
<l:template name="sect2" text="%n. %t"/>
<l:template name="sect3" text="%n. %t"/>
<l:template name="sect4" text="%n. %t"/>
<l:template name="sect5" text="%n. %t"/>
<l:template name="section" text="%n. %t"/>
<l:template name="simplesect" text="%t"/>

I put the following in my customization layer for fo

<xsl:param name="local.l10n.xml" select="document

<l:l10n language="en">
<l:context name="title-numbered">
<l:template name="appendix" text="Appendix %n.
<l:template name="bridgehead" text="%n. %t"/>
<l:template name="chapter" text="Chapter %n. %
<l:template name="sect1" text="%n. %t"/>
<l:template name="sect2" text="%n. %t"/>
<l:template name="sect3" text="%n. %t"/>
<l:template name="sect4" text="%n. %t"/>
<l:template name="sect5" text="%n. %t"/>
<l:template name="section" text="%n. %t"/>
<l:template name="simplesect" text="%t"/>

This eliminated the stray fotex marks. The bookmarks
look good, and I haven't found any negative
consequence of this change, yet.

It is noteworthy that the fotex namespace apparently
does not recognize text entities. Inclusion of such
symbols as less-than signs (<) or double-quotation
marks (") or even dialiectical accents and other
marks (ñ) in titles, will result in a processing
failure from PassiveTeX.


  • Norman Walsh

    Norman Walsh - 2003-01-21
    • status: open --> closed-rejected
  • Norman Walsh

    Norman Walsh - 2003-01-21

    Logged In: YES

    Those are all PassiveTeX bugs. The &#A0; is a non-breakable
    space and that's what you need in those places to avoid bad

  • Michael(tm) Smith

    • labels: 321269 --> XSL
    • assigned_to: nobody --> xmldoc
    • milestone: --> output: print/FO/PDF
    • status: closed-rejected --> open
  • Michael(tm) Smith

    Logged In: YES

    This bug in Passivetex occurs with any document that
    generates bookmarks and that is then processed through
    Passivetex. It pretty much makes it pointless to
    generate bookmarks for Passivetex output unless we can
    figure out a way to work around it. So if we can't work
    around it, we should disable Passivetex bookmarks completely.

    Anyway, I'm re-opening it and moving to a feature
    request. It is absolutely a Passivetex bug, but
    perhaps can add some conditional logic to work around it.

  • Michael(tm) Smith

    Logged In: YES

  • Michael(tm) Smith

    • priority: 5 --> 3
  • Michael(tm) Smith

    • status: open --> closed-wont-fix
  • Michael(tm) Smith

    Logged In: YES
    Originator: NO

    retiring this... anybody still using passivetex should use dblatex or something instead


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks