Hi,

debian-faq currently FTBFS because of the very same bug on french.

For the record, here is a workaround that can be called
from debiandoc2* programs, which automatically removed such tags just before
the final build:

debiandoc2latex$* -s ./bin/fix-594846 -l $(currentlang) $< && mv $(manual).$* 
$(manual).$(currentlang).$*

This file could be provided by the package under /usr/share/debiandoc-sgml/

Tested successfully on debian-faq-fr.

-- 
Simon Paillard
#!/bin/sh

# Remove  \NoAutoSpaceBeforeFDP tags inside section to prevent PS/PDF failures
# in french
# See http://bugs.debian.org/594846 for more information
#
# Simon Paillard, May 2011


while getopts ":l:" opt
do
        case ${opt}
        in
           l) locale=${OPTARG};;
           \? ) echo "unknown option \`${OPTARG}'"; exit -1;;
        esac
done
shift $((${OPTIND} - 1))

perl -ne \
'       if ( $_ =~ /^\\section/ ) {
                my ($line) = $_ ;
                $line =~ s/\{\\NoAutoSpaceBeforeFDP//g ;
                $line =~ s/\\AutoSpaceBeforeFDP\}//g ;
                print $line ;
        }
        else {
                print $_ ;
        }' < $1 > $2

Reply via email to