Re: Searching fonts?

2022-07-13 Thread Andrew Bernard

It does not ignore Linux. How could it?

The output goes to stderr, Have a read of how to redirect stderr in the 
bash man page.



Andrew




Re: Searching fonts?

2022-07-13 Thread William Rehwinkel

Hey Alasdair,

lilypond console logs, including that of -dshow-available-fonts is 
outputted on stderr. Does `lilypond -dshow-available-fonts 2> text.txt` 
work correctly for you or not?


Thanks,

-William

On 7/14/22 01:35, Alasdair McAndrew wrote:

Hello,

I'm trying to find a suitable system font for use with some tablature 
I'm typesetting.  The command "lilypond -dshow-available-fonts" does 
indeed do exactly that, but there are so many fonts on my system that 
this command is not helpful on its own.  What I'd like is some way of 
searching the font list.  For example, I'd hope to write that font 
list to a file, which I could explore at leisure.


I'm using Linux, and normally I can redirect the output of a command 
to a file, such as


ls -l > list.txt

But this doesn't work with the lilypond font command.  I'm quite 
mystified that the lilypond somehow ignores shell commands; at least 
in this instance.


This same behaviour means I can't pipe the output of the font 
command to grep for searching.


How can I search the list of available fonts?

Alasdair

--
Alasdair McAndrew (he/him)
mob: 0432 854 858

https://numbersandshapes.net


--
William Rehwinkel

will...@williamrehwinkel.net
https://williamrehwinkel.net


Re: Searching fonts?

2022-07-13 Thread Aaron Hill

On 2022-07-13 10:35 pm, Alasdair McAndrew wrote:

Hello,

I'm trying to find a suitable system font for use with some tablature 
I'm
typesetting.  The command "lilypond -dshow-available-fonts" does indeed 
do
exactly that, but there are so many fonts on my system that this 
command is
not helpful on its own.  What I'd like is some way of searching the 
font

list.  For example, I'd hope to write that font list to a file, which I
could explore at leisure.

I'm using Linux, and normally I can redirect the output of a command to 
a

file, such as

ls -l > list.txt

But this doesn't work with the lilypond font command.  I'm quite 
mystified

that the lilypond somehow ignores shell commands; at least in this
instance.

This same behaviour means I can't pipe the output of the font command 
to

grep for searching.

How can I search the list of available fonts?


The fonts are output via stderr.  You'll need to use 2>&1 to redirect 
the stream.


lilypond -dshow-available-fonts 2>&1 | grep -i 'something'


-- Aaron Hill



Searching fonts?

2022-07-13 Thread Alasdair McAndrew
Hello,

I'm trying to find a suitable system font for use with some tablature I'm
typesetting.  The command "lilypond -dshow-available-fonts" does indeed do
exactly that, but there are so many fonts on my system that this command is
not helpful on its own.  What I'd like is some way of searching the font
list.  For example, I'd hope to write that font list to a file, which I
could explore at leisure.

I'm using Linux, and normally I can redirect the output of a command to a
file, such as

ls -l > list.txt

But this doesn't work with the lilypond font command.  I'm quite mystified
that the lilypond somehow ignores shell commands; at least in this
instance.

This same behaviour means I can't pipe the output of the font command to
grep for searching.

How can I search the list of available fonts?

Alasdair

-- 
Alasdair McAndrew (he/him)
mob: 0432 854 858

https://numbersandshapes.net


Re: Installing Lilypond 2.23.10

2022-07-13 Thread David Sumbler
On Wed, 2022-07-13 at 23:00 +0200, Jean Abou Samra wrote:
> Hello,
> 
> Please keep the list in CC so that everyone can chime
> in and benefit from the answers.

Sorry for my oversight.  I would normally have done a group reply, but
it's so long since I used a mailing list like this that I just forgot.
 It won't happen again (I hope)!

Thanks for all the other information you have now sent.  I'll perhaps
install 2.23.10 tomorrow.

David


Re: Installing Lilypond 2.23.10

2022-07-13 Thread Jean Abou Samra

Hello,

Please keep the list in CC so that everyone can chime
in and benefit from the answers.

Le 13/07/2022 à 20:26, David Sumbler a écrit :
Thank you for that.  Yes, I should have noticed that the contents of 
the tar file were not source code.  As it is, though, I'm not entirely 
sure what to do with it - I guess that I put it all in a folder 
somewhere and then make a link to bin/lilypond.



You just extract it somewhere and it becomes usable as

/.../lilypond-2.23.10/bin/lilypond file.ly

If you want to invoke it as "lilypond file.ly" without typing
the full path, you have to add the /.../lilypond-2.23.10/bin
directory to your PATH. One way to do so is to add this line
to your shell startup file (probably ~/.bashrc):

export PATH=/.../lilypond-2.23.10/bin:$PATH

That said, if you're using Frescobaldi, this is not needed.
Go to Edit > Preferences > LilyPond Preferences and add the
new version, providing  /.../lilypond-2.23.10/bin/lilypond as
the executable.



 Then I have to download the docs.



They're at the very bottom of this page:

https://lilypond.org/development.html

(the link "Doc tarball for LilyPond 2.23.10").


SInce I only want Lilypond at the moment to try out things from your 
wonderful "Extending Lilypond" document, I decided to install version 
2.23.6.  This still has the nice simple installation script, which I 
used to install Lilypond and grab all the docs as well - even my 
existing bookmark for the docs in Firefox just works!



I'd recommend 2.23.10 -- if you ask questions on the list,
most people will be using either the latest stable version
or the latest unstable version, so that using either of these
two versions eases the process of checking that a code snippet
will work with your version.


Incidentally, my system has Guile 3.0 installed, and I see that 
Lilypond comes with 2.2.  I don't have 1.8 anywhere on the system, but 
when I type 'lilypond' it reports:


GNU LilyPond 2.23.6 (running Guile 1.8)

I assume that this is just a trivial correction that is needed in the 
code somewhere.



No, it really means your LilyPond is running Guile 1.8.
2.23.6 was a very special release, as it is the one where
we started the final Guile 2.2 transition. This release
was "dual": the binaries that you could download from
lilypond.org use Guile 1.8, but those from
https://gitlab.com/lilypond/lilypond/-/releases
use Guile 2.2.

This release allowed us to test there were no major problems
with Guile 2.2 remaining, so in the following release, 2.23.7,
support for Guile 1.8 has been dropped, only Guile 2.2 binaries
have been provided, they were on GitLab, and the links on
lilypond.org just redirected to GitLab.

Best,
Jean




Re: Installing Lilypond 2.23.10

2022-07-13 Thread Jean Abou Samra

Le 13/07/2022 à 19:04, David Sumbler a écrit :
The last version of Lilypond I installed was 2.23.5.  For that I have 
a shell script entitled lilypond-2.23.5-1.linux-64.sh , and similar 
scripts for previous development and stable versions.


Having updated my OS to Ubuntu 22.04 I want to install the latest 
version.  But now when I click on the link I get the tar.bz2 file 
direct, and not a shell script which would download and process it for 
me.  I assume I have to use 'make' etc. to compile things, but I am 
not very familiar with such matters.




No; you didn't download a source archive but binaries. They are already 
compiled. There is no installation shell script because _no 
installation_ is required.



I notice that the link for the stable version 2.22.2 still downloads a 
shell script.


Is this a change of policy to discourage us less geeky users from 
using the development version, or am I just missing something?  I 
admit I haven't used Lilypond at all for some months.



The installation instructions in the learning manual are currently being 
updated. The procedure could hardly be simpler: unpack the archives, and 
the binaries are already ready to run!


Regards,
Jean




Installing Lilypond 2.23.10

2022-07-13 Thread David Sumbler
The last version of Lilypond I installed was 2.23.5.  For that I have a
shell script entitled lilypond-2.23.5-1.linux-64.sh , and similar
scripts for previous development and stable versions.

Having updated my OS to Ubuntu 22.04 I want to install the latest
version.  But now when I click on the link I get the tar.bz2 file
direct, and not a shell script which would download and process it for
me.  I assume I have to use 'make' etc. to compile things, but I am not
very familiar with such matters.

I notice that the link for the stable version 2.22.2 still downloads a
shell script.

Is this a change of policy to discourage us less geeky users from using
the development version, or am I just missing something?  I admit I
haven't used Lilypond at all for some months.

David





Re: Frescobaldi incantation for lilypond docker image?

2022-07-13 Thread Graham King
Jean, Knute,
many thanks!
It Just Worked (TM).  No dependency-hell.  Most refreshing (although I do feel 
a bit stupid).

> On 13 Jul 2022, at 17:02, Jean Abou Samra  wrote:
> 
>> 2.  If I'm barking up the wrong tree entirely, what is the recommended way 
>> for Frescobaldi to run lilypond at a more recent version than the distro 
>> supplies?
>> 
> 
> 
> There is no need for Docker at all! All versions of LilyPond have always 
> supported being installed in parallel without conflicting. Furthermore, 
> recent versions (2.23.6 and later) are static binaries. They don't even need 
> installation, they can just be unpacked and run.




Re: A new Scheme tutorial (Jean Abou Samra)

2022-07-13 Thread Peter Toye
This looks great! Just what I'd needed a couple of years back when I was still 
programming.
 
I've only just started with it, but there are a few niggling comments about the 
English version. I've only got to page 2 (getting started) so far.
* On my browser (Firefox in Windows) the 'v. latest' is too close to the bottom 
of the main frame, and I can't click on the 'previous/next/index' without very 
careful manipulation of the slider. Can it be moved up a cm or so?
* On page 1 (Why Scheme?) it's slightly better English to say 'There is no 
single implementation of Scheme'
* On page 2 (Getting started) the comment about testing under Windows is not 
translated into English! I suggest 'I am unable to test these commands under 
Windows. If they do not work, write to the list.'
* Again on page 2, the commands don't work! You forgot to add the 'lilypond'.
C:\Program Files (x86)\LilyPond\usr\bin>lilypond scheme-sandbox works fine on 
my machine.
* On page 2 'Literals' the comment about decimal numbers isn't translated. I'm 
not sure about the best translation of 'nombres décimaux'. Personally I'd use 
'floating-point numbers' on the grounds that all numbers, including integers, 
are decimal.
* The comment 'and a few others' about the characters allowed in variable names 
is rather annoying. How does a user know what to expect if they use a forbidden 
character? A list would be really useful.
When I read further down I may have more comments
 
Best regards,

Petermailto:lilyp...@ptoye.com
www.ptoye.com

Re: Frescobaldi incantation for lilypond docker image?

2022-07-13 Thread Jean Abou Samra

Le 13/07/2022 à 16:31, Graham King a écrit :


I'm looking for a way to run a recent lilypond version on Ubuntu 18.04.

Currently, I have a docker image[1] of lilypond 2.23.10 that I can 
invoke successfully from the command line, using:


docker run -v $(pwd):/app -w /app jeandeaual/lilypond:devel lilypond 
foo.ly


The challenge is getting a locally-installed Frescobaldi 3.2 to run 
this image.


In Frescobaldi's Preferences, I've set the lilypond command to:

docker run -v $(pwd):/app -w /app jeandeaual/lilypond:devel lilypond

But when I try to run lilypond from within Frescobaldi, I get the 
following error:


Traceback (most recent call last):

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/engrave/__init__.py", 
line 145, in engravePreview


self.engrave('preview')

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/engrave/__init__.py", 
line 200, in engrave


self.runJob(job_class(doc, args), doc)

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/engrave/__init__.py", 
line 252, in runJob


job.manager.manager(document).start_job(j)

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/job/manager.py", 
line 61, in start_job


job.start()

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/job/__init__.py", 
line 225, in start


self._update_process_environment()

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/job/__init__.py", 
line 304, in _update_process_environment


se.remove(k) if v is None else se.insert(k, v)

TypeError: arguments did not match any overloaded call:

insert(self, str, str): argument 2 has unexpected type 'bool'

insert(self, QProcessEnvironment): argument 1 has unexpected type 'str'

So, two questions:

1.  How should I set up Frescobaldi to run the docker image?




I don't know why Frescobaldi crashes like this. Maybe try to upgrade it?

On the other hand, I don't think what you're doing is expected to work 
in this way (although it shouldn't result in a crash but graceful error 
handling, as it does for me -- the LilyPond version I'm inserting just 
gets a "no entry" symbol). "docker run ..." is a shell command. What you 
need to give to Frescobaldi is just an executable. When it calls 
LilyPond, there is no shell involved. It will likely try to find the 
executable "docker run ...", as if you had done in your shell:


"docker run ..." file.ly

(with quotes to make all that the name of the command being run).

If you really want Docker (but see below), you can put this in a script 
somewhere, called for example lilypond-docker.sh:


#!/bin/bash
docker run ... "$@"

Then you can use the full path to lilypond-docker.sh as the LilyPond 
executable in Frescobaldi.



2.  If I'm barking up the wrong tree entirely, what is the recommended 
way for Frescobaldi to run lilypond at a more recent version than the 
distro supplies?





There is no need for Docker at all! All versions of LilyPond have always 
supported being installed in parallel without conflicting. Furthermore, 
recent versions (2.23.6 and later) are static binaries. They don't even 
need installation, they can just be unpacked and run.


So, just download 2.23.10 from https://lilypond.org/development.html, 
unpack the archive, and in Frescobaldi, enter the full path 
/.../lilypond-2.23.10/bin/lilypond. And your LilyPond will be usable 
right away.


Best,
Jean




Re: Frescobaldi incantation for lilypond docker image?

2022-07-13 Thread Knute Snortum
On Wed, Jul 13, 2022 at 7:32 AM Graham King  wrote:
>
> I'm looking for a way to run a recent lilypond version on Ubuntu 18.04.

I would think you could just download LilyPond from the GNU/Linux download
page:

https://lilypond.org/unix.html


--
Knute Snortum


Re: Generating a spiccato

2022-07-13 Thread Werner LEMBERG

>> In MusixXML, this sign is  (The  element |
>> MusicXML 4.0 (w3.org)
>> ),
>> the same sign is named \staccatissimo in Lilypond.
>> In MusixXML,  looks like this:  (The 
>> element | MusicXML 4.0 (w3.org)
>> ),
>> but it seems there is no corresponding articulation in Lilypond and no
>> glyph in the Emmentaler font.
>>
>> So the question is: is there interest among the LilyPond community to
>> add the latter glyph in some way?

I consider the distinction between these two glyphs completely
arbitrary.  At normal size, the difference between a concave and a
convex top is not really visible.

If you look at

  https://w3c.github.io/smufl/latest/tables/articulation.html

you can see that both glyph shapes in question are defined as variants
of 'staccatissimo' – for spiccato, there doesn't exist a symbol.  And
rightly so: I've never seen a symbol for spiccato except an ordinary
staccato point with the word 'spicc.' (if at all).


 Werner


Frescobaldi incantation for lilypond docker image?

2022-07-13 Thread Graham King

I'm looking for a way to run a recent lilypond version on Ubuntu 18.04.

Currently, I have a docker image[1] of lilypond 2.23.10 that I can 
invoke successfully from the command line, using:


docker run -v $(pwd):/app -w /app jeandeaual/lilypond:devel lilypond 
foo.ly


The challenge is getting a locally-installed Frescobaldi 3.2 to run this 
image.


In Frescobaldi's Preferences, I've set the lilypond command to:

docker run -v $(pwd):/app -w /app jeandeaual/lilypond:devel lilypond

But when I try to run lilypond from within Frescobaldi, I get the 
following error:


Traceback (most recent call last):

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/engrave/__init__.py", 
line 145, in engravePreview


self.engrave('preview')

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/engrave/__init__.py", 
line 200, in engrave


self.runJob(job_class(doc, args), doc)

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/engrave/__init__.py", 
line 252, in runJob


job.manager.manager(document).start_job(j)

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/job/manager.py", 
line 61, in start_job


job.start()

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/job/__init__.py", 
line 225, in start


self._update_process_environment()

File 
"/home//git/frescobaldi/frescobaldi/frescobaldi_app/job/__init__.py", 
line 304, in _update_process_environment


se.remove(k) if v is None else se.insert(k, v)

TypeError: arguments did not match any overloaded call:

insert(self, str, str): argument 2 has unexpected type 'bool'

insert(self, QProcessEnvironment): argument 1 has unexpected type 'str'

So, two questions:

1.  How should I set up Frescobaldi to run the docker image?

2.  If I'm barking up the wrong tree entirely, what is the recommended 
way for Frescobaldi to run lilypond at a more recent version than the 
distro supplies?


Grateful, as ever, for your insights

-- Graham

[1] from https://hub.docker.com/r/jeandeaual/lilypond

Re: Generating a spiccato

2022-07-13 Thread Jean Abou Samra

Le 13/07/2022 à 11:45, Jacques Menu a écrit :

Hello folks,

Here is the info I’ve been supplied with about this:
In MusixXML, this sign is  (The  element | 
MusicXML 4.0 (w3.org) 
), 
the same sign is named \staccatissimo in Lilypond.
In MusixXML,  looks like this:  (The  
element | MusicXML 4.0 (w3.org) 
), 
but it seems there is no corresponding articulation in Lilypond and no 
glyph in the Emmentaler font.


So the question is: is there interest among the LilyPond community to 
add the latter glyph in some way?





The question isn't whether people at large would like to have this.
It is whether someone (one person is enough) has both the motivation
and the competence to implement it :-)

How about raising it as a feature request on the bug-lilypond
list? See
https://lilypond.org/bug-reports.fr.html

Best,
Jean





Re: lilypondblog.org hacked?

2022-07-13 Thread Andrew Bernard
No, As said previously, Scores of Beauty went defunct years ago, Urs 
Liska was no longer able to maintain it for personal reasons I am not at 
liberty to disclose,  I have taken over OpenLilyLib from him and I am 
almost ready to re-open the git repository.


I have no interest in the Scores of Beauty blog, but if somebody wanted 
to start a new one I'd one I'd consider hosting it. As for getting the 
old articles, that is way too hard.


The domain should have been deregistered but it was not and consequently 
it has been abused by the usual evil hackers.



Andrew Bernard






Re: Generating a spiccato

2022-07-13 Thread Jacques Menu
Hello folks,

Here is the info I’ve been supplied with about this:
In MusixXML, this sign  is  (The  element | MusicXML 4.0 
(w3.org) 
), 
the same sign is named \staccatissimo in Lilypond. 
In MusixXML,  looks like this:  (The  element | 
MusicXML 4.0 (w3.org) 
),
 but it seems there is no corresponding articulation in Lilypond and no glyph 
in the Emmentaler font.

So the question is: is there interest among the LilyPond community to add the 
latter glyph in some way?

JM




Re: A new Scheme tutorial

2022-07-13 Thread Jiří Hon

Hi Jean,

thank you very much for the tutorial and its translation to English. I went through and 
it seems perfect for all of us coming from the world of "imperative" languages. 
You have a precious gift to explain convoluted things in a straightforward way.

Best,
Jiri

Dne 12. 07. 22 v 1:28 Jean Abou Samra napsal(a):

Hi,

Last year, after I delivered a presentation on Scheme at a
French-speaking virtual meeting of LilyPond users, I was asked
if I could write that down in tutorial form, which I did as
https://tutoriel-scheme.readthedocs.io. Over the past few days,
I've set some time apart to translate that into English.
The English version can be found here:

https://scheme-tutorial.readthedocs.io

The translation is a bit unpolished at the moment, and I didn't
proofread it yet; I indent to do that later.

I hope this can help some people on their way to learning Scheme
and LilyPond's inner workings. If you have feedback, feel free
to drop me an email.

Enjoy!

Best,
Jean






Re: lilypondblog.org hacked?

2022-07-13 Thread Andrew Bernard
Scores of beauty has been defunct for years. Wasn't this a link to the 
wordpress blog?

Andrew

⁣Get BlueMail for Android ​

On 13 July 2022, 4:24 pm, at 4:24 pm, Eef Weenink  
wrote:
>https://www.lilypondblog.org/ seems to be hacked.
>Maybe already known by the owner? Otherwise, maybe have a look and see
>if it can be fixed.
>
>Eef


lilypondblog.org hacked?

2022-07-13 Thread Eef Weenink
https://www.lilypondblog.org/ seems to be hacked.
Maybe already known by the owner? Otherwise, maybe have a look and see if it 
can be fixed.

Eef


Re: Vertical Fill

2022-07-13 Thread Eef Weenink
\paper {
   ragged-bottom = ##t 
}



> Op 12 jul. 2022, om 23:26 heeft Greg Lindstrom  het 
> volgende geschreven:
> 
> I'm using Lilypond 2.22.1 and would like to add a page break but when I use 
> "\pageBreak" the score "stretches" to fill the page. Is there a command to 
> fill the page so the next score starts at the top of the next page without 
> stretching the previous page?
> 
> Thanks!
> --greg