lilypond-user
[Top][All Lists]
Advanced

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

Re: Alternative to Frescobaldi


From: David Wright
Subject: Re: Alternative to Frescobaldi
Date: Sun, 4 Sep 2022 10:39:15 -0500

TL;DR

You need to follow Usage, §4.1.1 for evince to call
lilypond-invoke-editor successfully.

On Sat 03 Sep 2022 at 08:49:11 (+0100), J Martin Rushton wrote:
> On Fri, 2022-09-02 at 19:53 -0500, David Wright wrote:
> > On Fri 02 Sep 2022 at 22:46:01 (+0100), J Martin Rushton wrote:
> > > On Fri, 2022-09-02 at 16:17 -0500, David Wright wrote:
> > > > On Fri 02 Sep 2022 at 21:43:25 (+0100), J Martin Rushton wrote:
> > > > > I've just spent another couple of hours clearing out previous
> > > > > attempts
> > > > > to get Frescobaldi running and attempting to sort out its
> > > > > dependency
> > > > > hell.
> > > > > 
> > > > > Is there any alternative to Frescobaldi?
> > > > 
> > > > An editor (emacs) + LilyPond + PDF viewer (xpdf).
> > > > (My choices in parentheses.)
> > > > 
> > > > > I'm running AlmaLinux 8.6 if that helps.
> > > > 
> > > > Not a great deal; does it mean that F~ isn't part of the
> > > > distribution?
> > > > 
> > > My preference is for vi, but yes, that's what I've been using for
> > > the
> > > last couple of years since F~ stopped working.  What I miss though
> > > is
> > > the back link from the score to the source, and the MIDI playback.
> > 
> > 0. Which PDF viewer, and which version of LP?
> 
> Evince
> $ lilypond -v
> GNU LilyPond 2.22.1
> ...
> 
> > 
> > 1. Does the PDF have the textedit URLs?
> >    $ grep -a textedit foo.pdf
> >    /URI(textedit:///tmp/restpos.ly:4:16:17)>>
> >      …            …            …
> 
> Yes
> 
> > 2. Does the PDF viewer see them? Look for cursor to change as you
> >    move over a notehead.
> 
> Yes
> 
> > 3. Run the PDF viewer from the commandline. Click on an active
> >    notehead. What appears on the console? Anything like:
> >      lilypond-invoke-editor (GNU LilyPond) 2.22.0
> 
> "textedit://<path...>/BlowAwayTheMorningDew.ly:35:16:17"

Is than on the console, or in the evince window itself?

Because I don't use evince, and haven't set it up, I get
"Unable to open external link". But your message starts with
"textedit" rather than "lilypond-invoke-editor", which might
be a similar problem.

I think you need to set up the GNOME section in Usage §4.1.1.
Whether you also need the following section, "Extra
configuration for Evince", depends on whether Alma has
configured apparmor or not. Repost if you get permission errors.

> > 4. Is lilypond-invoke-editor defined?
> >    $ which lilypond-invoke-editor
> >    /usr/bin/lilypond-invoke-editor
> 
> $ command -v lilypond
> /opt/bin/lilypond
> $ ls -l /opt/bin/lilypond
> -rwxr-xr-x 1 root root 112 Feb 13  2022 /opt/bin/lilypond
> $ ls -l /opt/bin/lilypond-invoke-editor
> lrwxrwxrwx 1 root root 31 Feb 13  2022 /opt/bin/lilypond-invoke-editor
> -> /opt/bin/lilypond-wrapper.guile
> 
> 
> > 5. Can lilypond-invoke-editor open a file in an editor,
> >    preferably the one you want?
> >    $ lilypond-invoke-editor textedit:///tmp/foo.txt:2:4:6
> >    /tmp/foo.txt is the full path to any old text file with
> >    more than a couple of lines in it. The cursor should land
> >    on the second line, four chars along.
> 
> $ lilypond-invoke-editor
> textedit:///<path...>/BlowAwayTheMorningDew.ly:2:4:6
> lilypond-invoke-editor (GNU LilyPond) 2.22.1
> sh: emacsclient: command not found
> sh: emacs: command not found

5a. Try:

$ LYEDITOR=gvim lilypond-invoke-editor 
textedit:///<path...>/BlowAwayTheMorningDew.ly:2:4:6

If that works, you need to set LYEDITOR in your startup file.
That might be as above or, in view of your answer below, to:

  LYEDITOR="vi --servername gvim"

Or start editing with:

$ vi --servername gvim BlowAwayTheMorningDew.ly

If vi isn't running when you point and click, you should just get an
extra message, like 'E247: no registered server named "GVIM":
Send failed. Trying to execute locally', which should be harmless.

(The benefit of starting vi yourself is that you get to control where
it runs, rather than it just popping up when you click the first time.)

If 5a doesn't work, substitute EDITOR for LYEDITOR. (The benefit of
LYEDITOR is that EDITOR usually has a meaning across the entire OS,
rather than just this application.)

> > How many of those steps work?
> > 
> > And at the other end of the process, are you starting vi as
> > a server, with something like:
> > 
> > $ gvim
> > $ vim --servername GVIM
> > $ vi --servername gvim
> > 
> > (letter-case unimportant), else you might see:
> > E247: no registered server named "GVIM": Send failed.
> 
> $ vi BlowAwayTheMorningDew.ly
> 
> FYI
> $ command -v vi
> /usr/bin/vi
> bash-4.4$ ls -l /usr/bin/vi
> -rwxr-xr-x 1 root root 1180368 Aug  2 17:57 /usr/bin/vi

Cheers,
David.



reply via email to

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