bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pdfeTeX error when compiling lilypond.texi with accents in node names


From: John Mandereau
Subject: pdfeTeX error when compiling lilypond.texi with accents in node names
Date: Fri, 22 Jun 2007 17:26:09 +0200

Hello,

I'm trying to compile LilyPond user manual in PDF in languages other
than English (French, Spanish and German).  The Texinfo source is in
UTF-8, many node names and section titles contain accented characters.

I'm running an i686 with Fedora 7, TeXlive 2007 (teTeX is not installed
at all) and Texinfo from CVS.

texi2pdf is called from within makefiles; on my computer, the command
line is

texi2pdf -I /home/lilycvs/git/lily/m-trans/Documentation/user/./out-www --batch 
 lilypond.texi

The first pdfetex pass is OK, except some undefined cross-references
caused by non-perfect text substitution of references and node names.
On the second pass, pdfetex finds an error at the right beginning of
lilypond.aux; it seems that it's caused by an acent @' in first xfdef
argument.  That is strange, as the attached sample.texi contains node
names and section titles with accents, and yet texi2pdf compiles it with
with no error or warning.

I'm not sure how to solve this.  If first argument of @xrdef is only
used internally, is it possible to add a routine which strips accents
@-commands in it to avoid the error?

Besides this, accents disappear in PDF index side pane; is it possible
to keep them?


Here's the head of lilypond.aux:

@xrdef{Pr@'eface-title}{Préface}
@xrdef{Pr@'eface-snt}{}
@xrdef{Pr@'eface-pg}{1}
@xrdef{Introduction-title}{Introduction}
@address@hidden 1}
@xrdef{Gravure-title}{Gravure}
@address@hidden 1.1}
@xrdef{Introduction-pg}{2}
@xrdef{Gravure-pg}{2}
@xrdef{Gravure automatis@'ee-title}{Gravure automatisée}


and here's an excerpt of lilypond.log:

(/usr/local/texlive/2007/texmf-patch/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.3 <23 July 2005>
\epsffilein=\read1
\epsfframemargin=\dimen38
\epsfframethickness=\dimen39
\epsfrsize=\dimen40
\epsftmp=\dimen41
\epsftsize=\dimen42
\epsfxsize=\dimen43
\epsfysize=\dimen44
\pspoints=\dimen45
)
\noepsfhelp=\toks26
localization,
\nolanghelp=\toks27
\defaultparindent=\dimen46
and turning on texinfo input format.) (./lilypond.aux
./lilypond.aux:1: Missing @endcsname inserted.
<to be read again> 
                   @accent 
@'#1->address@hidden 
               19 #1}
<argument> Pr@'e
                face-title
@xrdef #1#2->@expandafter @gdef @csname XR#1
                                            @endcsname address@hidden
@iff...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

./lilypond.aux:1: Missing { inserted.
@'#1->address@hidden 19 #1}
                     
<argument> Pr@'e
                face-title
@xrdef #1#2->@expandafter @gdef @csname XR#1
                                            @endcsname address@hidden
@iff...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
Where was the left brace? You said something like `\def\a}',
which I'm going to interpret as `\def\a{}'.

./lilypond.aux:1: Extra @endcsname.
@xrdef ...xpandafter @gdef @csname address@hidden 
                                                  address@hidden
@iffloat ...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
I'm ignoring this, since I wasn't doing a \csname.

Missing character: There is no à in font cmr10!
Missing character: There is no © in font cmr10!
./lilypond.aux:1: Missing @endcsname inserted.
<to be read again> 
                   @accent 
@'#1->address@hidden 
               19 #1}
<argument> Pr@'e
                face-title
@xrdef ...e address@hidden @iffloat @csname XR#1
                                                  @endcsname
@expandafter @l...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

./lilypond.aux:1: Use of @XRPr{ doesn't match its definition.
@iffloat #1->@expandafter @doiffloat #1=
                                        address@hidden 
<to be read again> 
                   @accent 
@'#1->address@hidden 
               19 #1}
<argument> Pr@'e
                face-title
@xrdef ...e address@hidden @iffloat @csname XR#1
                                                  @endcsname
@expandafter @l...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.

./lilypond.aux:1: Argument of @doiffloat has an extra }.
<inserted text> 
                @par 
<to be read again> 
                   }
<argument> Pr@'e
                face-title
@xrdef ...e address@hidden @iffloat @csname XR#1
                                                  @endcsname
@expandafter @l...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
@finish @accent 19 e
./lilypond.aux:1: Paragraph ended before @doiffloat was complete.
<to be read again> 
                   @par 
<to be read again> 
                   }
<argument> Pr@'e
                face-title
@xrdef ...e address@hidden @iffloat @csname XR#1
                                                  @endcsname
@expandafter @l...
l.1 @xrdef{Pr@'eface-title}{Préface}
                                     
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.


Greetings
-- 
John Mandereau <address@hidden>
\input texinfo   @c -*-texinfo-*-

@documentlanguage fr
@documentencoding UTF-8

@c
@c %**start of header
@setfilename sample.info
@settitle Test de manuel en français
@c %**end of header


@copying
This is a short example of a complete Texinfo file in French, based on
the sample from GNU Texinfo manual.
@end copying

@titlepage
@title Ceci est un titre avec des caractères accentués
@page
@vskip 0pt plus 1filll
@insertcopying
@end titlepage

@c Output the table of the contents at the beginning.
@contents

@ifnottex
@node Top
@top Échantillon (ou plutôt exemple, mais je voulais des accents) de manuel en 
français

@insertcopying
@end ifnottex

@menu
* Élucubrations::               chapitre contenant une référence au chapitre 
suivant
* Référence::                   chapitre vide
* Index::                       index complet
@end menu


@node Élucubrations
@chapter Élucubrations

@cindex élucubrations

Ceci est le premier chapitre.
@cindex entrée d'index, autre

Voici une énumération.

@enumerate
@item
blablablableûh

@item
blablablablé
@end enumerate

Ceci @ref{Référence} est une référence au chapitre suivant.

@node Référence
@chapter Référence (vide)

Ce chapitre est vraiment vide.

@node Index
@unnumbered Index

@printindex cp

@bye


reply via email to

[Prev in Thread] Current Thread [Next in Thread]