Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Xavi Ivars
Forget about it, that one has always been python3. I just got confused with the genv*dix scripts El dv., 13 de set. 2019, 12:45, Xavi Ivars va escriure: > El dv., 13 de set. 2019, 12:28, Tino Didriksen > va escriure: > >> [...] >> >> I think only -por-cat uses both metalrx and metalrx-to-lrx,

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Xavi Ivars
El dv., 13 de set. 2019, 12:28, Tino Didriksen va escriure: > [...] > > I think only -por-cat uses both metalrx and metalrx-to-lrx, so if you want > to merge their functionality it should be harmless enough. > fra-cat (the pair I initially implemented the python script for) also uses both.

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Tino Didriksen
I've now converted apertium-cat, -por, -por-cat, and -es-pt to use the shared scripts. Many more repos can benefit from this. I also removed INSTALL from por's history, so that needs to be recloned. Also simplified their configure.ac to the minimum required, and made use of CG-3's pkg-config.

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Xavi Ivars
El dv., 13 de set. 2019, 1:27, Kevin Brubeck Unhammer va escriure: > > So it seems the python script > https://github.com/apertium/apertium/blob/master/scripts/apertium-metalrx > lets you do with templates like {{pfoo}}: > >

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Hèctor Alòs i Font
Jonathan, I have been using them a lot in the last two years. You can take a look, for instance, to the Catalan-Italian pair: https://github.com/apertium/apertium-cat-ita/blob/master/apertium-cat-ita.cat-ita.metalrx

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Kevin Brubeck Unhammer
Tino Didriksen čálii: > https://github.com/apertium/apertium-por-cat uses both metalrx.py and the > XSLT. > > I have moved all these shared scripts and XSLTs to apertium ( > https://github.com/apertium/apertium/tree/master/scripts ), and will be > updating languages/pairs to use them from there.

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Tino Didriksen
https://github.com/apertium/apertium-por-cat uses both metalrx.py and the XSLT. I have moved all these shared scripts and XSLTs to apertium ( https://github.com/apertium/apertium/tree/master/scripts ), and will be updating languages/pairs to use them from there. -- Tino Didriksen On Thu, 12

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Jonathan Washington
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 wrote: > Jonathan Washington > čálii: > > > I'm

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Kevin Brubeck Unhammer
Jonathan Washington čá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

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Jonathan Washington
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. -- Jonathan On Thu, Sep 12, 2019, 02:19 Tino Didriksen wrote: > Maybe I can do it myself, then. 2to3 did most of

Re: [Apertium-stuff] genv*dix.py need conversion

2019-09-12 Thread Tino Didriksen
Maybe I can do it myself, then. 2to3 did most of it, but I just gave up when the result didn't work immediately. I would absolutely say they belong in apertium's apertium-dev subpackage. The scripts may be written in Python, but they don't rely on the apertium-python API - they could be written