Feature #2923
Concordance, properties and sprintf pattern to build reference column, as a corpus parameter
Statut: | Closed | Début: | 13/10/2020 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Commands | Temps passé: | - | |
Version cible: | TXM 0.8.2 |
Description
Currently, the w@ref property values are used to build the concordance reference column content by default.
This limits the default reference values choice to the corpus sources preparation process, before the import process.
We should help the user to set the defaut reference values during and after the import process.
Solution 1: add two corpus parameters/registries¶
Add two new corpus parameters to allow the user to dynamically set the default reference values:- referenceProperties: list of word properties and structures properties to use, separated by a comma (same set as for the concordance sort keys)
- referencePattern: sprintf pattern to use to build a reference. There must be as many '
%
' directives as properties to use.
- in the reference view dialog :
- a new Text widget titled "pattern/format"
- highlighted in RED, if the selected properties number and the %s pattern number differs
- in the properties table the pattern next to the "..." button of the view properties
see https://groupes.renater.fr/wiki/txm-info/public/specs_concordance#references
Solution 2: add two corpus import parameters¶
Add the same corpus import parameters to all XML-based import modules:- in the "Commands" section
- in a "Concordance" sub-section
- the two import parameters drive the two previous corpus parameters/registries
Historique
#1 Mis à jour par Serge Heiden il y a presque 5 ans
- Sujet changé de Concordance, sprintf reference pattern à Concordance, properties and sprintf pattern to build reference column, as a corpus parameter
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a presque 5 ans
- Version cible changé de TXM 0.8.2 à TXM 0.8.2 - Antract
#3 Mis à jour par Matthieu Decorde il y a presque 5 ans
- % réalisé changé de 0 à 50
#4 Mis à jour par Matthieu Decorde il y a presque 5 ans
- % réalisé changé de 50 à 80
#5 Mis à jour par Serge Heiden il y a presque 5 ans
- Description mis à jour (diff)
#6 Mis à jour par Matthieu Decorde il y a presque 5 ans
- Version cible changé de TXM 0.8.2 - Antract à TXM 0.8.2
- % réalisé changé de 80 à 50
the corpus parameters are implemented but the graphical user interfaces are not ready yet
#7 Mis à jour par Matthieu Decorde il y a presque 5 ans
- Description mis à jour (diff)
#8 Mis à jour par Matthieu Decorde il y a plus de 3 ans
- % réalisé changé de 50 à 80
#9 Mis à jour par Sebastien Jacquot il y a plus d'un an
- % réalisé changé de 80 à 100
#10 Mis à jour par Sebastien Jacquot il y a plus d'un an
- Statut changé de New à Closed