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,
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.
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.
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}}:
>
>
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
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.
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
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
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
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
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
11 matches
Mail list logo