doc for convert-ly

View: New views
2 Messages — Rating Filter:   Alert me  

doc for convert-ly

by -Eluze :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i had another look at the documentation for convert-ly http://kainhofer.com/~lilypond/Documentation/user/lilypond-program/Command-line-options-for-convert_002dly.html#Command-line-options-for-convert_002dly and i think it should be strenghend and reduced to the really relevant information and functions - for instance i have never used the --to or the --no-version option - and a short overview of how to specify filenames (which could also be used for the other converting routines written in python).

in fact i believe that the simple invocation (convert-ly -e myfile.ly) is good for nearly all purposes. my proposal therefore is this reduced text with examples:


3.4.1 Invoking convert-ly

Syntax

convert-ly[.py] [-option(s)] [filename.ext] [filename.ext]

Options

-e, --edit   edit in place; this also creates a backup file (with "~" appended to the extension) *

-f, --from=VERSION   use this starting version - this is needed if there are files with no \version - typically \include files.

Other options may be of interest for development or special cases and can be viewed with the command convert-ly -h or just convert-ly.

Filename

The filename can be entered directly or with wildcards (* or ?); if it contains blanks it has to be enclosed in triple double quotes e.g. """name with blanks.ly"""

If a full path is entered there is no need to change to the directory of the file to be converted.

Examples

convert-ly -e myfile.ly
convert-ly -e *.ly    converts all lilypond files in a directory
convert-ly -e Bach*.ly    converts all lilypond files beginning with "Bach"
convert-ly -e """C:\my lilypond scores\Chopin\Grande valse.ly"""    using the full path containing blanks as well as the filename.

Specials ...

convert-ly is not limited to the extension ".ly".

Beware: applying 2 conversions consecutively will overwrite the first backup! May be it is a good idea to backup your files and folders yourself!



Re: doc for convert-ly

by Graham Percival-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 06, 2009 at 01:45:44AM -0700, -Eluze wrote:
> i had another look at the documentation for convert-ly http://kainhofer.com/
> ~lilypond/Documentation/user/lilypond-program/
> Command-line-options-for-convert_002dly.html#
> Command-line-options-for-convert_002dly and i think it should be strenghend and
> reduced to the really relevant information and functions

Yes, that is planned.

Cheers,
- Graham


_______________________________________________
lilypond-devel mailing list
lilypond-devel@...
http://lists.gnu.org/mailman/listinfo/lilypond-devel