[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <pre> problem
From: |
Kaloian Doganov |
Subject: |
Re: <pre> problem |
Date: |
Mon, 10 Mar 2008 17:31:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gNewSense gnu/linux) |
Yavor Doganov <address@hidden> writes:
Yikes. I think we should patch po4a not to wrap <pre> in msgid's,
similar to the suggested approach with <script>.
Fortunately, Po4a developers had listened to our comments and the
recently released Po4a 0.33 addresses this problem by introducing new
command-line options for the XML module. I suggest switching to Po4a
0.33 and applying the following patch.
(Please be extra careful when installing Po4a 0.33 as superuser, as it
installs files outside the default PREFIX ("/usr/local"). Over 126
files had been installed in /usr/share on my system, which I had to move
manually (well, by casting some Emacs spells) to /usr/local/share where
they belong (well, not exactly, since I manage my /usr/local tree using
GNU stow). This bug is not addressed yet, so I recommend installing
Po4a 0.33 as a normal user for now.)
Index: server/gnun/README
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/README,v
retrieving revision 1.1
diff -u -r1.1 README
--- server/gnun/README 20 Feb 2008 09:11:07 -0000 1.1
+++ server/gnun/README 10 Mar 2008 15:28:32 -0000
@@ -5,7 +5,7 @@
GNU Gettext (>= 0.16 ?)
GNU M4 >= 1.4
GNU Guile >= 1.6
-po4a 0.32
+po4a 0.33
Libxml2 (>= 2.6.24, needed for XHTML validation only)
W3C XHMTL 1.0 DTDs (needed for XHTML validation only)
CVS (>= 1.12.9, needed if VCS operations are enabled)
Index: server/gnun/GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.9
diff -u -r1.9 GNUmakefile
--- server/gnun/GNUmakefile 9 Mar 2008 20:34:20 -0000 1.9
+++ server/gnun/GNUmakefile 10 Mar 2008 15:28:33 -0000
@@ -27,7 +27,8 @@
PO4A-GETTEXTIZEFLAGS =
PO4A-TRANSLATEFLAGS = --keep=0
-PO4A_XHTMLFLAGS = --format=xhtml -o ontagerror=silent -o "tags=<gnun>"
+PO4A_XHTMLFLAGS = --format=xhtml -o ontagerror=silent \
+ -o "untranslated=W<gnun> W<script>" -o "translated=W<pre>"
# This variable exists only for the purpose of defining it to a
# non-standard executable while testing future cvs releases. The
Index: server/gnun/ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.26
diff -u -r1.26 ChangeLog
--- server/gnun/ChangeLog 9 Mar 2008 20:49:10 -0000 1.26
+++ server/gnun/ChangeLog 10 Mar 2008 15:28:33 -0000
@@ -1,3 +1,10 @@
+2008-03-10 Kaloian Doganov <address@hidden>
+
+ * GNUmakefile (PO4A_XHTMLFLAGS): Migrate to the new
+ `translated/untranslated' options in Po4a 0.33 and turn off word
+ wrapping for <pre> and <script> elements.
+ * README: Po4a 0.33 is the minimal requirement.
+
2008-03-09 Yavor Doganov <address@hidden>
* gnun.texi (New Translation): Rename the `po-msgcat' function to
- trans-coord/gnun home.bg.shtml home.pl.shtml ho..., Yavor Doganov, 2008/03/10
- #include directives as strings, Yavor Doganov, 2008/03/10
- Re: #include directives as strings, Kaloian Doganov, 2008/03/10
- Re: #include directives as strings, Kaloian Doganov, 2008/03/10
- Re: #include directives as strings, Yavor Doganov, 2008/03/10
- Re: #include directives as strings, Kaloian Doganov, 2008/03/10
- Re: #include directives as strings, Yavor Doganov, 2008/03/11
- Re: #include directives as strings, Kaloian Doganov, 2008/03/11