lttoolbox icon indicating copy to clipboard operation
lttoolbox copied to clipboard

Support direction restrictions in weights

Open marcriera opened this issue 4 years ago • 1 comments

Currently, weights are specified using the w attribute. Using it in a bidix gives an entry the same weight for both directions, potentially producing unwanted effects if there are lexical units with multiple translations in both directions.

I suggest adding the attributes wr and wl with a behaviour equivalent to what vr and vl already do with variants.

Thanks!

marcriera avatar May 15 '20 12:05 marcriera

Or w could apply to <l> and <r>. Although really this is a question for r=LR and r=RL. If you want different weights then these are really different entries, so e.g.

<e r="LR" w="1.0"><p><l>estació<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>
<e w="3.0"><p><l>estació<s n="n"/><s n="f"/></l><r>season<s n="n"/></r></p></e>
<e r="RL" w="2.0"><p><l>estació<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>
<e w="3.0"><p><l>lloc<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>

ftyers avatar Jun 20 '20 07:06 ftyers