Re: Lilypond source code indenter and formatter

2012-06-07 Thread Martin Tarenskeen
On Thu, 7 Jun 2012, Graham Percival wrote: Is anyone on the list aware of a tool that takes a valid Lilypond score as input and produces as output the same .ly file but with the formatting and layout standardized? Frescobaldi has a script to do it (see the issue), but it's not clear if it

Re: Lilypond source code indenter and formatter

2012-06-07 Thread Colin Hall
On Thu, Jun 07, 2012 at 06:26:36AM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: Exactly. My intended application is to use it as part of a git collaboration workflow that Urs, Janek, Susan(?) and I are working on. It is not really helpful for diffs if you get

Re: Lilypond source code indenter and formatter

2012-06-07 Thread Colin Hall
On Thu, Jun 07, 2012 at 07:09:26AM +0200, Federico Bruni wrote: Il 07/06/2012 02:49, Colin Hall ha scritto: It seems to be equipped to run as a program: lgc$ wgethttp://lilykde.googlecode.com/svn/trunk/frescobaldi/python/ly/indent.py lgc$ I'd rather use the version in the current

Re: Lilypond source code indenter and formatter

2012-06-07 Thread David Kastrup
Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 06:26:36AM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: Exactly. My intended application is to use it as part of a git collaboration workflow that Urs, Janek, Susan(?) and I are working on. It is not

Re: Lilypond source code indenter and formatter

2012-06-07 Thread Colin Hall
On Thu, Jun 07, 2012 at 12:01:21PM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 06:26:36AM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: Exactly. My intended application is to use it as part of a git collaboration

Re: Lilypond source code indenter and formatter

2012-06-07 Thread David Kastrup
Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 12:01:21PM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 06:26:36AM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: Exactly. My intended application is

Re: Lilypond source code indenter and formatter

2012-06-07 Thread David Kastrup
Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 12:49:31PM +0200, David Kastrup wrote: [...] What is your point? That automatically enforced indentation is not necessarily the best choice for colloboration. Thanks, that's clear. Our experiences differ. You don't have

Re: Lilypond source code indenter and formatter

2012-06-07 Thread David Kastrup
David Kastrup d...@gnu.org writes: Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 12:49:31PM +0200, David Kastrup wrote: [...] What is your point? That automatically enforced indentation is not necessarily the best choice for colloboration. Thanks, that's clear. Our

Re: Lilypond source code indenter and formatter

2012-06-07 Thread Colin Hall
On Thu, Jun 07, 2012 at 01:32:08PM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 12:49:31PM +0200, David Kastrup wrote: [...] What is your point? That automatically enforced indentation is not necessarily the best choice for

Re: Lilypond source code indenter and formatter

2012-06-07 Thread Colin Hall
On Thu, Jun 07, 2012 at 01:36:27PM +0200, David Kastrup wrote: David Kastrup d...@gnu.org writes: Just as a minor anecdote: my recent issue 2584 work starts like the following in git: commit 76eeafd00669ac2b3eac1fa325a9a50a46bf8faf Author: David Kastrup d...@gnu.org Date: Wed Jun 6

Re: Lilypond source code indenter and formatter

2012-06-07 Thread David Kastrup
Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 01:32:08PM +0200, David Kastrup wrote: Colin Hall colingh...@gmail.com writes: You don't have the choice to make indentation compromises while a file is actively being worked on. Reverts and merges often fail. Yes, that's

Re: Lilypond source code indenter and formatter

2012-06-07 Thread David Kastrup
Colin Hall colingh...@gmail.com writes: On Thu, Jun 07, 2012 at 01:36:27PM +0200, David Kastrup wrote: When you have a case where not just a few lines but whole passages got reindented, doing that kind of work is decidedly unfunny. Absolutely. There's no benefit unless it is used

Re: Lilypond source code indenter and formatter

2012-06-07 Thread Janek Warchoł
On Thu, Jun 7, 2012 at 3:02 PM, Colin Hall colingh...@gmail.com wrote: On Thu, Jun 07, 2012 at 01:32:08PM +0200, David Kastrup wrote: { 50 lines }  =   { 50 lines } { mixture of s and dynamics } Let's see how that looks in git diff: $ $ git diff diff --git a/score.ly b/score.ly index

Lilypond source code indenter and formatter

2012-06-06 Thread Colin Hall
Hi, Is anyone on the list aware of a tool that takes a valid Lilypond score as input and produces as output the same .ly file but with the formatting and layout standardized? If you know asyle, then I am looking for astyle for Lilypond. Cheers Colin. -- Colin Hall

Re: Lilypond source code indenter and formatter

2012-06-06 Thread Graham Percival
On Thu, Jun 07, 2012 at 12:44:00AM +0100, Colin Hall wrote: Is anyone on the list aware of a tool that takes a valid Lilypond score as input and produces as output the same .ly file but with the formatting and layout standardized? Yes and no. Various editors can do this.

Re: Lilypond source code indenter and formatter

2012-06-06 Thread Hilary Snaden
On 2012-06-07 01:20, Graham Percival wrote: On Thu, Jun 07, 2012 at 12:44:00AM +0100, Colin Hall wrote: Is anyone on the list aware of a tool that takes a valid Lilypond score as input and produces as output the same .ly file but with the formatting and layout standardized? Yes and no.

Re: Lilypond source code indenter and formatter

2012-06-06 Thread Colin Hall
On Thu, Jun 07, 2012 at 01:20:08AM +0100, Graham Percival wrote: On Thu, Jun 07, 2012 at 12:44:00AM +0100, Colin Hall wrote: Is anyone on the list aware of a tool that takes a valid Lilypond score as input and produces as output the same .ly file but with the formatting and layout

Re: Lilypond source code indenter and formatter

2012-06-06 Thread David Kastrup
Colin Hall colingh...@gmail.com writes: Exactly. My intended application is to use it as part of a git collaboration workflow that Urs, Janek, Susan(?) and I are working on. It is not really helpful for diffs if you get completely different indentation for a while file because of having to add

Re: Lilypond source code indenter and formatter

2012-06-06 Thread Federico Bruni
Il 07/06/2012 02:49, Colin Hall ha scritto: It seems to be equipped to run as a program: lgc$ wgethttp://lilykde.googlecode.com/svn/trunk/frescobaldi/python/ly/indent.py lgc$ I'd rather use the version in the current repository: wget