[Moin-user] ExcelPastedTable vs CSV parser (tabs)

R.Bauer rb.proj at gmail.com
Thu Jun 5 02:30:21 EDT 2008


Jim Kleckner schrieb:
> I gave ExcelPastedTable a try and it makes a nice way for people to 
> copy/paste simple tab-separated information to/from a spreadsheet.
>   http://moinmo.in/parser/ExcelPastedTable.py
> 
> Note that according to the file, it requires a modification to MoinMoin
> to eliminate expanding of tabs in "rawtext = self.raw.expandtabs()".
> I went ahead and made that change to try this out.
> 
> It seems there is overlap between the CSV parser and this one.
> This principle difference is using a tab separator.
> 
> The first question is, would it be possible to allow the CSV parser to 
> use tabs?  (I tried a few obvious ways without luck).  I guess the 1.7 
> version might work with unicode?
> 

a) yes it uses the sniffer and the preferred_delimiters = [',', '\t',
';', ' ', ':']

b) yes

if you like to try out you can go to http://test17.moinmo.in

cheers
Reimar

> I see that in 1.7 release, the CSV parser appears to check for CamelCase
> words to generate links.  Nice:
>   http://hg.moinmo.in/moin/1.7/file/b3747c0e81ae/MoinMoin/parser/text_csv.py
> 
> 
> 
> Thanks.
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/





More information about the Moin-user mailing list