Ideas for Google Summer of Code/Unify the metadix formats

From Apertium
< Ideas for Google Summer of Code
Revision as of 11:47, 14 February 2014 by Mlforcada (talk | contribs) (→‎Coding challenge)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ask User:mlforcada for more information

Coding challenge[edit]

  • Take the apertium-es-ca.es.dix from apertium-es-ca
  • Write a XSLT sheet that transforms as many entries <e> as possible in the standard section of the dictionary as follows:


<e lm="abdominal" a="Pete" ><i>abdominal</i><par n="abdominal__adj"/></e>
<e lm="amargo"><i>amarg</i><par n="absolut/o__adj"/></e>
<e r="RL" lm="débil"><i>débil</i><par n="abdominal__adj"/></e>
<e r="LR" lm="inapropiado"><i>inapropiad</i><par n="absolut/o__adj"/></e>
<e lm="a menudo"><i>a<b/>menudo</i><par n="ahora__adv"/></e>
<e r="LR" lm="otros tantos"><p><l>otras<b/>tantas</l><r>otros<b/>tantos<s n=
"det"/><s n="ind"/><s n="f"/><s n="pl"/></r></p></e>
<e lm="multa de tráfico"><i>multa</i><par n="abeja__n"/><p><l><b/>de<b/>tráfico</l><r><g><b/>de<b/>tráfico</g></r></p></e>

becomes

(abdominal:abdominal)[abdominal_adj]; # abdominal (Pete)
(amarg:amarg)[absolut/o_adj]; # amargo
(débil:>:débil)[abdominal_adj]; # débil
(inapropiad:<:inapropiad)[absolut/o_adj]; # inapropiado
(a_menudo:a_menudo)[ahora_adv]; # a menudo
(otras_tantas:>:otros_tantos<det><ind><f><pl>); # otros tantos
(multa:multa)[abeja__n](_de_tráfico)); # multa de tráfico

Frequently asked questions[edit]

See also[edit]