[Top][All Lists]

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

Re: Gettext and ITS (was Re: Feature proposal: string extracting by RegE

From: Asgeir Frimannsson
Subject: Re: Gettext and ITS (was Re: Feature proposal: string extracting by RegExp for xgettext)
Date: Sat, 15 Mar 2008 06:56:42 +1000

On Fri, Mar 14, 2008 at 11:50 PM, Chusslove Illich <address@hidden> wrote:
> > [: Asgeir Frimannsson :]
>  > [...] the absolute path for a translation unit could be stored in the #:
> > reference elem, for example "/html/body/p[34]/table[3]/p" and be used as a
>  > locator when merging...
>  Notwithstanding the main line of the discussion, which I know little of to
>  add anything, this particular bit I do not like. The source reference should
>  be a source reference; a link to a particular file and line should the
>  translator wish to venture there for more context.
>  Instead, I'd put the document-tree path as another automatic comment (#.),
>  with a certain prefix to indicate it as such.

Well, yes, the link to the source *file* should be there somewhere.
But:, with XML, the absolute path to an element is much more precise
than a line-number, and transferable. Imagine e.g. an XML file with
all content on one long line.

Both is of course ideal. I've been doing XML processing before where
we needed the line number and byte offset/length for the element, and
it's a very tricky business to combine with the standard xml
processing tools. But I'd be very happy to be proven wrong here :)


reply via email to

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