From k.heinz at janacht.kh-22.de Sun Jan 13 23:17:26 2008 Content-Type: multipart/mixed; boundary="===============1146393296963765847==" MIME-Version: 1.0 From: Klaus Heinz To: devel at lists.po4a.org Subject: [Po4a-devel] make test failure in t/20-sgml.t Date: Mon, 14 Jan 2008 00:17:11 +0100 Message-ID: <20080113231711.GB24740@silence.homedns.org> --===============1146393296963765847== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I did a "make test" for po4a 0.32 on NetBSD and see a failure in test 4/4 of t/20-sgml.t. Running "perl -I lib t/20-sgml.t" I see: 1..4 ok 1 - gettextize well simple xml documents runs ok 2 - gettextize well simple xml documents returns what is expected ok 3 - normalisation test runs --- data-20/test2.pot 2007-08-15 22:55:53.000000000 +0200 +++ tmp/po4a-normalize.po 2008-01-13 23:59:09.000000000 +0100 @@ -50,12 +50,12 @@ msgstr "" = # type: -#: ../data-20/test2.sgml:23 +#: ../data-20/test2.sgml:22 msgid "2004, 2007" msgstr "" = # type: -#: ../data-20/test2.sgml:23 +#: ../data-20/test2.sgml:22 #, no-wrap msgid "&dhusername; and &dhuusername;" msgstr "" not ok 4 - normalisation test returns what is expected # Failed test 'normalisation test returns what is expected' # at t/20-sgml.t line 65. # Failed (retval=3D256) on: # diff -u -I '^# SOME' -I '^# Test' -I '^"POT-Creation-Date: ' -I # '^"Content-Transfer-Encoding:' data-20/test2.pot # tmp/po4a-normalize.po&& diff -u -I '^# SOME' -I '^# Test' -I # '^"POT-Creation-Date: ' -I '^"Content-Transfer-Encoding:' # data-20/test2-normalized.sgml tmp/po4a-normalize.output # Was created with: # perl -I../lib cd tmp && perl ../../po4a-normalize -f sgml # ../data-20/test2.sgml # Looks like you failed 1 test of 4. Does this happen on Debian? The result of running the second part of test 4 manually looks incorrect as well: $ diff -u -I '^# SOME' -I '^# Test' -I '^"POT-Creation-Date: ' -I \ '^"Content-Transfer-Encoding:' data-20/test2-normalized.sgml \ tmp/po4a-normalize.output --- data-20/test2-normalized.sgml 2007-08-15 22:55:53.000000000 +02= 00 +++ tmp/po4a-normalize.output 2008-01-13 23:59:09.000000000 +0100 @@ -21,18 +21,14 @@ &dhdate; = - - - - - Help Options: - + + Show help options. Again, do you see something similar on Debian with this test? If it's any help, I am using po4a 0.32 with perl 5.8.8, gettext-1.05, SGMLSpm-1.03ii, TermReadKey-2.30, Text-WrapI18N-0.06, Text-CharWidth-0.04. ciao Klaus Heinz --===============1146393296963765847==-- From nicolas.francois at centraliens.net Mon Jan 14 00:31:52 2008 Content-Type: multipart/mixed; boundary="===============5850889399300874348==" MIME-Version: 1.0 From: =?utf-8?q?Nicolas_Fran=C3=A7ois_=3Cnicolas=2Efrancois_at_centraliens=2Ene?= =?utf-8?q?t=3E?= To: devel at lists.po4a.org Subject: Re: [Po4a-devel] make test failure in t/20-sgml.t Date: Mon, 14 Jan 2008 01:31:46 +0100 Message-ID: <20080114003146.GA21896@nekral.nekral.homelinux.net> In-Reply-To: 20080113231711.GB24740@silence.homedns.org --===============5850889399300874348== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I cannot reproduce it on Debian. What is the output of nsgmls -p t/data-20/test2-normalized.sgml and nsgmls -p t/data-20/test2.sgml The output should be empty (and commands should be successful). If it is not the case, the problem is probably that you are missing the docbook sgml DTD Best Regards, -- = Nekral --===============5850889399300874348==-- From nicolas.francois at centraliens.net Mon Jan 14 00:42:11 2008 Content-Type: multipart/mixed; boundary="===============7082504747905700035==" MIME-Version: 1.0 From: =?utf-8?q?Nicolas_Fran=C3=A7ois_=3Cnicolas=2Efrancois_at_centraliens=2Ene?= =?utf-8?q?t=3E?= To: devel at lists.po4a.org Subject: Re: [Po4a-devel] Turning off wrapping for a specific XHTML tag Date: Mon, 14 Jan 2008 01:42:06 +0100 Message-ID: <20080114004206.GB21896@nekral.nekral.homelinux.net> In-Reply-To: 87d4sqljm3.fsf@doganov.org --===============7082504747905700035== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, On Fri, Dec 28, 2007 at 09:11:48PM +0200, kaloian(a)doganov.org wrote: > Using po4a to process XHTML documents, I have to turn of wrapping for a > specific XHTML tag (