RE: [xliff] Fwd: Updated XLIFF 1.1 Representation Guide for Gettext PO

From
Doug Domeny <>
Date
2005-07-19T16:09:12+00:00
ID
Thread
RE: [xliff] Fwd: Updated XLIFF 1.1 Representation Guide for Gettext PO
All,

The profile looks great. It definitely shows a lot of good work. I'm very
pleased with the quality of the profile. I'm not experienced in PO files,
but have a couple comments regarding use of the XLIFF <ph> tags.

Section 3.4 Handling of Escape Sequences in Software Messages

Escape sequences for common control character like newline ('\n') are
represented in XLIFF using the <ph> element, as in <ph id='1'
ctype='lb'>\n</ph>. 

This approach closely couples the translation of the human language with the
computer language used to render it. I believe a more abstract
representation would allow better separation between human and computer
language. For example,

<x id='1' ctype='lb' />

Then the translation is applicable to any computer language that can render
a line break, whether it uses '\n', or other notation.

Section 5.6.3 X-format

Similarly, the "%s" and "%d" notations are kept in the XLIFF <ph> tag as <ph
id="1" ctype="x-c-param">%s</ph>, where the ctype attribute value specifies
the computer language of the notation (as listed in Table 4).

For example,

<x id="1" ctype="x-string-param" />

Here I realize that the format may be more complex. For example, an ANSI C
format may be "%+03.2ld". In this case, it seems appropriate to keep the
format within <ph> tags. It wouldn't be required because the format could be
stored in the skeleton file. However, for convenience, keeping it in the
<ph> is reasonable.



Your comments and comments from the rest of the XLIFF committee are welcome.

Regards,
 
Doug Domeny


-----Original Message-----
From: Paul Gampe [mailto:] 
Sent: Sunday, July 10, 2005 1:27 PM
To: 
Subject: [xliff] Fwd: Updated XLIFF 1.1 Representation Guide for Gettext PO

Apologies for the delay in passing this forward.  I would like to proceed to

issue the ballot to approve this submission this week.

Kind regards,
Paul