bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Extracting selected messages from a po file


From: Bruno Haible
Subject: Re: Extracting selected messages from a po file
Date: Thu, 13 Mar 2003 11:34:01 +0100 (CET)

Martin Quinson wrote:

> I had an idea this night : what about an utility using a LDAP-like syntax to
> filter some messages from the input file ? It could be renamed msgselect.
> 
> The previous request would be expressed with :
> 
> msgselect "(|(fuzzy=yes)(translated=no)(comment=.*FIXME.*))'" file.po > 
> selected.po
> 
> which is ways easier to remember and to use, isn't it? Moreover, if we stick
> to the LDAP syntax, that's a somehow standard.

The msg* tools up to now view each PO file as a list of records, and
follow the philosophy of the small bricks that can be glued together
through pipes. This gives a good deal of flexibility.

But you are right, it makes sense to view a PO file as a list of
records with fields; as a "table" in database speak. For someone with
no experience with LDAP, this syntax is strange. But one could imagine
an msgselect with SQL query syntax, something like

   msgselect 'SELECT fuzzy is yes AND translated is no AND comment has "FIXME"'

SQL syntax seems more widely known and more legible than LDAP syntax,
isn't it?

Bruno




reply via email to

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