Re: Problem with csv2lyx

2008-09-18 Thread rgheck
José Matos wrote: On Thursday 18 September 2008 18:47:44 rgheck wrote: See if what I committed at r26456 seems good. If not, feel free to clean it up as you wish. I will change it because the workaround is due to a bug in older versions of the python library csv and not to any program

Re: Problem with csv2lyx

2008-09-18 Thread José Matos
On Thursday 18 September 2008 18:47:44 rgheck wrote: > See if what I committed at r26456 seems good. If not, feel free to clean > it up as you wish. I will change it because the workaround is due to a bug in older versions of the python library csv and not to any program logic. At least a comment

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
José Matos wrote: On Thursday 18 September 2008 18:11:43 rgheck wrote: That one worked here, too. Can you find out what version you csv.py is? Try the attached this time. I see what you are doing and I agree. The problem should be the None value for the dialect, why this fails with t

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
Konrad Hofbauer wrote: rgheck wrote: That one worked here, too. Can you find out what version you csv.py is? csv.py does not carry version information in the header, but it sits in Frameworks/Python.framework/Versions/2.3/lib/python2.3/csv.py, and Python is version 2.3.5. Try the attached

Re: Problem with csv2lyx

2008-09-18 Thread Konrad Hofbauer
rgheck wrote: That one worked here, too. Can you find out what version you csv.py is? csv.py does not carry version information in the header, but it sits in Frameworks/Python.framework/Versions/2.3/lib/python2.3/csv.py, and Python is version 2.3.5. Try the attached this time. Both the p

Re: Problem with csv2lyx

2008-09-18 Thread José Matos
On Thursday 18 September 2008 18:11:43 rgheck wrote: > That one worked here, too. Can you find out what version you csv.py is? > > Try the attached this time. I see what you are doing and I agree. The problem should be the None value for the dialect, why this fails with this file and not with oth

Re: Problem with csv2lyx

2008-09-18 Thread José Matos
On Thursday 18 September 2008 16:42:35 rgheck wrote: > Works here. I'm guessing maybe you have an older version of python? I > think line_num may only have come into being with python 2.5 (see here: > http://docs.python.org/whatsnew/modules.html). If so, probably we > shouldn't use that but should

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
Konrad Hofbauer wrote: Fast reply, including correct diagnose, and patch! :-) rgheck wrote: Works here. I'm guessing maybe you have an older version of python? Indeed. Python 2.3.5. Since this is the system-default for a fully patched Mac OS X 10.4, this should be fixed (or mentioned in the

Re: Problem with csv2lyx

2008-09-18 Thread Konrad Hofbauer
Fast reply, including correct diagnose, and patch! :-) rgheck wrote: Works here. I'm guessing maybe you have an older version of python? Indeed. Python 2.3.5. Since this is the system-default for a fully patched Mac OS X 10.4, this should be fixed (or mentioned in the docu that it does not w

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
Konrad Hofbauer wrote: Hello, I try to import the attached simple csv file into Lyx, but csv2lyx fails with: $ python /Applications/LyX-1.6.0rc2.app/Contents/Resources/scripts/csv2lyx.py NoiseResult.csv Traceback (most recent call last): File "/Applications/LyX-1.6.0rc2.app/Con

Problem with csv2lyx

2008-09-18 Thread Konrad Hofbauer
Hello, I try to import the attached simple csv file into Lyx, but csv2lyx fails with: $ python /Applications/LyX-1.6.0rc2.app/Contents/Resources/scripts/csv2lyx.py NoiseResult.csv Traceback (most recent call last): File "/Applications/LyX-1.6.0rc2.app/Contents/Resources/scripts/csv2l

Re: [patch] new Python csv2lyx importer

2008-05-19 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > > Hartmut suggested to rename the import format from "Comma-separated > > values" > >  > to "Table (CSV)". I'm fine with that. > > I did this now in trunk. This could also be done for branch Done. Jürgen

Re: [patch] new Python csv2lyx importer

2008-05-19 Thread Uwe Stöhr
> I suggest to commit to the stable branch also the updated version. Already done. > Hartmut suggested to rename the import format from "Comma-separated values" > to "Table (CSV)". I'm fine with that. I did this now in trunk. This could also be done for branch. regards Uwe

Re: [patch] new Python csv2lyx importer

2008-05-19 Thread José Matos
On Sunday 18 May 2008 20:22:44 Uwe Stöhr wrote: > OK, done. As Jürgen agreed, I also committed it to branch. > > regards Uwe I suggest to commit to the stable branch also the updated version. Note that I had removed the reference from the documentation to the file format, it is easier to all of

Re: [patch] new Python csv2lyx importer

2008-05-19 Thread Uwe Stöhr
José Matos schrieb: The last version of Hartmut (#c19) can be committed to trunk, now any improvement can happen on the repository. :-) OK, done. As Jürgen agreed, I also committed it to branch. regards Uwe

Re: [patch] new Python csv2lyx importer

2008-05-19 Thread Jürgen Spitzmüller
José Matos wrote: > The last version of Hartmut (#c19) can be committed to trunk, now any > improvement can happen on the repository. :-) +1. It will be easier to follow the changes in diffs than in reworked files. Hartmut suggested to rename the import format from "Comma-separated values" to "T

Re: [patch] new Python csv2lyx importer

2008-05-17 Thread José Matos
On Saturday 17 May 2008 17:32:01 Uwe Stöhr wrote: > The new version works perfect for me. But Hartmut has found a bug: > http://bugzilla.lyx.org/show_bug.cgi?id=4852#c18 > and has a fix for this. > I doubt that his testfile is conform to the CSV specification. So Hartmut, > could you please send a

Re: [patch] new Python csv2lyx importer

2008-05-17 Thread Uwe Stöhr
The new version works perfect for me. But Hartmut has found a bug: http://bugzilla.lyx.org/show_bug.cgi?id=4852#c18 and has a fix for this. I doubt that his testfile is conform to the CSV specification. So Hartmut, could you please send a diff to José's version to see what you have done to fix t

Re: [patch] new Python csv2lyx importer

2008-05-16 Thread José Matos
On Friday 16 May 2008 01:12:14 Uwe Stöhr wrote: > > Instead of using our method to decide what is the column delimiter I > > have used the csv sniffer (that is the method name, not my fault). :-) > > The sniffer works with all my test documents, also the ones generated by > Excel, but you forgot

Re: [patch] new Python csv2lyx importer

2008-05-15 Thread Uwe Stöhr
a LyX-table for versions 1.5.0 and higher (LyX table format 276). # It uses Python's csv module for parsing. # The original csv2lyx was witten by Antonio Gulino <[EMAIL PROTECTED]> # in Perl for LyX 1.x and modified for LyX table format 276 by the author. # import csv, unicodedata impo

Re: [patch] new Python csv2lyx importer

2008-05-15 Thread José Matos
On Wednesday 14 May 2008 23:55:06 Uwe Stöhr wrote: > Attached is a new CSV2lyx importer written mainly by Hartmut Haase. > It uses Python's built in CSV reader that is available since Python 2.3. I > added a method to automatically detect the correct column separator. > >

Re: [patch] new Python csv2lyx importer

2008-05-15 Thread Juergen Spitzmueller
Uwe Stöhr wrote: > Attached is a new CSV2lyx importer written mainly by Hartmut Haase. > It uses Python's built in CSV reader that is available since Python 2.3. I > added a method to automatically detect the correct column separator. Excellent. After the pythons have reviewed it,

[patch] new Python csv2lyx importer

2008-05-14 Thread Uwe Stöhr
Attached is a new CSV2lyx importer written mainly by Hartmut Haase. It uses Python's built in CSV reader that is available since Python 2.3. I added a method to automatically detect the correct column separator. There are only minor tweaks to do I think. I'm sending it that the Pyth

Re: csv2lyx

2008-05-05 Thread Jürgen Spitzmüller
José Matos wrote: > I agree with Rich, if it works it should go. I committed it to trunk now. Please test. I still haven't decided if it will go into 1.5.5. Jürgen

Re: csv2lyx

2008-05-03 Thread José Matos
On Friday 02 May 2008 20:11:12 rgheck wrote: > I didn't test it, but I don't see anything wrong with the code. It's not > the most Python-ish code I ever saw, but if it works, it should be fine. > > rh I agree with Rich, if it works it should go. (With all the due respect to Harmut but) there is

Re: csv2lyx

2008-05-02 Thread rgheck
Jürgen Spitzmüller wrote: Hartmut Haase wrote: attached is a little Python-program to convert csv-tables to LyX. It can easily be built into LyX via configure.py. Thanks Hartmut, for updating this script and for converting it to Python. If some Pythonists can review the script (and ma

Re: csv2lyx

2008-05-02 Thread Jürgen Spitzmüller
Hartmut Haase wrote: > attached is a little Python-program to convert csv-tables to LyX. It can > easily be built into LyX via configure.py. Thanks Hartmut, for updating this script and for converting it to Python. If some Pythonists can review the script (and maybe one ot two people test it), I

csv2lyx

2008-05-02 Thread Hartmut Haase
Hi, attached is a little Python-program to convert csv-tables to LyX. It can easily be built into LyX via configure.py. -- Viele Grüße, Hartmut Hungerhilfe: http://www.thehungersite.com Kampagne gegen den Ausverkauf der Deutschen Bahn: http://www.bahn-fuer-alle.de Das heutige Motto: Never say

Re: csv2lyx

2008-03-22 Thread Jürgen Spitzmüller
Hartmut Haase wrote: > I have "modernized" csv2lyx to meet the needs of lyx154, and > I believe we should/could implement it into LyX. Good idea in general, but it needs to be rewritten in python to be included in the LyX distribution. Jürgen

csv2lyx

2008-03-22 Thread Hartmut Haase
Hi, I have "modernized" csv2lyx to meet the needs of lyx154, and I believe we should/could implement it into LyX. I have tested it, and it works fine. Or does anybody know another method to import tables from MS or OO? -- Viele Grüße, Hartmut Hungerhilfe: http://www.thehung

Re: csv2lyx: table import

2008-03-11 Thread José Matos
On Tuesday 11 March 2008 09:17:05 Hartmut Haase wrote: > Hi, > I attach a little script that converts csv-tables to LyX. That seems to be a popular need as there is already another script that does the same. ftp://ftp.lyx.org/pub/lyx/contrib/tools/csv2lyx-1.0.0.tar.gz > Unfortunately

Re: csv2lyx: table import

2008-03-11 Thread Pavel Sanda
> I attach a little script that converts csv-tables to LyX. Unfortunately it is > a little old, and the output cannot be read by LyX > 1.3.x (I use lyx137). > Maybe a developer can uptdate it and/or implement it into LyX because it is > the only program I know to get tables in a resonable way in

csv2lyx: table import

2008-03-11 Thread Hartmut Haase
nto LyX. -- Viele Grüße, Hartmut Hungerhilfe: http://www.thehungersite.com Kampagne gegen den Ausverkauf der Deutschen Bahn: http://www.bahn-fuer-alle.de Das heutige Motto: You have an unusual equipment for success. Be sure to use it properly. csv2lyx-1.0.0.tar.gz Description: application/tgz

Re: csv2lyx to the contribs?

2001-11-26 Thread Jean-Marc Lasgouttes
> "Antonio" == Antonio Gulino <[EMAIL PROTECTED]> writes: Antonio> Because I think I have some problems with my mailsystem, I Antonio> post again this response. Sorry for the disturb. antonio Thanks. The file is on ftp.lyx.org/pub/lyx/contrib now. JMarc

Re: csv2lyx to the contribs?

2001-11-25 Thread Antonio Gulino
lt;[EMAIL PROTECTED]> Cc: Guenter Milde <[EMAIL PROTECTED]> Subject: Re: csv2lyx to the contribs? Si j'ai bien compris, voulais-tu un tar-file comprimé. Le contenu est (tar xfvz csv2lyx-1.0.0.tar.gz): ./csv2lyx-1.0.0/ ./csv2lyx-1.0.0/README ./csv2lyx-1.0.0/csv2lyx ./csv2lyx-1.0.0/csv2lyx.htm

Re: csv2lyx to the contribs?

2001-11-08 Thread Jean-Marc Lasgouttes
>>>>> "Antonio" == Antonio Gulino <[EMAIL PROTECTED]> writes: Antonio> On Wed, 7 Nov 2001, Guenter Milde wrote: >> By the way, how about uploading the csv2lyx script to the contribs >> on the main lyx server? Antonio> Why not? Antonio> If you

csv2lyx to the contribs?

2001-11-07 Thread Antonio Gulino
On Wed, 7 Nov 2001, Guenter Milde wrote: > By the way, how about uploading the csv2lyx script to the contribs on > the main lyx server? Why not? If you think it's a good idea, let me know. I send you the last version. Maybe I must do other things, like a README file or so. Changin