[Po4a-devel]Design of the (La)TeX module

Martin Quinson martin.quinson@imag.fr
Thu, 23 Dec 2004 15:12:15 +0100


--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 11, 2004 at 06:14:13PM +0100, Nicolas Fran=E7ois wrote:
> On Sat, Dec 11, 2004 at 02:47:51PM +0100, Denis Barbier wrote:
> > On Sat, Dec 11, 2004 at 12:15:29PM +0100, Nicolas Fran=E7ois wrote:
> > [...]
> > > Here is what I'm doing when I encounter the following block:
> > >=20
> > > foo
> > > bar %baz
> > > qux
> > > %quux
> > > corge
> > > grault
> > >=20
> > > I first remove the %baz comment, and store it a table. This comment w=
ill
> > > disappear from the final document, but I will show it in the PO (poss=
ibly
> > > at a wrong place) because it may help the translation.
> > > Then, for the %quux comment, I consider that this comment separate two
> > > paragraphs, which will be translated separately.
> >=20
> > But this is wrong, in LaTeX this comment is ignored and there is only
> > one paragraph in your example above.
>=20
> In this case, I'm modifying the parse function;)

Actually, % also comments the end of line in LaTeX. In addition, white chars
at the begining of the line are not taken into account. As a result, those
two forms are strictly equivalent.
>>>
toto%
  tutu
<<<
>>>
tototutu
<<<

This becomes important when you do some TeX coding:=20
\def\interfbuild#1#2{\mathrel{\mathop{%
  \rlap{%
    \raise .6ex%
    \hbox{\ensuremath{#1}}%
  }%
  \raise -.2ex%
  \hbox{\ensuremath{#2}}%
}}}

Those beasts become hairly when not indented, and extra spaces are not
welcome around those definitions. I know that your goal is not to eat
documents defining such beasts for now, but maybe one day ?

Mt.

PS: Sorry for the delay...

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBytI/IiC/MeFF8zQRAsxhAJ4qkAnYzI5YOb2BjkMu2KMg3GxDgQCgls61
QRIFHR8NuHVZEE4bsbUfiDI=
=W9nY
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--