I checked the en/language/operators.xml file against the PDF document and
the -- is being turned into a endash even if it's inside a <programlisting>
block.  I can try additionally surrounding them with literal tags to see if
that helps.

Anyone else have any suggestions?  What about pre-processing the xml files
before it's passed to TeX, so that the -- can be escaped properly?

Daniel

----- Original Message -----
From: "Jirka Kosek" <[EMAIL PROTECTED]>
Newsgroups: php.doc
To: <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 9:59 AM
Subject: Re: [PHP-DOC] PDF bug with "--" operators


> Daniel Beckham wrote:
>
> > It seems that the -- (variable increment or decrement) is being
converted
> > into a single endash/emdash ( - ) in the PDF version of the manual.  How
can
> > we go about fixing this issue?  Is there anyone specifically in charge
of
> > the PDF generation?
>
> Most of TeX fonts have ligature which turns two - into en-dash. This
> behaviour is not in effect when using monospaced fonts. I can not check
> it in PDF version, but I think that -- are corrupted only inside of
> paragraphs, not in programlisting. Adding something like <literal>
> around inline code can help:
>
> E.g.
>
> Another good example of expression orientation is pre- and
>     post-increment and decrement.  Users of PHP/FI 2 and many other
>     languages may be familiar with the notation of
> <literal>variable++</literal> and
>     <literal>variable--</literal>.  These are increment and decrement
> operators.  In
>     PHP/FI 2, the statement '<literal>$a++</literal>' has no value (is
> not an
>     expression), and thus you can't assign it or use it in any way.
>
> -----------------------------------------------------------------
>   Jirka Kosek
>   e-mail: [EMAIL PROTECTED]
>   http://www.kosek.cz
>
>

Reply via email to