Corpus export in one CSV file ?

Greg Hedlund greg.hedlund at gmail.com
Fri May 1 10:55:18 UTC 2015


Hello Christophe,

Very nice to hear from you! Thank you for your compliments :)

Currently, there is no method using the CSV export wizard which will 
allow you to create
a single CSV file for the project.  We will look into this for the next 
version of the application.

I have created a PhonShell script 
(https://www.phon.ca/phontrac/wiki/search/scriptlibrary/ProjectToTable)
which will create a single table of data for a set of selected sessions.

To use this script, follow these instructions: (requires an Internet 
connection)

  1) From the 'Project Manager' window in Phon, select Tools -> 
PhonShell from the menu.

  2) Type the following line and press enter:
::exec "https://phon.ca/scripts/ProjectToTable.groovy" > export

  3) You will be presented with a small dialog to select the sessions 
you wish to include in the table:



  4) Once you press OK, data will be printed to a new Buffer named 
'export'.  You may use the button on the top-right corner of the table
to view the data as a table.  The table can be saved to a CSV file by 
using the save button on the top-left corner of the table.



You can save this script to your computer using the following instructions:

  1) Visit https://phon.ca/scripts/ProjectToTable.groovy in your web browser

  2) Right-click and choose 'Save as...'.   Save the script in the 
folder '__res/PhonShell' inside your project folder.

  3) The script will now be available though the Tools menu under 
PhonShell Scripts.



NOTE:  Using this method the table printed by PhonShell will display in 
the console, and not a new buffer.
To display the data in a new buffer, use the up-arrow on your keyboard 
to display the command

::exec "/path/to/ProjectToTable.groovy"

and change it by adding ' > mybuffer' to the end.

E.g.,

::exec "/path/to/ProjectToTable.groovy" > mybuffer.

For more information about PhonShell, visit 
https://phon.ca/phontrac/wiki/dev/PhonShell.

Let me know if you need any help or require any changes to the format of 
the export.

Cheers,

-Greg

On 4/30/2015 11:24 AM, Christophe dos Santos wrote:
> Dear all,
>
> First of all, it has to be said that the new version of Phon is really 
> awesome.
>
> My question is about exporting in csv.
> There is a possibility to export a project through the project manager 
> window >> plugins >> export to CSV
>
> Is it possible in the window that will be open (and called CSV 
> Export), to have an option which allow to have only one CSV file for 
> all the session exported instead of one file by session, the only 
> option I can find for now ?
>
> It will be great to have such option because for the moment we have to 
> copy/paste all the data in only one excel sheet in order to manipulate 
> it more easily.
> If this option already exists Phon is even greater that what I wrote 
> before ;-)
>
> Thanks for your help,
>
> Best,
>
> Christophe
>
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Phon" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to phon+unsubscribe at googlegroups.com 
> <mailto:phon+unsubscribe at googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Phon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phon+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/phon/attachments/20150501/16dc1ee9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgbcihjh.png
Type: image/png
Size: 5770 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/phon/attachments/20150501/16dc1ee9/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcehadfi.png
Type: image/png
Size: 45845 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/phon/attachments/20150501/16dc1ee9/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chabachg.png
Type: image/png
Size: 26484 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/phon/attachments/20150501/16dc1ee9/attachment-0002.png>


More information about the Phon mailing list