trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: Suggested improvement in GNUN: split very long messages]


From: D. Barbier
Subject: Re: [Fwd: Suggested improvement in GNUN: split very long messages]
Date: Tue, 25 Sep 2012 19:18:35 +0200

On 2012/9/25 Ineiev wrote:
> On 09/25/2012 03:26 PM, Therese Godefroy wrote:
>>
>> I discussed that with Denis and he pointed out that the <split> tag
>> would make the HTML non-compliant with W3C standards. He suggested
>> creating another HTML-like file which would contain the <split> tags and
>> would serve as starting point for both the true HTML (by removing the
>> tags) and the POT.
>
>
> Probably something like <span class="gnun-split"></span> might do; GNUN
> would replace it with <br class="gnun-split" /> in its "prototype"
> file which it feeds to PO4A and substitute back with
> <span class="gnun-split"></span> in translated HTMLs before committing
> them.


Hello,

<gnun> tag can be used to break paragraphs, and it is already removed
from translated documents.  Here is a tested patch (I used <span
class="gnun-split"/> but your example will also work fine):

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.136
diff -u -r1.136 GNUmakefile
--- GNUmakefile 13 Sep 2012 07:40:45 -0000      1.136
+++ GNUmakefile 25 Sep 2012 17:12:03 -0000
@@ -1034,6 +1034,7 @@
          --generic=generic.html --output=$(1).proto \
            || ($(RM) $(1).proto ; exit 1)
        $(SED) --in-place "s/\$$$$Date.*\$$$$/<gnun>\0<\/gnun>/g" $(1).proto
+       $(SED) --in-place 's,<span class="gnun-split"/>,<gnun></gnun>,' 
$(1).proto

 $(1).pot: $(1).proto
        $$(addfile)

Denis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]