Skip to content

Commit

Permalink
Nou etiquetatge: preferències bilingües
Browse files Browse the repository at this point in the history
  • Loading branch information
marcriera committed Nov 30, 2023
1 parent 6068855 commit 9c653a7
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 11 deletions.
14 changes: 11 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ TARGETS_COMMON = \
$(PREFIX1U).autobil.bin \
$(PREFIX1).autolex.bin \
$(PREFIX1).biprefs.rlx.bin \
$(PREFIX1).top-gva_biprefs.rlx.bin \
$(PREFIX1V).biprefs.rlx.bin \
$(PREFIX1G).biprefs.rlx.bin \
$(PREFIX1U).biprefs.rlx.bin \
$(PREFIX1C).autogen.bin \
$(PREFIX1V).autogen.bin \
$(PREFIX1G).autogen.bin \
Expand Down Expand Up @@ -142,10 +144,16 @@ $(PREFIX1U).autopgen.bin: $(AP_SRC2)/$(LANG2U).autopgen.bin
## Variant preferences
###############################################################################

$(PREFIX1).top-gva_biprefs.rlx.bin: $(BASENAME).$(PREFIX1).top-gva_biprefs.rlx
$(PREFIX1).biprefs.rlx.bin: $(BASENAME).$(PREFIX1).biprefs.rlx
cg-comp $< $@

$(PREFIX1).biprefs.rlx.bin: $(BASENAME).$(PREFIX1).biprefs.rlx
$(PREFIX1V).biprefs.rlx.bin: $(BASENAME).$(PREFIX1V).biprefs.rlx
cg-comp $< $@

$(PREFIX1G).biprefs.rlx.bin: $(BASENAME).$(PREFIX1G).biprefs.rlx
cg-comp $< $@

$(PREFIX1U).biprefs.rlx.bin: $(BASENAME).$(PREFIX1U).biprefs.rlx
cg-comp $< $@

$(PREFIX1).pre2017_prefs.rlx.bin: $(AP_SRC2)/$(LANG2).pre2017_prefs.rlx.bin
Expand Down
6 changes: 6 additions & 0 deletions apertium-spa-cat.spa-cat.biprefs.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ DELIMITERS = ".";

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

IFF (v:lexic_val) (0 (VAR:lexic_val)) ;
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) ;
22 changes: 17 additions & 5 deletions apertium-spa-cat.spa-cat.metadix
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
<sdef n="ND" />
<sdef n="GD" />
<sdef n="web" />
<sdef n="v:top_gva" c="Variant: topònims oficials (GVA)"/>
<sdef n="v:lexic_val" c="Variant: lèxic valencià"/>
<sdef n="v:lexic_val_gva" c="Variant: lèxic valencià (GVA)"/>
<sdef n="v:top_gva" c="Variant: topònims oficials (GVA)"/>
</sdefs>
<pardefs>

Expand Down Expand Up @@ -123,6 +125,16 @@
<e> <i></i></e>
</pardef>

<pardef n="v:lexic_val">
<e r="LR"><p><l></l> <r><s n="v:lexic_val"/></r></p></e>
<e r="RL"><p><l></l> <r></r></p></e>
</pardef>

<pardef n="v:lexic_val_gva">
<e r="LR"><p><l></l> <r><s n="v:lexic_val_gva"/></r></p></e>
<e r="RL"><p><l></l> <r></r></p></e>
</pardef>

<pardef n="v:top_gva">
<e r="LR"><p><l></l> <r><s n="v:top_gva"/></r></p></e>
<e r="RL"><p><l></l> <r></r></p></e>
Expand Down Expand Up @@ -4557,7 +4569,7 @@
<e> <p><l>sacrificio<s n="n"/><s n="m"/></l> <r>sacrifici<s n="n"/><s n="m"/></r></p></e>
<e> <p><l>sala<s n="n"/><s n="f"/></l> <r>sala<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>salario<s n="n"/><s n="m"/></l> <r>salari<s n="n"/><s n="m"/></r></p></e>
<e vr="cat"><p><l>salida<s n="n"/><s n="f"/></l> <r>sortida<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>salida<s n="n"/><s n="f"/></l> <r>sortida<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>sal<s n="n"/><s n="f"/></l> <r>sal<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>salón<s n="n"/><s n="m"/></l> <r>saló<s n="n"/><s n="m"/></r></p></e>
<e> <p><l>salto<s n="n"/><s n="m"/></l> <r>salt<s n="n"/><s n="m"/></r></p></e>
Expand Down Expand Up @@ -4614,7 +4626,7 @@
<e> <p><l>ser<b/>querido<s n="n"/></l> <r>ser<b/>estimat<s n="n"/></r></p></e>
<e> <p><l>serpiente<s n="n"/><s n="f"/></l> <r>serp<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>servicio<s n="n"/><s n="m"/></l> <r>servei<s n="n"/><s n="m"/></r></p></e>
<e r="RL"><p><l>servicio<s n="n"/><s n="m"/></l> <r>servici<s n="n"/><s n="m"/></r></p></e>
<e> <p><l>servicio<s n="n"/><s n="m"/></l> <r>servici<s n="n"/><s n="m"/></r></p><par n="v:lexic_val_gva"/></e>
<e> <p><l>servidor<s n="n"/></l> <r>servidor<s n="n"/></r></p></e>
<e> <p><l>servidumbre<s n="n"/><s n="f"/></l> <r>servitud<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>sesión<s n="n"/><s n="f"/></l> <r>sessió<s n="n"/><s n="f"/></r></p></e>
Expand Down Expand Up @@ -38270,7 +38282,7 @@ no funciona combinat amb els vr. el translate-equivalent.xslt no respecta les va
<e r="RL"><p><l>cuidados<b/>intensivos<s n="n"/><s n="m"/></l><r>cures<b/>intensives<s n="n"/><s n="f"/></r></p></e>
<e r="RL"><p><l>delgadez<s n="n"/><s n="f"/></l> <r>primor<s n="n"/><s n="f"/></r></p></e>
<e r="RL"><p><l>derrame<s n="n"/><s n="m"/></l> <r>esqueixada<s n="n"/><s n="f"/></r></p></e>
<e r="RL"><p><l>derrumbe<s n="n"/><s n="m"/></l> <r>solsida<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>derrumbe<s n="n"/><s n="m"/></l> <r>solsida<s n="n"/><s n="f"/></r></p><par n="v:lexic_val"/></e>
<e r="RL"><p><l>desazón<s n="n"/><s n="f"/></l> <r>desfici<s n="n"/><s n="m"/></r></p></e>
<e r="RL"><p><l>descantillado<s n="n"/><s n="m"/></l> <r>escrostonament<s n="n"/><s n="m"/></r></p></e>
<e r="RL"><p><l>descantillado<s n="n"/><s n="m"/></l> <r>esvorell<s n="n"/><s n="m"/></r></p></e>
Expand Down Expand Up @@ -38523,7 +38535,7 @@ no funciona combinat amb els vr. el translate-equivalent.xslt no respecta les va
<e vr="val_gva val_uni"><p><l>pesebre<s n="n"/><s n="m"/></l><r>pesebre<s n="n"/><s n="m"/></r></p></e>
<e vr="val_gva val_uni"><p><l>puñetazo<s n="n"/><s n="m"/></l><r>punyada<s n="n"/><s n="f"/></r></p></e>
<e vr="val_gva val_uni"><p><l>riñonera<s n="n"/><s n="f"/></l><r>renyonera<s n="n"/><s n="f"/></r></p></e>
<e vr="val_gva val_uni"><p><l>salida<s n="n"/><s n="f"/></l><r>eixida<s n="n"/><s n="f"/></r></p></e>
<e> <p><l>salida<s n="n"/><s n="f"/></l> <r>eixida<s n="n"/><s n="f"/></r></p><par n="v:lexic_val"/></e>
<e vr="val_gva val_uni"><p><l>sandía<s n="n"/><s n="f"/></l><r>meló<g><b/>d'Alger</g><s n="n"/><s n="m"/></r></p></e>
<e> <p><l>sustracción<s n="n"/><s n="f"/></l> <r>sostracció<s n="n"/><s n="f"/></r></p></e>
<e r="RL"><p><l>sustracción<s n="n"/><s n="f"/></l> <r>subtracció<s n="n"/><s n="f"/></r></p></e>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

DELIMITERS = ".";

IFF (v:top_gva) ;
IFF (v:lexic_val) ;
12 changes: 12 additions & 0 deletions apertium-spa-cat.spa-cat_valencia_gva.biprefs.rlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Bilingual dictionary preference rules.
#
# We expect stream variables to set or remove variables with naming
# scheme "VAR:default_override", where "override" is chosen if set,
# otherwise "default" is chosen. For any "default", there may be
# multiple possible "override"''s.

DELIMITERS = ".";

IFF (v:top_gva) ;
IFF (v:lexic_val) ;
IFF (v:lexic_val_gva) ;
10 changes: 10 additions & 0 deletions apertium-spa-cat.spa-cat_valencia_uni.biprefs.rlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Bilingual dictionary preference rules.
#
# We expect stream variables to set or remove variables with naming
# scheme "VAR:default_override", where "override" is chosen if set,
# otherwise "default" is chosen. For any "default", there may be
# multiple possible "override"''s.

DELIMITERS = ".";

IFF (v:lexic_val) ;
16 changes: 14 additions & 2 deletions modes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
<program name="lt-proc -b">
<file name="spa-cat_valencia.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_biprefs">
<file name="spa-cat_valencia.biprefs.rlx.bin"/>
</program>
<program name="cg-proc" debug-suff="biprefs">
<file name="spa-cat.biprefs.rlx.bin"/>
</program>
Expand Down Expand Up @@ -147,8 +150,8 @@
<program name="lt-proc -b">
<file name="spa-cat_valencia_gva.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="top-gva_biprefs">
<file name="spa-cat.top-gva_biprefs.rlx.bin"/>
<program name="cg-proc" debug-suff="valencia_gva_biprefs">
<file name="spa-cat_valencia_gva.biprefs.rlx.bin"/>
</program>
<program name="cg-proc" debug-suff="biprefs">
<file name="spa-cat.biprefs.rlx.bin"/>
Expand Down Expand Up @@ -194,6 +197,9 @@
<program name="lt-proc -b">
<file name="spa-cat_valencia_gva.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_biprefs">
<file name="spa-cat_valencia.biprefs.rlx.bin"/>
</program>
<program name="cg-proc" debug-suff="biprefs">
<file name="spa-cat.biprefs.rlx.bin"/>
</program>
Expand Down Expand Up @@ -241,6 +247,9 @@
<program name="lt-proc -b">
<file name="spa-cat_valencia_uni.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_uni_biprefs">
<file name="spa-cat_valencia_uni.biprefs.rlx.bin"/>
</program>
<program name="cg-proc" debug-suff="biprefs">
<file name="spa-cat.biprefs.rlx.bin"/>
</program>
Expand Down Expand Up @@ -285,6 +294,9 @@
<program name="lt-proc -b">
<file name="spa-cat_valencia_uni.autobil.bin"/>
</program>
<program name="cg-proc" debug-suff="valencia_uni_biprefs">
<file name="spa-cat_valencia_uni.biprefs.rlx.bin"/>
</program>
<program name="cg-proc" debug-suff="biprefs">
<file name="spa-cat.biprefs.rlx.bin"/>
</program>
Expand Down
8 changes: 8 additions & 0 deletions spa-cat.preferences.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<preferences>
<preference id="lexic_val">
<description lang="cat">Lèxic valencià</description>
<description lang="spa">Léxico valenciano</description>
</preference>
<preference id="lexic_val_gva">
<description lang="cat">Lèxic valencià (GVA)</description>
<description lang="spa">Léxico valenciano (GVA)</description>
</preference>
<preference id="top_gva">
<description lang="cat">Topònims oficials (GVA)</description>
<description lang="spa">Topónimos oficiales (GVA)</description>
Expand Down

0 comments on commit 9c653a7

Please sign in to comment.