Jonathan Washington
<jonathan.n.washing...@gmail.com> čá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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to