From: Aure S. <a.s...@lo...> - 2025-04-04 15:00:59
|
Hi Yes, it's something like that. Actually, I would like to simplificate the management of verbs which doesn't use the same paradigm in different varieties : <pardef n="parl/i__vblex"> <e><p><l>i</l><r>ar<s n="vblex"/><s n="pri"/><s n="p1"/><s n="sg"/></r></p></e> </pardef> <pardef n="cr/e[M]ar__vblex"> <e alt="oci"><p><l>è</l><r>e</r></p><i><prm/></i><par n="parl/i__vblex"/></e> <e alt="oci@gascon"><p><l>è</l><r>e</r></p><i><prm/></i><par n="parl/i__vblex"/></e> </pardef> <pardef n="p/e[NS]ar__vblex"> <e alt="oci"><i>e<prm/></i><par n="parl/i__vblex"/></e> <e alt="oci@gascon"><i>e<prm/></i><par n="parl/i__vblex"/></e> </pardef> <pardef n="L-alt_G-pasalt"> <e alt="oci"><par n="cr/e[M]ar__vblex" prm="prm"/></e> <e alt="oci@gascon"><par n="p/e[NS]ar__vblex" prm="prm"/></e> </pardef> <e lm="acceptar"><i>acc</i><par n="L-alt_G-pasalt" prm="pt"/></e> In oci, it would generate "accèpti" (according to cr/e[M]ar__vblex paradigm) and in oci@gascon it would generate "accepti" (according to p/e[NS]ar__vblex paradigm). For now, I have to define 2 forms : <e lm="acceptar" alt="oci"><i>acc</i><par n="cr/e[M]ar__vblex" prm="pt"/></e> <e lm="acceptar" alt="oci@gascon"><i>acc</i><par n="p/e[NS]ar__vblex" prm="pt"/></e> When we will have 5 varieties (and maybe 9 one day), it will be impossible... Thanks Le 02/04/2025 à 11:07, Kevin Brubeck Unhammer a écrit : >> I call a metaparadigm with : >> <e lm="acceptar" alt="oci"><i>acc</i><par n="L-alt_G-pasalt" prm="pt"/></e> >> Inside, I would like to call another metaparadigm and passing it the >> "prm" argument : >> <pardef n="L-alt_G-pasalt"> >> <e alt="oci"><par n="cr/e[M]ar__vblex" prm="prm"/></e> >> </pardef> >> But it doesn't seem to work, I have an error : >> Error (4685): Undefined paradigm 'cr/e[M]ar__vblex__prm'. >> >> Can I pass the prm parameter to another paradigm ? > Do I understand you correctly that you would like metadix > > > <pardef n="cr/e[M]ar__vblex"> > <e><p><l>cre<prm/>ar</l><r>cremar<s n="vblex"/></r></p></e> > <!-- I just made something up here --> > </pardef> > > <pardef n="L-alt_G-pasalt"> > <e alt="oci"><par n="cr/e[M]ar__vblex" prm="prm"/></e> > </pardef> > > <e lm="acceptar" alt="oci"><i>acc</i><par n="L-alt_G-pasalt" prm="pt"/></e> > > to be compiled/transformed to something equivalent to > > <pardef n="cr/e[M]ar__vblex_pt"> > <e><p><l>creptar</l><r>cremar<s n="vblex"/></r></p></e> > </pardef> > <e lm="acceptar" alt="oci"><i>acc</i><par n="cr/e[M]ar__vblex_pt"/></e> > > > ? > > That does sound like it would be useful. > > > As you found out, prm="prm" won't work for that; I'm not sure but I > don't think the current XSLT scripts support it, so we would have to > expand the scripts to be able to pass on the prm parameter to > sub-paradigms. > > > > > _______________________________________________ > Apertium-stuff mailing list > Ape...@li... > https://lists.sourceforge.net/lists/listinfo/apertium-stuff AureSÉGUIER Responsabla del pòle informatic Congrès permanent de la lenga occitana mobilePhone +33 (0)5 32 00 00 64 <tel:+33 (0)5 32 00 00 64> website www.locongres.org <//www.locongres.org> address La Ciutat - Creem! , 5-7 rue de la Fontaine, 64000 Pau facebook <https://www.facebook.com/lo.congres> twitter <https://twitter.com/locongres> linkedin <https://www.linkedin.com/company/congres-permanent-de-la-lenga-occitane/> instagram <https://www.instagram.com/locongres/> Le 02/04/2025 à 11:07, Kevin Brubeck Unhammer a écrit : >> I call a metaparadigm with : >> <e lm="acceptar" alt="oci"><i>acc</i><par n="L-alt_G-pasalt" prm="pt"/></e> >> Inside, I would like to call another metaparadigm and passing it the >> "prm" argument : >> <pardef n="L-alt_G-pasalt"> >> <e alt="oci"><par n="cr/e[M]ar__vblex" prm="prm"/></e> >> </pardef> >> But it doesn't seem to work, I have an error : >> Error (4685): Undefined paradigm 'cr/e[M]ar__vblex__prm'. >> >> Can I pass the prm parameter to another paradigm ? > Do I understand you correctly that you would like metadix > > > <pardef n="cr/e[M]ar__vblex"> > <e><p><l>cre<prm/>ar</l><r>cremar<s n="vblex"/></r></p></e> > <!-- I just made something up here --> > </pardef> > > <pardef n="L-alt_G-pasalt"> > <e alt="oci"><par n="cr/e[M]ar__vblex" prm="prm"/></e> > </pardef> > > <e lm="acceptar" alt="oci"><i>acc</i><par n="L-alt_G-pasalt" prm="pt"/></e> > > to be compiled/transformed to something equivalent to > > <pardef n="cr/e[M]ar__vblex_pt"> > <e><p><l>creptar</l><r>cremar<s n="vblex"/></r></p></e> > </pardef> > <e lm="acceptar" alt="oci"><i>acc</i><par n="cr/e[M]ar__vblex_pt"/></e> > > > ? > > That does sound like it would be useful. > > > As you found out, prm="prm" won't work for that; I'm not sure but I > don't think the current XSLT scripts support it, so we would have to > expand the scripts to be able to pass on the prm parameter to > sub-paradigms. > > > > > _______________________________________________ > Apertium-stuff mailing list > Ape...@li... > https://lists.sourceforge.net/lists/listinfo/apertium-stuff |