> X-Mailer: YahooMailWebService/0.8.182.648 > Date: Thu, 10 Apr 2014 22:03:58 -0700 (PDT) > From: Rafi Kamal <[email protected]> > To: "[email protected]" <[email protected]>, > "[email protected]" > <[email protected]> > Reply-To: Rafi Kamal <[email protected]>, > [email protected] > Subject: Re: [Apertium-stuff] [GSoC] Adopt an unreleased language pair > (Bangla-English) > > Hi, is it possible to use <choose> inside an <out> or <lu>? I was > trying to output some attributes of a lexical unit only when the > person attribute is p1 or p3. I was trying this: > > (........)
First : When you ask a new question, the subject of the Email should be related to the question. So, even several months after, it will be easier to find the discussion. Secondly (more personnal) : When you write a email with more than one address in the Reply-To: field, let put the adress of the mailling-list first. Expecialy with a mailer which puts the adresses on separated lines, like the mailer you use. That will make automatic download and email sortering easier. For your information, here is the data file one of my shell uses to download emails coming from a mailing list using the Reply-To field : [email protected] And now, the content of the data file to download some other accepted emails (NOT belonging to the mailing-list) according to the address of the sender : [email protected] [email protected] [email protected] [email protected] Some of your mail (less than 50 %) only have the address of the mailing list in the Reply-To field. No problem for these one. ___________________________________________________________________ Now for your question. It is possible to have more than one <out>...</out> section in a rule. So, you can start with a <out> section, close it, and then have a <choose> section with <out> sections inside or a call of a macro with <out> section inside, then put another common <out> section ... According to variables, often, it is enough to change the value of the tl side attribute, and then use it outside in a <out> section. Note : I need to add the address of the mailing-list by hand Ex: <choose> <when> <!-- 2ème personne toujours au pluriel : vi -> vous --> <test> <equal> <clip pos="1" side="sl" part="personne"/> <lit-tag v="p2"/> </equal> </test> <let> <clip pos="1" side="tl" part="nombre"/> <lit-tag v="pl"/> </let> </when> <when> <!-- 3ème personne du pluriel toujours au masculin : ili -> ils --> <test> <and> <equal> <clip pos="1" side="sl" part="personne"/> <lit-tag v="p3"/> </equal> <equal> <clip pos="1" side="sl" part="nombre"/> <lit-tag v="pl"/> </equal> </and> </test> <let> <clip pos="1" side="tl" part="genre"/> <lit-tag v="m"/> </let> </when> </choose> <out> <lu> <clip pos="1" side="tl" part="lemh"/> <clip pos="1" side="tl" part="type_mot"/> <clip pos="1" side="tl" part="personne"/> <clip pos="1" side="tl" part="genre"/> <clip pos="1" side="tl" part="nombre"/> <clip pos="1" side="tl" part="lemq"/> </lu> <b /> </out> -------------------------------- Bernard Chardonneau (France) Phone : [33] 1 64 90 87 04 or [33] 9 72 36 32 90 GSM phone : [33] 6 49 95 13 95 Multilingual websites for my free softwares : http://libremail.free.fr and http://libremail.tuxfamily.org http://cyloop.tuxfamily.org (mainly translated with Apertium) My general website (in french only) http://bech.free.fr ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
