commit f4f944cc0bdca3a87a922cd41dbe6c418557f024 Author: hectoralos Date: Mon Jul 22 09:36:19 2019 +0300 cat-por.t1x/cat-por_bra.t1x + correccions cat-por_br.mode diff --git a/Makefile.am b/Makefile.am index cfc2aef..b17b396 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,9 +49,10 @@ TARGETS_COMMON = \ $(PREFIX2P).autopgen.bin \ $(PREFIX2B).autopgen.bin \ $(PREFIX2PP).autopgen.bin \ - $(PREFIX2).t1x.bin \ - $(PREFIX2).t1x.bin - + $(PREFIX2P).t1x \ + $(PREFIX2P).t1x.bin \ + $(PREFIX2B).t1x \ + $(PREFIX2B).t1x.bin # This include defines goals for install-modes, .deps/.d, autobil.prefixes and .mode files: @@ -198,9 +199,23 @@ $(PREFIX1).t1x.bin: $(BASENAME).$(PREFIX1).t1x # apertium-preprocess-transfer $< $@ -$(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX2).t1x - apertium-validate-transfer $< - apertium-preprocess-transfer $< $@ +#$(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX2).t1x +# apertium-validate-transfer $< +# apertium-preprocess-transfer $< $@ + +$(PREFIX2P).t1x: $(BASENAME).$(PREFIX2).t1x + ./filterrules.sh pt_PT $(BASENAME).$(PREFIX2).t1x >$@ + +$(PREFIX2B).t1x: $(BASENAME).$(PREFIX2).t1x + ./filterrules.sh pt_BR $(BASENAME).$(PREFIX2).t1x >$@ + +$(PREFIX2P).t1x.bin: $(PREFIX2P).t1x + apertium-validate-transfer $(PREFIX2P).t1x + apertium-preprocess-transfer $(PREFIX2P).t1x $@ + +$(PREFIX2B).t1x.bin: $(PREFIX2B).t1x + apertium-validate-transfer $(PREFIX2B).t1x + apertium-preprocess-transfer $(PREFIX2B).t1x $@ #$(PREFIX2).t2x.bin: $(BASENAME).$(PREFIX2).t2x # apertium-validate-interchunk $< diff --git a/filterrules.sh b/filterrules.sh new file mode 100755 index 0000000..defda4a --- /dev/null +++ b/filterrules.sh @@ -0,0 +1,12 @@ +case $# in + 2) + LANG=$1 + ;; + *) + echo "USAGE: filter.sh LANG FILE"; + echo "With SIDE one of 'left' or 'right'"; + exit 1; +esac + +xsltproc --stringparam lang $LANG filterrules.xsl $2 + diff --git a/filterrules.xsl b/filterrules.xsl new file mode 100644 index 0000000..2ee0e62 --- /dev/null +++ b/filterrules.xsl @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modes.xml b/modes.xml index 9b39a34..6836920 100644 --- a/modes.xml +++ b/modes.xml @@ -243,7 +243,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -268,20 +268,20 @@ - + - - + + - + - + @@ -305,7 +305,7 @@ - + @@ -333,7 +333,7 @@ - + @@ -446,7 +446,7 @@ - + @@ -468,7 +468,7 @@ - + @@ -490,7 +490,7 @@ - +