Thanks, Kevin. Yes, that's the approach I use. It's not well-documented, but it's pretty straightforward.
Do you know anything about the metalrx.py script that Tino mentioned? -- Jonathan On Thu, Sep 12, 2019, 13:47 Kevin Brubeck Unhammer <[email protected]> wrote: > Jonathan Washington > <[email protected]> čálii: > > > I'm curious about metalrx.py. Where is it used? What does it do? Is it > > documented anywhere? I've been using an xslt file I found in a Sámi pair > > for creating lrx from metalrx. > > The Sámi pairs use an XSLT script > > https://github.com/apertium/apertium-sme-sma/blob/master/metalrx-to-lrx.xslt > that two extra functions to lrx files: > > 1. <def-seqs>, see example at > > https://github.com/apertium/apertium-sme-sma/blob/master/apertium-sme-sma.sme-sma.metalrx#L3 > for often-used sequences (that file just has a single <or>, but you > could have several in a row) > > 2. <repeat upto="n"> you can wrap around a <match> or <or> or <seq> to > repeat it up to n times: > > https://github.com/apertium/apertium-sme-sma/blob/master/apertium-sme-sma.sme-sma.metalrx#L2184 > > _______________________________________________ > Apertium-stuff mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/apertium-stuff >
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
