[Po4a-devel]Canonizing tabs

Martin Quinson martin.quinson@loria.fr
Wed, 23 Mar 2005 01:14:14 +0100


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

On Wed, Mar 23, 2005 at 12:55:24AM +0100, Nicolas Fran=E7ois wrote:
> On Tue, Mar 22, 2005 at 08:27:58AM +0100, Martin Quinson wrote:
> > And from memory, the groff behaviour is to consider as verbatim any
> > paragraph containing a white char (space or tab) at the first position =
of
> > any line (not only the first one).
>=20
> I could not find any reference in the info groff, but experimentally, I
> would say it's only spaces, and on any line except the first one.
>=20
> I fact, I'm not really concerned by tabs at the beginning of lines, but in
> their middle.

If so, you can move the s/\t/  / before the s/\n/  / and change it to a=20
s/\n\t+/  /. It will do the trick for Jordi's xml document, and may make
your life easier.

> > I think that this patch won't break anything.
>=20
> I launched the testsuite/check script before and after the patch.
> The patch changes the result for 5 pages:
> metamail.1
> mimencode.1
> This pages are buggy.
>=20
> totem.1
> There were already a po4a bug for this one (due to tabs)
>=20
> syslog-ng.conf.5
> sane-avision.5
> Not an important change (I would say these page is buggy)
>=20
> So, that's what I feared and hoped: there are some differences, but on
> buggy (or quite) man pages.
>=20
> I'm quite uncomfortable with totem, because the author tried very hard to
> use tabs as a formatting tool (using .ta).
> But that makes only one page out of 5000. However, I may try to detect
> when these tabs are used for formatting.
>=20
>=20
> Given the advantages for the other formats, I now think it is better to u=
se
> it.

Cool, thanks for testing.
Mt.

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

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

iD8DBQFCQLTWIiC/MeFF8zQRAvguAJ4mJbw1FElPmV8XeLrrMNV7H0midACguadZ
eM+pruo3w00VyypSl6Sp2Qw=
=bteT
-----END PGP SIGNATURE-----

--yVhtmJPUSI46BTXb--