Feature #1175

Updated by Matthieu Decorde 10 months ago

The user must be able to keep some results between TXM sessions -> *store* results.

It would be interesting to also be able to share 'the way to compute' some results with another user -> *export* results, to be reproduced in a TXM.

It would also be interesting to trace the working session as a journal for reading and publishing -> produce a *journal* of results to be read (see Gweave below).

A result is the association of a Command name and its Parameters.

Current "Export" command is not the solution because it does not allow to rebuild the result in another TXM session.

h3. Solution A

Add a new "Keep" "Keep/Save" entry in the corpus view contextual menu, "edit" main menu, toolbar and shortcut (ctrl+s). shortcut.

Add a visual mark that informs the user if the result is kept or not: for example, a "*" = not kept

or a pin = kept.

By default a result is not kept.

Saved in a new "session.xml" file, or better ORM+XML import/export.

h3. Solution B

Store the journal of the results/command calls done in a session in:
* 'history.xml' file
* or better history ORM+XML import/export
* or even better 'history.groovy' (containing Groovy code)

To be implemented in Groovy:
* the journal needs a maintained Commands API
* results/command calls could be stored in macros
* a macro could call several Results/command calls stored in a macro

h3. Solution C

Build a 'Gweave' literate programming and report generating environment similar to:
** "R Sweave":http://www.statistik.lmu.de/~leisch/Sweave
** "Python Pweave":http://mpastell.com/pweave

The commands from a journal can be:
* read for the reference of an experiment
* shared to be executed in another TXM session
* edited in a report or article

h3. Solution D

* Add a new "Share with" entry in the corpus view contextual menu
* Add a new "Import results/command calls" entry in the Corpus view contextual menu

h3. Linked to tickets

* lazy loading
* result properties : author, date, comment...
* lexical table export/import

Back