Feature #841

Updated by Matthieu Decorde about 4 years ago

h3. X-axis range

Currently, the X-axis starts with the subcorpus first word position and ends with the last word position.

The new behavior must translate the subcorpus positions so that the X-axis starts at 0.

h3. Subcorpus continuity

h4. Solution 1

Currently, the sub-corpus continuity test is only to verify if the CQL query result corresponding to the sub-corpus is composed of only ONE match.

h4. Solution 2

Next step is to test the continuity of all the matches of a sub-corpus:
* if query result is composed of one match return TRUE
* else for each match
** if last match, break
** if current_match.end = next_match.start-1 then continue
*** else return FALSE
* return TRUE

h4. Validation test

* Create a subcorpus with DG6 and DG7 texts of DISCOURS corpus

* run a progression with "je" query, the progression is computed and the result is the same for R and Java Graphic renderer
* Create a subcorpus with DG6 and DG11 texts of DISCOURS corpus
* run a progression: a message appears, the progression cannot be computed (fr=La fonctionnalité Progression n'est pas encore disponible pour les sous-corpus discontinues.)

MD: **OK** Linux64