commit 7d4756398f75ce31c9715ddccf3ded3be08979dd Author: hectoralos Date: Sat Jul 20 22:16:51 2019 +0300 +modes cat-por_pt, cat_por_pt_pre1990 diff --git a/Makefile.am b/Makefile.am index 59be021..cfc2aef 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,17 +7,21 @@ LANG2=cat VAR1=#leave empty VAR2=_bra +VAR3=_pt_pre1990 LANG1P=$(LANG1)$(VAR1) LANG1B=$(LANG1)$(VAR2) +LANG1PP=$(LANG1)$(VAR3) PREFIX1=$(LANG1)-$(LANG2) PREFIX1P=$(LANG1P)-$(LANG2) PREFIX1B=$(LANG1B)-$(LANG2) +PREFIX1PP=$(LANG1PP)-$(LANG2) PREFIX2=$(LANG2)-$(LANG1) PREFIX2P=$(LANG2)-$(LANG1P) PREFIX2B=$(LANG2)-$(LANG1B) +PREFIX2PP=$(LANG2)-$(LANG1PP) BASENAME=apertium-$(PREFIX1) @@ -30,17 +34,21 @@ TARGETS_COMMON = \ $(PREFIX1).autogen.bin \ $(PREFIX1).autopgen.bin \ $(PREFIX1).t1x.bin \ - $(PREFIX2).automorf.bin \ - $(PREFIX2).automorf.bin \ + $(PREFIX2P).automorf.bin \ + $(PREFIX2B).automorf.bin \ + $(PREFIX2PP).automorf.bin \ $(PREFIX2).prob \ $(PREFIX2).rlx.bin \ $(PREFIX2P).autobil.bin \ $(PREFIX2B).autobil.bin \ + $(PREFIX2PP).autobil.bin \ $(PREFIX2).autolex.bin \ $(PREFIX2P).autogen.bin \ $(PREFIX2B).autogen.bin \ + $(PREFIX2PP).autogen.bin \ $(PREFIX2P).autopgen.bin \ $(PREFIX2B).autopgen.bin \ + $(PREFIX2PP).autopgen.bin \ $(PREFIX2).t1x.bin \ $(PREFIX2).t1x.bin @@ -74,6 +82,9 @@ $(PREFIX2P).autogen.bin: $(AP_SRC1)/$(LANG1P).autogen.bin $(PREFIX2B).autogen.bin: $(AP_SRC1)/$(LANG1B).autogen.bin cp $< $@ +$(PREFIX2PP).autogen.bin: $(AP_SRC1)/$(LANG1PP).autogen.bin + cp $< $@ + # ------------------- # Catalan analysis: # ------------------- @@ -87,6 +98,9 @@ $(PREFIX2P).automorf.bin: .deps/$(LANG2).automorf.bin $(PREFIX2P).autobil.bin $(PREFIX2B).automorf.bin: .deps/$(LANG2).automorf.bin $(PREFIX2B).autobil.bin lt-trim $^ $@ +$(PREFIX2PP).automorf.bin: .deps/$(LANG2).automorf.bin $(PREFIX2PP).autobil.bin + lt-trim $^ $@ + # ------------------- # Catalan generation: # --------------------- @@ -132,6 +146,9 @@ $(PREFIX1).autobil.bin: $(BASENAME).$(PREFIX1).dix .deps/$(PREFIX1).por_bra.dix: .deps/$(PREFIX1).dix python genvldix.py br $< >$@ +.deps/$(PREFIX1).por_pt_pre1990.dix: .deps/$(PREFIX1).dix + python genvldix.py pt_pre1990 $< >$@ + $(PREFIX2P).autobil.bin: .deps/$(PREFIX1).por.dix apertium-validate-dictionary $< lt-comp --var-left=pt rl $< $@ @@ -140,6 +157,10 @@ $(PREFIX2B).autobil.bin: .deps/$(PREFIX1).por_bra.dix apertium-validate-dictionary $< lt-comp --var-left=br rl $< $@ +$(PREFIX2PP).autobil.bin: .deps/$(PREFIX1).por_pt_pre1990.dix + apertium-validate-dictionary $< + lt-comp --var-left=pt_pre1990 rl $< $@ + ############################################################################### @@ -202,6 +223,9 @@ $(PREFIX2P).autopgen.bin: $(AP_SRC1)/$(LANG1P).autopgen.bin $(PREFIX2B).autopgen.bin: $(AP_SRC1)/$(LANG1B).autopgen.bin cp $< $@ +$(PREFIX2PP).autopgen.bin: $(AP_SRC1)/$(LANG1PP).autopgen.bin + cp $< $@ + ############################################################################### ## Distribution ############################################################################### diff --git a/modes.xml b/modes.xml index 8e69e7c..9b39a34 100644 --- a/modes.xml +++ b/modes.xml @@ -255,6 +255,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +