Missatge de Kevin Brubeck Unhammer <unham...@fsfe.org> del dia dv., 4 de nov. 2022 a les 11:31: > > What if you do > > lt-proc oci.automorf.bin | cg-proc enondetect.rlx.bin | cg-proc oci.rlx.bin | > … > > The first CG step would output a stream variable, so that what the next > step sees is > > [<STREAMCMD:SETVARIABLE:non-enon>] > ^que/que<enon>/que<itg>$ > [more text here] > > If the next step is CG, it's just > > REMOVE:var-is-set (enon) IF (0 (VAR:non-enon)) ; > > ie. remove enunciatives whenever the var is set.
I see. Yes, this is much easier than I though. Thanks, Kevin (and Tino for the second mail on the matter). @Aure Séguier , the solution I think is this one and Tino has added the syntax explanations. When you have time, you can make the rules for enondetect.rlx, as you proposed. You'll do it better than me. Adding this step in modes.xml for Gascon is trivial with Kevin's system (for Languedocien it is not necessary). I don't think you need many rules. It's more like having a slightly wide window. Bearing in mind that in Gascon texts, where enunciatives are used, they must be found in every sentence, I don't think that a very wide window is necessary to find cases that allow us to conclude without any doubt whether or not we are in front of a text with enunciatives. Hèctor _______________________________________________ Apertium-stuff mailing list Apertium-stuff@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/apertium-stuff