Skip to content

Commit

Permalink
Conversió de marques vr a preferències
Browse files Browse the repository at this point in the history
  • Loading branch information
marcriera committed Jul 19, 2024
1 parent 82ed11d commit 5f2b28b
Show file tree
Hide file tree
Showing 8 changed files with 1,014 additions and 1,014 deletions.
79 changes: 8 additions & 71 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,14 @@ TARGETS_COMMON = \
$(PREFIX1).rlx.bin \
$(PREFIX2).rlx.bin \
$(PREFIX1).prob \
$(PREFIX1C).autobil.bin \
$(PREFIX1V).autobil.bin \
$(PREFIX1G).autobil.bin \
$(PREFIX1U).autobil.bin \
$(PREFIX1).autobil.bin \
$(PREFIX1).autolex.bin \
$(PREFIX1).biprefs.rlx.bin \
$(PREFIX1V).biprefs.rlx.bin \
$(PREFIX1G).biprefs.rlx.bin \
$(PREFIX1U).biprefs.rlx.bin \
$(PREFIX1C).autogen.bin \
$(PREFIX1V).autogen.bin \
$(PREFIX1G).autogen.bin \
$(PREFIX1U).autogen.bin \
$(PREFIX1C).autopgen.bin \
$(PREFIX1V).autopgen.bin \
$(PREFIX1G).autopgen.bin \
$(PREFIX1U).autopgen.bin \
$(PREFIX1).autogen.bin \
$(PREFIX1).autopgen.bin \
$(PREFIX2).automorf.bin \
$(PREFIX2).prob \
$(PREFIX2).autobil.bin \
Expand Down Expand Up @@ -83,16 +74,7 @@ TARGETS_COMMON = \
# Spanish analysis:
# -------------------

$(PREFIX1C).automorf.bin: $(AP_SRC1)/$(LANG1).automorf.bin $(PREFIX1C).autobil.bin
lt-trim $^ $@

$(PREFIX1V).automorf.bin: $(AP_SRC1)/$(LANG1).automorf.bin $(PREFIX1G).autobil.bin
lt-trim $^ $@

$(PREFIX1G).automorf.bin: $(AP_SRC1)/$(LANG1).automorf.bin $(PREFIX1G).autobil.bin
lt-trim $^ $@

$(PREFIX1U).automorf.bin: $(AP_SRC1)/$(LANG1).automorf.bin $(PREFIX1G).autobil.bin
$(PREFIX1).automorf.bin: $(AP_SRC1)/$(LANG1).automorf.bin $(PREFIX1).autobil.bin
lt-trim $^ $@

# -------------------
Expand All @@ -116,28 +98,10 @@ $(PREFIX2).automorf.bin: $(AP_SRC2)/$(LANG2).automorf.bin $(PREFIX2).autobil.bin
# Catalan generation:
# ---------------------

$(PREFIX1C).autogen.bin: $(AP_SRC2)/$(LANG2C).autogen.bin
cp $< $@

$(PREFIX1V).autogen.bin: $(AP_SRC2)/$(LANG2V).autogen.bin
$(PREFIX1).autogen.bin: $(AP_SRC2)/$(LANG2).autogen.bin
cp $< $@

$(PREFIX1G).autogen.bin: $(AP_SRC2)/$(LANG2G).autogen.bin
cp $< $@

$(PREFIX1U).autogen.bin: $(AP_SRC2)/$(LANG2U).autogen.bin
cp $< $@

$(PREFIX1C).autopgen.bin: $(AP_SRC2)/$(LANG2C).autopgen.bin
cp $< $@

$(PREFIX1V).autopgen.bin: $(AP_SRC2)/$(LANG2V).autopgen.bin
cp $< $@

$(PREFIX1G).autopgen.bin: $(AP_SRC2)/$(LANG2G).autopgen.bin
cp $< $@

$(PREFIX1U).autopgen.bin: $(AP_SRC2)/$(LANG2U).autopgen.bin
$(PREFIX1).autopgen.bin: $(AP_SRC2)/$(LANG2).autopgen.bin
cp $< $@

###############################################################################
Expand Down Expand Up @@ -196,36 +160,9 @@ $(PREFIX2).rlx.bin: $(AP_SRC2)/apertium-$(LANG2).$(LANG2).rlx
python3 convert-metadix-dix.py $< $@
apertium-validate-dictionary $@

.deps/$(PREFIX1).dix: .deps/$(BASENAME).$(PREFIX1).dix
apertium-translate-to-default-equivalent $< $@

.deps/$(PREFIX1).cat.dix: .deps/$(PREFIX1).dix
apertium-genvrdix cat $< >$@

.deps/$(PREFIX1).val.dix: .deps/$(PREFIX1).dix
apertium-genvrdix val_gva $< >$@

.deps/$(PREFIX1).val_gva.dix: .deps/$(PREFIX1).dix
apertium-genvrdix val_gva $< >$@

.deps/$(PREFIX1).val_uni.dix: .deps/$(PREFIX1).dix
apertium-genvrdix val_uni $< >$@

$(PREFIX1C).autobil.bin: .deps/$(PREFIX1).cat.dix
apertium-validate-dictionary $<
lt-comp --var-right=cat lr $< $@

$(PREFIX1V).autobil.bin: .deps/$(PREFIX1).val_gva.dix
apertium-validate-dictionary $<
lt-comp --var-right=val_gva lr $< $@

$(PREFIX1G).autobil.bin: .deps/$(PREFIX1).val_gva.dix
apertium-validate-dictionary $<
lt-comp --var-right=val_gva lr $< $@

$(PREFIX1U).autobil.bin: .deps/$(PREFIX1).val_uni.dix
$(PREFIX1).autobil.bin: .deps/$(BASENAME).$(PREFIX1).dix
apertium-validate-dictionary $<
lt-comp --var-right=val_uni lr $< $@
lt-comp lr $< $@

$(PREFIX2).autobil.bin: .deps/$(BASENAME).$(PREFIX1).dix
apertium-validate-dictionary $<
Expand Down
15 changes: 15 additions & 0 deletions apertium-spa-cat.spa-cat.biprefs.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ SUBSTITUTE (v:lexic_val) (*) TARGET (v:lexic_val) ;

IFF (v:lexic_val_gva) (0 (VAR:lexic_val_gva)) ;
SUBSTITUTE (v:lexic_val_gva) (*) TARGET (v:lexic_val_gva) ;

IFF (v:lexic_llima) (0 (VAR:lexic_llima)) ;
SUBSTITUTE (v:lexic_llima) (*) TARGET (v:lexic_llima) ;

IFF (v:lexic_llimo) (0 (VAR:lexic_llimo)) ;
SUBSTITUTE (v:lexic_llimo) (*) TARGET (v:lexic_llimo) ;

IFF (v:lexic_cercar) (0 (VAR:lexic_cercar)) ;
SUBSTITUTE (v:lexic_cercar) (*) TARGET (v:lexic_cercar) ;

IFF (v:lexic_entregar) (0 (VAR:lexic_entregar)) ;
SUBSTITUTE (v:lexic_entregar) (*) TARGET (v:lexic_entregar) ;

IFF (v:lexic_val_PENDENT) (0 (VAR:lexic_val_PENDENT)) ;
SUBSTITUTE (v:lexic_val_PENDENT) (*) TARGET (v:lexic_val_PENDENT) ;
1,879 changes: 951 additions & 928 deletions apertium-spa-cat.spa-cat.metadix

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apertium-spa-cat.spa-cat_valencia.biprefs.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
DELIMITERS = ".";

IFF (v:lexic_val) ;
IFF (v:lexic_llima) ;
IFF (v:lexic_entregar) ;
IFF (v:lexic_val_PENDENT) ;
3 changes: 3 additions & 0 deletions apertium-spa-cat.spa-cat_valencia_gva.biprefs.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ DELIMITERS = ".";
IFF (v:top_gva) ;
IFF (v:lexic_val) ;
IFF (v:lexic_val_gva) ;
IFF (v:lexic_llima) ;
IFF (v:lexic_entregar) ;
IFF (v:lexic_val_PENDENT) ;
3 changes: 3 additions & 0 deletions apertium-spa-cat.spa-cat_valencia_uni.biprefs.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
DELIMITERS = ".";

IFF (v:lexic_val) ;
IFF (v:lexic_llimo) ;
IFF (v:lexic_cercar) ;
IFF (v:lexic_val_PENDENT) ;
30 changes: 15 additions & 15 deletions modes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</program>
<program name="apertium-pretransfer"/>
<program name="lt-proc -b">
<file name="spa-cat_valencia.autobil.bin"/>
<file name="spa-cat.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_biprefs">
<file name="spa-cat_valencia.biprefs.rlx.bin"/>
Expand All @@ -121,7 +121,7 @@
</program>
<program name="apertium-posttransfer"/>
<program name="lt-proc $1 -b">
<file name="spa-cat_valencia.autogen.bin"/>
<file name="spa-cat.autogen.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_prefs">
<file name="spa-cat_valencia.prefs.rlx.bin"/>
Expand All @@ -130,7 +130,7 @@
<file name="spa-cat.prefs.rlx.bin"/>
</program>
<program name="lt-proc -p">
<file name="spa-cat_valencia.autopgen.bin"/>
<file name="spa-cat.autopgen.bin"/>
</program>
</pipeline>
</mode>
Expand All @@ -148,7 +148,7 @@
</program>
<program name="apertium-pretransfer"/>
<program name="lt-proc -b">
<file name="spa-cat_valencia_gva.autobil.bin"/>
<file name="spa-cat.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_gva_biprefs">
<file name="spa-cat_valencia_gva.biprefs.rlx.bin"/>
Expand All @@ -168,7 +168,7 @@
</program>
<program name="apertium-posttransfer"/>
<program name="lt-proc $1 -b">
<file name="spa-cat_valencia_gva.autogen.bin"/>
<file name="spa-cat.autogen.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_gva_prefs">
<file name="spa-cat_valencia_gva.prefs.rlx.bin"/>
Expand All @@ -177,7 +177,7 @@
<file name="spa-cat.prefs.rlx.bin"/>
</program>
<program name="lt-proc -p">
<file name="spa-cat_valencia_gva.autopgen.bin"/>
<file name="spa-cat.autopgen.bin"/>
</program>
</pipeline>
</mode>
Expand All @@ -195,7 +195,7 @@
</program>
<program name="apertium-pretransfer"/>
<program name="lt-proc -b">
<file name="spa-cat_valencia_gva.autobil.bin"/>
<file name="spa-cat.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_biprefs">
<file name="spa-cat_valencia.biprefs.rlx.bin"/>
Expand All @@ -215,7 +215,7 @@
</program>
<program name="apertium-posttransfer"/>
<program name="lt-proc $1 -b">
<file name="spa-cat_valencia_gva.autogen.bin"/>
<file name="spa-cat.autogen.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_gva_prefs">
<file name="spa-cat_valencia_gva.prefs.rlx.bin"/>
Expand All @@ -227,7 +227,7 @@
<file name="spa-cat.prefs.rlx.bin"/>
</program>
<program name="lt-proc -p">
<file name="spa-cat_valencia_gva.autopgen.bin"/>
<file name="spa-cat.autopgen.bin"/>
</program>
</pipeline>
</mode>
Expand All @@ -245,7 +245,7 @@
</program>
<program name="apertium-pretransfer"/>
<program name="lt-proc -b">
<file name="spa-cat_valencia_uni.autobil.bin"/>
<file name="spa-cat.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_uni_biprefs">
<file name="spa-cat_valencia_uni.biprefs.rlx.bin"/>
Expand All @@ -265,7 +265,7 @@
</program>
<program name="apertium-posttransfer"/>
<program name="lt-proc $1 -b">
<file name="spa-cat_valencia_uni.autogen.bin"/>
<file name="spa-cat.autogen.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_uni_prefs">
<file name="spa-cat_valencia_uni.prefs.rlx.bin"/>
Expand All @@ -274,7 +274,7 @@
<file name="spa-cat.prefs.rlx.bin"/>
</program>
<program name="lt-proc -p">
<file name="spa-cat_valencia_uni.autopgen.bin"/>
<file name="spa-cat.autopgen.bin"/>
</program>
</pipeline>
</mode>
Expand All @@ -292,7 +292,7 @@
</program>
<program name="apertium-pretransfer"/>
<program name="lt-proc -b">
<file name="spa-cat_valencia_uni.autobil.bin"/>
<file name="spa-cat.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_uni_biprefs">
<file name="spa-cat_valencia_uni.biprefs.rlx.bin"/>
Expand All @@ -312,7 +312,7 @@
</program>
<program name="apertium-posttransfer"/>
<program name="lt-proc $1 -b">
<file name="spa-cat_valencia_uni.autogen.bin"/>
<file name="spa-cat.autogen.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_uni_prefs">
<file name="spa-cat_valencia_uni.prefs.rlx.bin"/>
Expand All @@ -324,7 +324,7 @@
<file name="spa-cat.prefs.rlx.bin"/>
</program>
<program name="lt-proc -p">
<file name="spa-cat_valencia_uni.autopgen.bin"/>
<file name="spa-cat.autopgen.bin"/>
</program>
</pipeline>
</mode>
Expand Down
16 changes: 16 additions & 0 deletions spa-cat.preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,20 @@
<description lang="cat">Topònims oficials (GVA)</description>
<description lang="spa">Topónimos oficiales (GVA)</description>
</preference>
<preference id="lexic_llima">
<description lang="cat">Lèxic: limón > llima</description>
<description lang="spa">Léxico: limón > llima</description>
</preference>
<preference id="lexic_llimo">
<description lang="cat">Lèxic: limón > llimó</description>
<description lang="spa">Léxico: limón > llimó</description>
</preference>
<preference id="lexic_cercar">
<description lang="cat">Lèxic: buscar > cercar</description>
<description lang="spa">Léxico: buscar > cercar</description>
</preference>
<preference id="lexic_entregar">
<description lang="cat">Lèxic: entregar > entregar</description>
<description lang="spa">Léxico: entregar > entregar</description>
</preference>
</preferences>

0 comments on commit 5f2b28b

Please sign in to comment.