Re: Frescobaldi & edition engraver

2023-01-06 Thread Federico Bruni
Il giorno ven 6 gen 2023 alle 01:01:46 +0100, Michael Dietz 
 ha scritto:
I still hope for a native apt installation, but until then with this 
solution, I can use custom fonts, any lilypond version I want, call 
git from Scheme and the "real files on disk" are opened when clicking 
inside Frescobaldi.


For your information, only git is not available on Frescobaldi flatpak 
(it may be added if Frescobaldi will add a proper git support... 
something was done in the past but never finished IIRC).


You can open any file and add custom fonts in the lilypond.org binary 
>=2.24, as long as you grant the right permissions using Flatseal.


https://github.com/flathub/org.frescobaldi.Frescobaldi/






Re: Frescobaldi & edition engraver

2023-01-05 Thread Michael Dietz
That works indeed. So with Frescobaldi v3.2 via git and qpageview via 
pip it opens normally.


git clone -b v3.2 https://github.com/frescobaldi/frescobaldi.git
pip install qpageview
cd frescobaldi
./frescobaldi

I still hope for a native apt installation, but until then with this 
solution, I can use custom fonts, any lilypond version I want, call git 
from Scheme and the "real files on disk" are opened when clicking inside 
Frescobaldi.


Thank you!




Re: Frescobaldi & edition engraver

2023-01-05 Thread Jean Abou Samra

Le 06/01/2023 à 00:26, Michael Dietz a écrit :

Thank you Laurie,

I just upgraded to Ubuntu 22.04 and had Frescobaldi problems. Looking 
at your log it looks like qpageview is the culprit - it was with me too.


You can install a working version by

1) pip install qpageview


Unfortunately this did not fix it for me. I uninstalled the Flatpak, 
installed Frescobaldi with apt and qpageview with pip but it did not 
help here.



You will not get anything with Frescobaldi from apt, since that is 
Frescobaldi 3.1, which broken on the version of Python that Ubuntu 22.04 
has (Python 3.10). If you want to do this, you need to install 
Frescobaldi 3.2 or latest master from its Git repository 
(https://github.com/frescobaldi/frescobaldi).




OpenPGP_signature
Description: OpenPGP digital signature


Re: Frescobaldi & edition engraver

2023-01-05 Thread Laurie Savage
I'm sorry to hear that. I suppose you've already checked your Python 
version is correct and reinstalled the other prerequisites for 
Frescobaldi 3 listed on the Downloads page, so I don't know what's 
wrong. Have you been on the Frescobaldi chat group? They helped me a 
while back.


Laurie

On 6/1/23 10:26, Michael Dietz wrote:

Thank you Laurie,

I just upgraded to Ubuntu 22.04 and had Frescobaldi problems. Looking 
at your log it looks like qpageview is the culprit - it was with me too.


You can install a working version by

1) pip install qpageview


Unfortunately this did not fix it for me. I uninstalled the Flatpak, 
installed Frescobaldi with apt and qpageview with pip but it did not 
help here.


Best
Michael




Re: Frescobaldi & edition engraver

2023-01-05 Thread Michael Dietz

Thank you Laurie,

I just upgraded to Ubuntu 22.04 and had Frescobaldi problems. Looking at 
your log it looks like qpageview is the culprit - it was with me too.


You can install a working version by

1) pip install qpageview


Unfortunately this did not fix it for me. I uninstalled the Flatpak, 
installed Frescobaldi with apt and qpageview with pip but it did not 
help here.


Best
Michael



Re: Frescobaldi & edition engraver

2023-01-05 Thread Michael Dietz

Hi Jean,

I'm going to wait for Ubuntu to react and I now registered with 
launchpad to support your efforts.


In the meantime, I can use Flatpak for editing and rough previews and 
the commandline for the real compilation including a specific version 
and custom fonts. Calling git also doesn't work from within Flatpak.


Thanks for your replies and your efforts!
Best,
Michael



Re: Frescobaldi & edition engraver

2023-01-05 Thread Jean Abou Samra

Le 05/01/2023 à 17:20, Michael Dietz a écrit :

I have three follow-up questions concerning Flatpak-Frescobaldi:

The PDF next to the .ly files seems to be unchanged. Why doesn't it 
update?



Most likely, you forgot to save the .ly file after changing it, so what 
you see is a temporary .pdf file created from a temporary .ly file made 
by Frescobaldi.




How can I install other music fonts? I used to copy them into
~/mydir/lilypond-2.24.0/share/lilypond/2.24.0/fonts/{otf,svg}
But as the exectuable is listed as /app/bin/lilypond, I guess fonts in 
the above directory are not picked up.
It seems like I cannot use alternative lilypond installations. I have 
a few of them. But if I enter them in the list in settings, their path 
is listed as /run/user/1000/... instead of their "real" path. Is it 
possible to use different versions or only the one packaged with Flatpak?



It's complicated. See

https://github.com/flathub/org.frescobaldi.Frescobaldi/issues/10
https://github.com/flathub/org.frescobaldi.Frescobaldi/issues/15

Basically, if you put them under a folder that the Flatpak has access 
to, like ~/Documents, it *may* work, but you're on your own 
(specifically, it happens to work with 2.24 because the binaries are 
static, but it doesn't work with self-compiled binaries, and it will 
probably not work with 2.22 binaries).


You have to do this, if you get it to work, in order to use custom music 
fonts, since you need to put them in LilyPond's installation directory.


If this sounds awkward, that's because it is. Please help me to pester 
the Ubuntu developers so that progress is made on making Frescobaldi 
work again in Ubuntu 22.04.


Or just update to Ubuntu 22.10, which does not have this issue.

Or use another distro; I have Fedora and the maintainer was very 
reactive with Frescobaldi problems.


Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Re: Frescobaldi & edition engraver

2023-01-05 Thread Michael Dietz

I have three follow-up questions concerning Flatpak-Frescobaldi:

The PDF next to the .ly files seems to be unchanged. Why doesn't it update?

How can I install other music fonts? I used to copy them into
~/mydir/lilypond-2.24.0/share/lilypond/2.24.0/fonts/{otf,svg}
But as the exectuable is listed as /app/bin/lilypond, I guess fonts in 
the above directory are not picked up.


It seems like I cannot use alternative lilypond installations. I have a 
few of them. But if I enter them in the list in settings, their path is 
listed as /run/user/1000/... instead of their "real" path. Is it 
possible to use different versions or only the one packaged with Flatpak?


Best
Michael



Re: Frescobaldi & edition engraver

2023-01-05 Thread Michael Dietz
Thank you. I installed both oll-core and edition-engraver and tried this 
example: 
https://github.com/openlilylib/edition-engraver/blob/master/usage-examples/example-1.ly


And this example actually runs. Now I have to see whether the syntax in 
my scores is still compatible.





Re: Frescobaldi & edition engraver

2023-01-05 Thread Jean Abou Samra

Le 05/01/2023 à 09:08, Michael Dietz a écrit :

Thank you Jean,

1. I will try Flatpack
2. Here I was not precise enough: I am already up to date in this repo.

git pull says that I am "Already up to date." I apparently forked it 
back then. The upstream is https://github.com/openlilylib/snippets.git 
And the latest commit is from 2019 
https://github.com/openlilylib/snippets/commits/master


Is that the best and most recent source for OpenLilyLib?
In particular, is this the latest edition engraver?
https://github.com/openlilylib/snippets/tree/master/editorial-tools/edition-engraver 




This is because openLilyLib was refactored into separate repositories 
for different tools. The 'snippets' repository was basically deprecated. 
The latest edition-engraver is at


https://github.com/openlilylib/edition-engraver

and you will need oll-core to run it:

https://github.com/openlilylib/oll-core





OpenPGP_signature
Description: OpenPGP digital signature


Re: Frescobaldi & edition engraver

2023-01-05 Thread Michael Dietz

Thank you Jean,

1. I will try Flatpack
2. Here I was not precise enough: I am already up to date in this repo.

git pull says that I am "Already up to date." I apparently forked it 
back then. The upstream is https://github.com/openlilylib/snippets.git 
And the latest commit is from 2019 
https://github.com/openlilylib/snippets/commits/master


Is that the best and most recent source for OpenLilyLib?
In particular, is this the latest edition engraver?
https://github.com/openlilylib/snippets/tree/master/editorial-tools/edition-engraver

Thanks,
Michael



Re: Frescobaldi & edition engraver

2023-01-04 Thread Jean Abou Samra

Hello,


Le 05/01/2023 à 01:21, Michael Dietz a écrit :

Hi,

after a few years, I come back to LilyPond. I just installed the 
latest stable version 2.24. Thanks a lot for it.


Working on Ubuntu 22.04, I now have two issues:
- How to use Frescobaldi (I really enjoyed it but it crashes on startup)
- How to get the latest edition engraver (I heavily used it)


1. Frescobaldi

While Frescobaldi is still in the Ubuntu packages, it does crash when 
starting it with the following message:



Traceback (most recent call last):
  File 
"/usr/share/frescobaldi/frescobaldi_app/qpageview/highlight.py", line 
209, in paintEvent

    super().paintEvent(ev)  # first paint the contents
  File "/usr/share/frescobaldi/frescobaldi_app/qpageview/shadow.py", 
line 43, in paintEvent

    rect = ev.rect().adjusted(-width, -width, width / 2, width / 2)
TypeError: adjusted(self, int, int, int, int): argument 1 has 
unexpected type 'float'


I tried to fix all those int/float type issues but after fixing a lot 
of them, I finally gave up. Is there a recipe to install and use 
Frescobaldi on Ubuntu?



Flatpak.

https://github.com/frescobaldi/frescobaldi/issues/1433#issuecomment-1132051619

(This is really getting on my nerves, I can't believe this Ubuntu
update is still stuck after 9 months of Ubuntu Jammy “stable LTS”
with an unusable Frescobaldi...)




2. OpenLilyLib

I still have a local copy of OpenLilyLib (with master on 75adb418 from 
2015-07-07). Is there a more recent version of it and in particular 
the edition engraver?



In a Git repository, you can normally update by simply running

$ git pull

Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Frescobaldi & edition engraver

2023-01-04 Thread Michael Dietz

Hi,

after a few years, I come back to LilyPond. I just installed the latest 
stable version 2.24. Thanks a lot for it.


Working on Ubuntu 22.04, I now have two issues:
- How to use Frescobaldi (I really enjoyed it but it crashes on startup)
- How to get the latest edition engraver (I heavily used it)


1. Frescobaldi

While Frescobaldi is still in the Ubuntu packages, it does crash when 
starting it with the following message:



Traceback (most recent call last):
  File "/usr/share/frescobaldi/frescobaldi_app/qpageview/highlight.py", line 
209, in paintEvent
super().paintEvent(ev)  # first paint the contents
  File "/usr/share/frescobaldi/frescobaldi_app/qpageview/shadow.py", line 43, 
in paintEvent
rect = ev.rect().adjusted(-width, -width, width / 2, width / 2)
TypeError: adjusted(self, int, int, int, int): argument 1 has unexpected type 
'float'


I tried to fix all those int/float type issues but after fixing a lot of 
them, I finally gave up. Is there a recipe to install and use 
Frescobaldi on Ubuntu?


2. OpenLilyLib

I still have a local copy of OpenLilyLib (with master on 75adb418 from 
2015-07-07). Is there a more recent version of it and in particular the 
edition engraver?


Best,
Michael