lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Lilypond-book with Cygwin & Jedit


From: Bertalan Fodor
Subject: RE: Lilypond-book with Cygwin & Jedit
Date: Fri, 19 Mar 2004 22:39:17 +0100

I don't have much time to work on lily4jedit in these days, but I can tell
you that many new features can be achieved by using just jEdit's features.
 
> 1 ) How can I configure JEdit to run lilypond-book => latex => dvips with
a single click? 
That's a good question :-)
It's not so hard, but not so easy. 
If you download the Console plugin, it enables you to edit commando files,
which then can be used to run commands. (Details are in its documentation)
Now I wrote a commando file that should do the trick I think (it's not one
click - but not so much). It is assumed that the extension of your file is
lytex. (Which is a quite good convention I think.)
 
lilypond-book.xml (put this in c:\Documents and
Settings\YOURNAME\.jedit\console\commando and use the
Plugins->Console->lilypond-book (after rescanning))

<?xml version="1.0"?>
 
<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
 
<COMMANDO>
<UI>
<ENTRY LABEL="File name" VARNAME="filePath"
   EVAL="buffer.getPath()" />
</UI>
<COMMANDS>
<COMMAND CONFIRM="FALSE" SHELL="System">
 
   buf = new StringBuffer("C:\\cygwin\\bin\\bash.exe --login -c \"cd
`cygpath -au ");
   String fileNoExt=filePath.replaceAll(".lytex$","");
   fileNoExt=fileNoExt.replaceAll("\\\\","/");   
   buf.append(buffer.getDirectory().replaceAll("\\\\","/"));
   buf.append(" ` ; lilypond-book  ` cygpath -au ");
   buf.append(filePath.replaceAll("\\\\","/"));
   buf.append(" ` ; latex `cygpath -au ");
   buf.append(fileNoExt+".tex");
   buf.append(" ` ; dvips -ta4 -Ppdf -u +lilypond.map `cygpath -au ");
   buf.append(fileNoExt+".dvi");
   buf.append(" `\"");
   buf;
</COMMAND>
</COMMANDS>
 
</COMMANDO>

> 2) I noticed 2 minor mistakes in score setup wizard:
> - in "strings" section there are two violas named and no cello. 
Thanks, I will fix this.

> - the wizard creates "\property" instead of "\set" 
That's true, because the wizard creates 2.1.11 code. After the wizard run
Document->Convert to current version.

Regards,

Bert





reply via email to

[Prev in Thread] Current Thread [Next in Thread]