Feature #2009
TBX: X.X, add line number to concordance default reference for TXT based import modules
Statut: | New | Début: | 21/01/2017 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Import | Temps passé: | - | |
Version cible: | TXM 0.X.X |
Description
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).
Solution¶
Build in the TXT based import modules a default reference w@ref with "text@id, w@lbn".
For example :
leviathan, 12
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 :
leviathan, 12/23000
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 :
leviathan, 12/23000 leviathan, 1312/23000
Historique
#1 Mis à jour par Serge Heiden il y a plus de 8 ans
- Description mis à jour (diff)
#2 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#3 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.X.X