Feature #1533
RCP: 0.7.7, use CQL @ marker in command, focus and highlight mode
Statut: | New | Début: | 29/09/2015 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Commands | Temps passé: | - | |
Version cible: | TXM 0.X.X |
Description
When a CQL contains an '@
' marker, like in for example "'je' @
[pos='V.*']", the result match list contains three columns named CQI_CONST_FIELD_MATCH (start), CQI_CONST_FIELD_MATCHEND (end) and CQI_CONST_FIELD_TARGET (target: corresponding to the position of the match marked by '@
' in the query, that is the verbs in the sample query).
See a complete example usage in Groovy in the CQi tutorial.
The Index, Concordance commands must use the target position in their arguments if it is present in the queries.
A command can test if an '@
' target was expressed in the query by using the following test code on the results list: CQI_CQP_SUBCORPUS_HAS_FIELD("DISCOURS:RES1", CQI_CONST_FIELD_TARGET)
.
In some cases the target is not resolved (exemple : "je"
[] [frpos=[V.+"]).
- Concordance
- Concordance: optionally,
- a) must fill the pivot column only with the position marked by the
@
target - OR b) wrap with "[" and "]" characters the position marked by the
@
target in the pivot column text value see #1532 - OR c) highlight the position marked by the
@
target in the pivot column (for example in bold). In that case the BackToText action could also highlight differently the position marked by the@
target in the edition - if the target is not resolved, no highlight or wrapping is done
- a) must fill the pivot column only with the position marked by the
Solution¶
Allow the user to choose the command behavior between :- focus
- highlight
-----------> how , when ?
Currently the Index&Cooccurrences are focusing and the Concordance is highlighting. The referencer and Progression are not using it.
Historique
#1 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
#2 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Sujet changé de RCP: 0.7.7, use CQL @ marker in Index command, focus and highlight mode à RCP: 0.7.7, use CQL @ marker in command, focus and highlight mode
- Description mis à jour (diff)
- Version cible changé de TXM 0.8.0 à TXM 0.8.2
#3 Mis à jour par Sebastien Jacquot il y a plus de 5 ans
- Version cible changé de TXM 0.8.2 à TXM 0.X.X