Turning off wrapping for a specific XHTML tag
by Kaloian Doganov
Using po4a to process XHTML documents, I have to turn of wrapping for a
specific XHTML tag (<script>) still considering the containing text as
translatable. Po4a's Xml module provides a way to specify this using
the `W' character in the `tags' option:
-o "tags=W<script>"
Unfortunately this leads to skipping the containing text of <script> as
non-translatable. I can avoid this by adding `tagsonly' option, but
this way I practically have to list all possible XHTML tags in `tags',
just to turn off wrapping for one of them.
It would be much easier if there was a way to specify this wrap-flag
individually for a tag, without having to deal with global
skipping/non-skipping of all mentioned tags.
--
Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
16 years, 10 months
Deformed XHTML comments spanning multiple lines
by Kaloian Doganov
I've noticed that XHTML comments that span multiple lines are deformed
by po4a-translate. An additional empty line is inserted between every
two lines:
For example:
<!--
Keep link lines at 72 characters or lynx will break them poorly.
Obviously, we list ONLY the most useful/important URLs here.
Keep it short and sweet: 3 lines and 2 columns is already enough
-->
Results to:
<!--
Keep link lines at 72 characters or lynx will break them poorly.
Obviously, we list ONLY the most useful/important URLs here.
Keep it short and sweet: 3 lines and 2 columns is already enough
-->
This may be considered a cosmetic problem, but I've decided to report it
anyway.
16 years, 10 months
make test failure in t/20-sgml.t
by Klaus Heinz
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: <copyright><holder>
-#: ../data-20/test2.sgml:23
+#: ../data-20/test2.sgml:22
msgid "<year>2004, 2007</year>"
msgstr ""
# type: <holder></holder>
-#: ../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=256) 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 +0200
+++ tmp/po4a-normalize.output 2008-01-13 23:59:09.000000000 +0100
@@ -21,18 +21,14 @@
&dhdate;
</refentryinfo>
- <refnamediv>
- <refname></refname>
- <refpurpose></refpurpose>
- </refnamediv>
<refsect1>
- <title></title>
<para>
Help Options:
</para>
<variablelist>
<varlistentry>
- <term><option>-?</option> <option>--help</option></term>
+ <term>
+<option>-?</option> <option>--help</option></term>
<listitem>
<para>
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
16 years, 11 months