Task #3366
Mis à jour par Serge Heiden il y a plus de 2 ans
Currently word forms are written in <span@id="w_..."><span> elements: elements.
<pre>
<span title="- n=13765 - w_tdm80j_13765" id="w_tdm80j_13765">comme</span>
</pre>
This makes complex the discovery of the word elements when parsing the HTML files. files
h3. Solution
Use Using "w" elements to works and simplify the Javascript manipulations to edit, select the words in editions: editions.
<pre>
<w title="- n=13765 - w_tdm80j_13765" id="w_tdm80j_13765">comme</w>
</pre>
TODO:
* update all import edition steps
* update the all the javascript code that uses the "span" + "@id="w_" combo to select the word elements
<pre>
<span title="- n=13765
- w_tdm80j_13765" id="w_tdm80j_13765">comme</span>
</pre>
gives
<pre>
<w title="- n=13765
- w_tdm80j_13765" id="w_tdm80j_13765">comme</w>
</pre>
PROBLEM:
* The Javascript code won't work with the old corpus editions (they can be updated if imported with the XTZ or TRS imports)
<pre>
<span title="- n=13765 - w_tdm80j_13765" id="w_tdm80j_13765">comme</span>
</pre>
This makes complex the discovery of the word elements when parsing the HTML files. files
h3. Solution
Use Using "w" elements to works and simplify the Javascript manipulations to edit, select the words in editions: editions.
<pre>
<w title="- n=13765 - w_tdm80j_13765" id="w_tdm80j_13765">comme</w>
</pre>
TODO:
* update all import edition steps
* update the all the javascript code that uses the "span" + "@id="w_" combo to select the word elements
<pre>
<span title="- n=13765
- w_tdm80j_13765" id="w_tdm80j_13765">comme</span>
</pre>
gives
<pre>
<w title="- n=13765
- w_tdm80j_13765" id="w_tdm80j_13765">comme</w>
</pre>
PROBLEM:
* The Javascript code won't work with the old corpus editions (they can be updated if imported with the XTZ or TRS imports)