Bug#564915: debian-edu-doc: improve xml generation from wiki source

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#564915: debian-edu-doc: improve xml generation from wiki source

Andreas Mundt
Package: debian-edu-doc
Severity: wishlist
Tags: patch

Hi,

on doing some translation work of the debian-edu manual *.po files I noticed
some extra space in tagged text like:
<emphasis>still incomplete </emphasis> instead of
<emphasis>still incomplete</emphasis>
or
<computeroutput>2010-01-12 </computeroutput> instead of
<computeroutput>2010-01-12</computeroutput>.
If not corrected in the translation this can give nasty spaces or single
full-stops on single new lines in the translations.

The space is introduced in the conversion by a sed "s%<\/%\n<\/%g" command
which breaks lines in the xml-file after the close-tag. A solution might be to
break lines there only for specific tags (see patch).  
The downside is, that after correction fuzzy translations in the *.po files
increase, which have to be checked.
But if we want to do it, we should do it the earlier the better.

Cheers,

        Andi

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-nouveau.git (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

get_manual.patch (703 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#564915: errata

Andreas Mundt
errata:

after the close-tag should read as:

The space is introduced in the conversion by a sed "s%<\/%\n<\/%g"
command which breaks lines in the xml-file _before_ the close-tag.

Andi

PS: Perhaps we can correct (sed) *.po files in advance to
avoid the fuzzies?



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]