Feature #2009

Updated by Serge Heiden over 3 years ago

Currently, the default concordance references for TXT based import modules (TXT+CSV, Clipboard...) are the text id.
Raw texts have line numbers that can be useful to display to have an idea of where a concordance pivot occurs along a text (at the end, in the middle, before another, etc.) and also to get back to the sources (for example for text correction or text extraction).

h3. .h3 Solution

Build in the TXT based import modules a default reference w@ref with "text@id, w@lbn".
For example :
<pre>
leviathan, 12
</pre>


h3. .h3 Solution 2

We could also build a new synthetic metadata text@lbn with the total number of lines as value.
And provide a default reference like "text@id, w@lbn/text@lbn".
For example :
<pre>
leviathan, 12/23000
</pre>

h3. Solution 3

We could also build a new synthetic internal metadata text@lbnl with the total number of digits used by the total number of lines as value = Math.log10(text@lbn)+1 as int
And provide a default reference like "text@id, <.. filling spaces ...>w@lbn".
For example :
<pre>
leviathan, 12/23000
leviathan, 1312/23000
</pre>

Back