Feature #2923

Concordance, properties and sprintf pattern to build reference column, as a corpus parameter

Added by Matthieu Decorde about 1 month ago. Updated 5 days ago.

Status:New Start date:10/13/2020
Priority:Normal Due date:
Assignee:- % Done:

50%

Category:Commands Spent time: -
Target version: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.
Also add to the concordance editor parameters :
  • 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

History

#1 Updated by Serge Heiden about 1 month ago

  • Subject changed from Concordance, sprintf reference pattern to Concordance, properties and sprintf pattern to build reference column, as a corpus parameter
  • Description updated (diff)

#2 Updated by Matthieu Decorde about 1 month ago

  • Target version changed from TXM 0.8.2 to TXM 0.8.2 - Antract

#3 Updated by Matthieu Decorde 18 days ago

  • % Done changed from 0 to 50

#4 Updated by Matthieu Decorde 18 days ago

  • % Done changed from 50 to 80

#5 Updated by Serge Heiden 18 days ago

  • Description updated (diff)

#6 Updated by Matthieu Decorde 18 days ago

  • Target version changed from TXM 0.8.2 - Antract to TXM 0.8.2
  • % Done changed from 80 to 50

the corpus parameters are implemented but the graphical user interfaces are not ready yet

#7 Updated by Matthieu Decorde 5 days ago

  • Description updated (diff)

Also available in: Atom PDF