From: "Tim Morley (forstreku la legoman koloron de mia retadreso)" <t_morley@argonet.rapkolora.co.uk>
Subject: PO-mode help, please
Date: Mon, 21 Feb 2005 13:15:13 GMT [thread overview]
Message-ID: <B9lSd.250$fb4.25@newsfe3-gui.ntli.net> (raw)
Hi all.
I'm looking for some help in finding a solution to a problem involving
some gettext po-mode files. Any suggestions much appreciated.
Short description: I need to extract from a group of .po files every
record (including all related comments) that contains a certain string
within a comment.
Long description: I have twenty-odd .po files for a certain project.
Spread throughout these files there are various entries which are
tagged, via a comment, as "technical vocabulary" that needs sending to a
specialist for verification. I need to find and extract all of these
cases from the collection of files, to send to the aforementioned
specialists.
Obviously, a standard gettext record looks like this:
msgid "Absolute Record"
msgstr "Absoluta Rikordo"
[Whitespace before `msgid' and `msgstr' added by me for the purposes of
this mail only.]
I need to find each record that includes the comment below:
# FAKVORTO: MATEMATIKA
msgid "Absolute Value"
msgstr "Absoluta Valoro"
It may appear as one of several comments, in which case I need to copy
over all of the comments:
# Aux ALD (laux la franca AJT)? (Gian Piero SAVIO, 2004-04-02)
# 'ALDONI' estas plej klara; 'ALD' iom malpli, do konservu la unuan.
(Tim Morley, 2004-04-03)
# FAKVORTO: MATEMATIKA
msgid "ADD"
msgstr "ALDONI"
And the comments may not appear in any particular order:
# Nur la franca uzas verban terminon, cxiuj aliaj uzas substantivan
terminon. Atentu, "Combine" povus havi aritmetikan signifon, kies
preciza traduko estas "Kombinacio" (mi intertempe kontrolis en PIV1).
(Leo DC, 2004-08-13)
# Vi pravas, ke estas cxiutaga kaj matematika sencoj por tiu vorto.
Mi enmetos ambaux. (Tim Morley, 2004-09-23)
# FAKVORTO: MATEMATIKA
# PLURSENCAJXO
# Kombinajxo
msgid "Combination"
msgstr "Kunigado"
If somebody could suggest either an EMACS keyboard macro, or possibly a
SED or AWK script, that would spit out a text file containing all of the
above records from my collection of files, it would be a great help to me.
Thanks in advance for any help offered.
Regards,
Tim Morley
[remove `rapkolora' to make my email address valid]
next reply other threads:[~2005-02-21 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 13:15 Tim Morley (forstreku la legoman koloron de mia retadreso) [this message]
2005-02-22 19:51 ` PO-mode help, please Kevin Rodgers
2005-02-22 22:44 ` Tim Morley (forstreku la legoman koloron de mia retadreso)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='B9lSd.250$fb4.25@newsfe3-gui.ntli.net' \
--to=t_morley@argonet.rapkolora.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).