#107 PassiveTeX bookmarks fix

closed-wont-fix
XSL (399)
3
2007-06-26
2002-10-15
Dennis Grace
No

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

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

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"/>
</l:context>

I put the following in my customization layer for fo

<xsl:param name="local.l10n.xml" select="document
('')"/>

<l:i18n
xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
>
<l:l10n language="en">
<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"/>
</l:context>
</l:l10n>
</l:i18n>

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.

Discussion

  • Norman Walsh
    Norman Walsh
    2003-01-21

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

    Logged In: YES
    user_id=81663

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

     
    • labels: 321269 --> XSL
    • assigned_to: nobody --> xmldoc
    • milestone: --> output: print/FO/PDF
    • status: closed-rejected --> open
     
  • Logged In: YES
    user_id=118135

    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.

     
  • Logged In: YES
    user_id=118135

     
    • priority: 5 --> 3
     
    • status: open --> closed-wont-fix
     
  • Logged In: YES
    user_id=118135
    Originator: NO

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