Feature #1303
GWT: X.X, Concordance form default values
| Statut: | Closed | Début: | 08/04/2015 | |
|---|---|---|---|---|
| Priorité: | Normal | Echéance: | ||
| Assigné à: | - | % réalisé: | 100% |
|
| Catégorie: | Commands | Temps passé: | - | |
| Version cible: | Portal 0.6.2 |
Description
The concordance form default values must depend on the Corpus configuration (import.xml):
- default reference
- default contexts size
Solution 1¶
The default reference can be set in the import.xml file at since Portal 0.5 :
<ui command="concordances">
<view>
<pattribute ref="word"/>
<pattribute ref="pos"/>
<pattribute ref="func"/>
<pattribute ref="lemma"/>
</view>
<sort/><!-- use all properties -->
<ref>
<sattribute ref="text:id"/>
<sattribute ref="text:loc"/>
<sattribute ref="text:type"/>
<sattribute ref="text:date"/>
<pattribute ref="word"/>
<pattribute ref="pos"/>
<pattribute ref="func"/>
<pattribute ref="lemma"/>
</ref>
</ui>
The default concordance context sizes are set in the import.xml since Portal 0.6.2 :
<ui command="concordance">
<context_limits type="list">text</context_limits>
<context_sizes left="7" right="8"/>
</ui>
Validation test¶
- open the concordance tab with a corpus
- run the
<text> []
query - the pivot never contains words from the previous texts
- run the
[] </text>
query - the pivot never contains words from the previous texts
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
#2 Mis à jour par Serge Heiden il y a environ 10 ans
- Description mis à jour (diff)
#3 Mis à jour par Matthieu Decorde il y a environ 10 ans
- % réalisé changé de 0 à 80
#4 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Description mis à jour (diff)
#5 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- % réalisé changé de 80 à 100
#6 Mis à jour par Sebastien Jacquot il y a presque 3 ans
- Statut changé de New à Closed