[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
My GSoC idea
- To: or-talk@xxxxxxxx, or-talk@xxxxxxxxxxxxxx
- Subject: My GSoC idea
- From: Balša Raičević <balsaaa@xxxxxxxxx>
- Date: Mon, 23 Mar 2009 22:10:28 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: or-talk-outgoing@xxxxxxxx
- Delivered-to: or-talk@xxxxxxxx
- Delivery-date: Mon, 23 Mar 2009 17:10:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=qgz5YTEUQ9z+hYI/YimB6JGSM+/FtH8cpVLgMfoOj1k=; b=U1QPc+pVTV2COacAqqlHHwnik4G8NC59b5TWFKfekFw065LL5gvpfxAdkNgrIUX7A3 DpGRU+2cEGg+AHN9ut4hVU4WPgbchMkDvipZt51FV+XNo8VTpIpRsjI0clt/FdkNYY8c /7jXBTDTfKc0LvSai8XDBGalaLNhvOwr6ZLDc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gdFCqypGKJuV9u1HuTTQtRf0Vf5BmE64mpDuFG0jUFNr2tjxm3tvPGYAuTGJ39pLV9 0AMSibd3VnP3I71FgNRhc0e0lOrdef+eVexWmNrFy9/STmjnu8xjQ1oIdIk+8zEZaJg4 X+TykCfUz9GIk5CJ793/iY7idc3hMzez1o8Zw=
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
Hello,
I'm Balsa Raicevic and I study at Belgrade University. I'm considering applying for project "Translation wiki".
I have an idea how to parse wml files and collect strings, and output them to po-style string so you can use Pootle to translate them. The two approaches I have in mind are:
1) make a Perl parser, to collect string from a wml file, and a hash of originals and replacements appropriate for po-style strings. Then we could parse the strings, replace with the appropriate tokens, and give to pootle as arguments to translate.
2) make a grammar in yacc to recognize the wml format, using lex parser, where we could use c++ actions inserted in yacc to easily generate the final string, which we could pass to Pootle automaticly at the end of every string (also using yacc actions), and do with the result whatever is needed.
I think that both approaches to this problem have a great flexibility, it is only a matter of exactly what do you think is needed.
What do you think of my approach? Do you think I'm on the right track :)?
Thanks ahead for replying,
Balsa