Task #3366
Import, Edition, use the "w" elements instead of the "span" elements to write the word
Status: | New | Start date: | 04/06/2023 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | Import | Spent time: | - | |
Target version: | TXM 0.8.4 |
Description
Currently word forms are written in <span@id="w_..."><span> elements:
<span title="- n=13765 - w_tdm80j_13765" id="w_tdm80j_13765">comme</span>
This makes complex the discovery of the word elements when parsing the HTML files.
Solution¶
Use "w" elements to simplify the Javascript manipulations to edit, select the words in editions:
<w title="- n=13765 - w_tdm80j_13765" id="w_tdm80j_13765">comme</w>TODO:
- update all import edition steps
- update the all the javascript code that uses the "span" + "@id="w_" combo to select the word elements
- The Javascript code won't work with the old corpus editions (they can be updated if imported with the XTZ or TRS imports)
History
#1 Updated by Matthieu Decorde 6 months ago
- Description updated (diff)
#2 Updated by Serge Heiden 6 months ago
- Description updated (diff)