Re: Vertical spacing between wordwrap items within markup column

2023-04-12 Thread Werner LEMBERG

> Maybe I'm missing something here, but how can I make the space
> between items in a markup column regular?  As you can see in the
> example, if the text is short so that there is no wrapping
> necessary, the space is fine.  But the "a a a" item does wrap around
> and overlaps a bit with the "b b b" item on its second line.  Any
> tips?
> 
> %%
> \version "2.24.1"
> \markup  { 
>   \column {
> \wordwrap-string "a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
> a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
> a a a a a"
> \wordwrap-string "b b b b b b b b b b b b b b b b b b b b b b b b b b b b 
> b b"
> \wordwrap-string "c c c c c c c c c c c c c c c c c c c c c c c c c c c c 
> c c"
>   }
> }
> %%

This smells like a bug: `\wordwrap-string` returns a bunch of lines
spaced by `baseline-skip`, but no such skip is applied after the last
line, for whatever reason.  Here is a shorter example.

```
\version "2.24.1"
\markup { 
  \override #'(line-width . 5)
  \override #'(baseline-skip . 4)
  \column {
\wordwrap-string "a a a a a a"
\wordwrap-string "b b b b b b"
  }
}
```


Werner


Vertical spacing between wordwrap items within markup column

2023-04-12 Thread Benjamin Bruce
Maybe I'm missing something here, but how can I make the space between items in 
a markup column regular? As you can see in the example, if the text is short so 
that there is no wrapping necessary, the space is fine. But the "a a a" item 
does wrap around and overlaps a bit with the "b b b" item on its second line.  
Any tips?

%%
\version "2.24.1"
\markup  { 
  \column {
\wordwrap-string "a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
a a a"
\wordwrap-string "b b b b b b b b b b b b b b b b b b b b b b b b b b b b b 
b"
\wordwrap-string "c c c c c c c c c c c c c c c c c c c c c c c c c c c c c 
c"
  }
}
%%

Thanks in advance!

Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Jean, thank you so much for your explanations and insights. You've
convinced me that I'm better off building an image from an Ubuntu base. In
fact I had reached the same conclusion after reading that folks use Alpine
for its small size, yet a full install of Tex Live (which I also require)
is multiple gigabytes anyway.

Thank you also for confirming that the problem is likely due to the
glibc/musl discrepancy. I'm not going to try and fix this since I'll switch
to Ubuntu, but I'm glad to at least be able to understand why this
installation could not succeed out of the box.

JD

On Wed, Apr 12, 2023 at 4:34 PM Jean Abou Samra  wrote:

> Le mercredi 12 avril 2023 à 16:07 -0700, JD Margulici a écrit :
>
> Hi Jean,
>
> your diagnostic sounds promising. I successfully installed the Frescobaldi
> Flatpak, but still cannot launch lilypond from the command line. Any idea
> how to get there? I'm building a docker container and I don't have much
> experience with docker, so getting to the Frescobaldi GUI is not
> straightforward.
>
> I'm not sure how one would do this; however, if your goal is to create a
> Docker image, then installing the Flatpak isn't what you want. The main
> point of using Alpine Linux for Docker images is its small size (e.g., for
> a faster CI), but the Frescobaldi Flatpak includes tons of KDE stuff that
> weighs in the Gigabytes or so. If you can't find a way to run LilyPond on
> Alpine without Flatpak, you're better off using a glibc-based distro like
> Fedora or Ubuntu for your Docker image.
>
> I tried 2.24 by unpacking the .tar archive and it doesn't run.
> the lilypond command  returns:
> /bin/sh: lilypond: not found
> even though the directory in in my PATH
> and the lilypond-book command returns:
> /usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
> /usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found
>
> Apparently, that is a typical error when trying to use a glibc-based
> executable on a musl-based system. Sources:
>
> https://pet2cattle.com/2022/11/alpine-not-found
>
>
> https://stackoverflow.com/questions/69607005/cannot-run-executables-with-alpine-and-busybox-docker-images
>
> Prior to unpacking I installed the gcompat alpine package but I can't tell
> whether that is sufficient to get around the glibc issue.
>
> I can't explain this, sorry.
>
> According to https://git.adelielinux.org/adelie/gcompat, it would be
> interesting to see the output of scanelf -i
> /.../lilypond-2.24.1/bin/lilypond.
>
> By the way, why are you putting the lilypond-2.24.1 inside /usr/bin/?
> That's just weird. /usr/bin/ is normally for executables only, not for
> directories with executables and other data, plus it's normally only
> touched by the system package manager, never by you (unlike
> /usr/local/bin/). I would just put the binaries into $HOME.
>
> Back to the topic, perhaps try asking on Alpine Linux forums. You could
> also evaluate if the size is important in your workflow (what are you
> trying to do with the image?) and perhaps change your choice of distro for
> a glibc-based one to save yourself the trouble.
>
> Best,
>
> Jean
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread Jean Abou Samra
Le mercredi 12 avril 2023 à 16:07 -0700, JD Margulici a écrit :
> Hi Jean,
> 
> your diagnostic sounds promising. I successfully installed the Frescobaldi 
> Flatpak, but still cannot launch lilypond from the command line. Any idea how 
> to get there? I'm building a docker container and I don't have much 
> experience with docker, so getting to the Frescobaldi GUI is not 
> straightforward.

I'm not sure how one would do this; however, if your goal is to create a Docker 
image, then installing the Flatpak isn't what you want. The main point of using 
Alpine Linux for Docker images is its small size (e.g., for a faster CI), but 
the Frescobaldi Flatpak includes tons of KDE stuff that weighs in the Gigabytes 
or so. If you can't find a way to run LilyPond on Alpine without Flatpak, 
you're better off using a glibc-based distro like Fedora or Ubuntu for your 
Docker image.

> I tried 2.24 by unpacking the .tar archive and it doesn't run.   
> the lilypond command  returns:  
> /bin/sh: lilypond: not found  
> even though the directory in in my PATH  
> and the lilypond-book command returns:  
> /usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10: 
> /usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

Apparently, that is a typical error when trying to use a glibc-based executable 
on a musl-based system. Sources:

[https://pet2cattle.com/2022/11/alpine-not-found](https://pet2cattle.com/2022/11/alpine-not-found)

[https://stackoverflow.com/questions/69607005/cannot-run-executables-with-alpine-and-busybox-docker-images](https://stackoverflow.com/questions/69607005/cannot-run-executables-with-alpine-and-busybox-docker-images)

> Prior to unpacking I installed the gcompat alpine package but I can't tell 
> whether that is sufficient to get around the glibc issue.


I can't explain this, sorry.

According to 
[https://git.adelielinux.org/adelie/gcompat](https://git.adelielinux.org/adelie/gcompat),
 it would be interesting to see the output of `scanelf -i 
/.../lilypond-2.24.1/bin/lilypond`.

By the way, why are you putting the `lilypond-2.24.1` inside `/usr/bin/`? 
That's just weird. `/usr/bin/` is normally for executables only, not for 
directories with executables and other data, plus it's normally only touched by 
the system package manager, never by you (unlike `/usr/local/bin/`). I would 
just put the binaries into `$HOME`.

Back to the topic, perhaps try asking on Alpine Linux forums. You could also 
evaluate if the size is important in your workflow (what are you trying to do 
with the image?) and perhaps change your choice of distro for a glibc-based one 
to save yourself the trouble.

Best,

Jean


signature.asc
Description: This is a digitally signed message part


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Hi Jean,

your diagnostic sounds promising. I successfully installed the Frescobaldi
Flatpak, but still cannot launch lilypond from the command line. Any idea
how to get there? I'm building a docker container and I don't have much
experience with docker, so getting to the Frescobaldi GUI is not
straightforward.

I tried 2.24 by unpacking the .tar archive and it doesn't run.
the lilypond command  returns:
/bin/sh: lilypond: not found
even though the directory in in my PATH
and the lilypond-book command returns:
/usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
/usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

Prior to unpacking I installed the gcompat alpine package but I can't tell
whether that is sufficient to get around the glibc issue.

Thank you!

JD

On Wed, Apr 12, 2023 at 12:26 AM Jean Abou Samra  wrote:

>
>
> Le 12 avr. 2023 à 02:26, JD Margulici  a écrit :
>
> 
> Hello, I am running the following commands to install Lilypond on Alpine
> Linux:
>
> wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> sh $LILYPOND_INSTALLER
>
> with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh
>
> The installation proceeds without glitches. However when I try to run
> Lilypond I get the following error message, which in spite of its apparent
> simplicity is rather cryptic since the file that is not found actually
> exists:
>
> /usr/local/bin/lilypond: exec: line 4:
> /usr/local/lilypond/usr/bin/lilypond: not found
>
> Similar error with lilypond-book:
>
> /usr/local/bin/lilypond-book: exec: line 6:
> /usr/local/lilypond/usr/bin/python3: not found
>
> I found a 15-year old post that reports the same error, but the
> resolution was not clear:
> https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html
>
> Thank you for your help!
>
>
>
> Not sure about the error message, but I don’t think it could be that
> simple since the binaries we provide are for glibc-based systems, while
> Alpine uses musl. You could try the techniques here:
> https://wiki.alpinelinux.org/wiki/Running_glibc_programs
>
> There is a Frecobaldi Flatpak that includes LilyPond binaries.
>
> Also, 2.23.6 was a development version that has been replaced by the
> stable 2.24 release series. You should upgrade to 2.24 (for which we don’t
> provide sh installers but static binaries, though still dynamically linking
> to glibc).
>
>
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Thank you David. I tried a 32-bit version but the installation fails, so
that confirms that I am pulling the correct version. I also tried unpacking
the archive for the current release, but the executables fail as follows:

the lilypond command  returns:
/bin/sh: lilypond: not found
even though the directory in in my PATH
and the lilypond-book command returns:
/usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
/usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

Any thoughts?

On Tue, Apr 11, 2023 at 6:57 PM David Wright 
wrote:

> On Tue 11 Apr 2023 at 17:04:07 (-0700), JD Margulici wrote:
> > Hello, I am running the following commands to install Lilypond on Alpine
> > Linux:
> >
> > wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> > sh $LILYPOND_INSTALLER
> >
> > with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh
>
> … (a 64-bit version).
>
> > The installation proceeds without glitches. However when I try to run
> > Lilypond I get the following error message, which in spite of its
> apparent
> > simplicity is rather cryptic since the file that is not found actually
> > exists:
> >
> > /usr/local/bin/lilypond: exec: line 4:
> > /usr/local/lilypond/usr/bin/lilypond: not found
> >
> > Similar error with lilypond-book:
> >
> > /usr/local/bin/lilypond-book: exec: line 6:
> > /usr/local/lilypond/usr/bin/python3: not found
> >
> > I found a 15-year old post that reports the same error, but the
> > resolution was not clear:
> > https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html
>
> Reading that post and its OP, it looks as if they installed a 32-bit
> version on a 64-bit OS. Can you check that you're not doing the opposite?
>
> My machine:
>
> $ uname -a
> Linux axis 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
> GNU/Linux
> $
>  ↑   ↑↑
>
> Apropos the version that you're installing, 2.23.6. That's the last
> version of LP that comes as an insaller. More recent versions come
> as an archive which you just unpack somewhere. Does this change
> have anything to do with why you're running this old and otherwise
> unnotable version?
>
> Cheers,
> David.
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Thanks for the suggestions, William. I double checked the paths and
permissions, and I don't think the issue is there. I also tried directly
untaring the 2.24.1 files and that doesn't work either: the lilypond
command  returns:
/bin/sh: lilypond: not found
even though the directory in in my PATH
and the lilypond-book command returns:
/usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
/usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

I can install lilypond on Ubuntu by using apt-get, but for now I'm still
completely stuck on the Alpine distribution, and I don't understand these
errors.

On Tue, Apr 11, 2023 at 6:12 PM William Rehwinkel <
will...@williamrehwinkel.net> wrote:

> Dear JD,
>
> I'm not sure I can help much but will just write two things that come to
> mind.
>
> Did you double check that the path /usr/local/lilypond/usr/bin/lilypond
> exists, and is not just a slightly different path? When I install
> lilypond from
>
> https://gitlab.com/lilypond/lilypond/-/releases/v2.24.1/downloads/lilypond-2.24.1-darwin-x86_64.tar.gz
> the binary is usually found at /path/to/lilypond-x.x.x/bin/lilypond, not
> /<..>/lilypond/usr/bin/lilypond. Something doesn't seem right about the
> path to lilypond and python3, as if it is supposed to be
> /usr/bin/{lilypond,python3} without /usr/local/lilypond appended to it.
> But again I haven't tried installing in this way.
>
> My other guess is it is a sort of permissions error, like that directory
> or file is owned by a different user.
>
> Other than that, hopefully someone else will be of better help.
>
> -Will
>
> On 4/11/23 20:04, JD Margulici wrote:
> > Hello, I am running the following commands to install Lilypond on Alpine
> > Linux:
> >
> > wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> > 
> > sh $LILYPOND_INSTALLER
> >
> > with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh
> > 
> >
> > The installation proceeds without glitches. However when I try to run
> > Lilypond I get the following error message, which in spite of its
> > apparent simplicity is rather cryptic since the file that is not found
> > actually exists:
> >
> > /usr/local/bin/lilypond: exec: line 4:
> > /usr/local/lilypond/usr/bin/lilypond: not found
> >
> > Similar error with lilypond-book:
> >
> > /usr/local/bin/lilypond-book: exec: line 6:
> > /usr/local/lilypond/usr/bin/python3: not found
> >
> > I found a 15-year old post that reports the same error, but the
> > resolution was not clear:
> > https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html
> > 
> >
> > Thank you for your help!
> >
> > JD
>
> --
> + --- +
> |   William Rehwinkel - Oberlin College and   |
> |  Conservatory '24   |
> |will...@williamrehwinkel.net |
> | PGP key:|
> | https://ftp.williamrehwinkel.net/pubkey.txt |
> + --- +
>


Re: How to fix markup horizontal position relative to edge of page

2023-04-12 Thread Benjamin Bruce
I think this solution will work best for my purposes. My first thought about 
making the procedure only calculate the indent was "Why didn't I think of 
that?" Thanks for working through this with me.

Jean, I like your solution, the only problem is that the right-margin applies 
to the markup as well, and I want the markup to extend all the way across the 
page.

Thanks to everyone for their ideas.

𐑪𐑯 2023-04-11 𐑨𐑑 14:40, juergen.gr...@xyz.de 𐑮𐑴𐑑:
> Ok. Wasn't aware of that. Still learning too...
> I changed the procedure so it is just calculating the indent and not 
> creating a layout block... (more code in the layout block necessary)
>
>
>
> %%
> \version "2.24.0"
>
>
> #(define (get-indent lw)
>    (let* (
>            (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>            (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>            (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default)))
>      ; calculate indent for use in layout blocks
>      (/ (- pw lmd rmd lw) 2)))
>
>
> \score {
>   \layout  {
>     lineWidth = 120
>     ind = #(get-indent lineWidth)
>     line-width = #(+ lineWidth ind)
>     indent = \ind
>     short-indent = \ind
>
>
>     % some other stuff...
>   }
>   \repeat unfold 20 \relative c { c' d e f g a b  }
> }
>
>
> \markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua 
> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl. 
> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto 
> leberkas."
> %%
>
>
> Not sure what is best practice here
>
>
>
> Juergen.
>
>
>
>
>> -ursprüngliche Nachricht-
>> Von: benja...@koine.gr
>> Gesendet: 11.04.2023 16:59 Uhr
>> An: juergen.gr...@xyz.de, lilypond-user@gnu.org
>> Betreff: Re: How to fix markup horizontal position relative to edge of page
>
>
>
>
>> I did try that, but in the output the the score appears twice since there 
>> are two layout blocks. Is there no way to merge them?
>>
>> 𐑪𐑯 2023-04-11 𐑨𐑑 08:36, juergen.gr...@xyz.de 𐑮𐑴𐑑:
>> > This
>> >> #{
>> >> line-width = #(+ lw ind)
>> >> indent = #ind
>> >> short-indent = #ind
>> >> #}
>> > is part of the scheme procedure. You can use lilypond syntax - put into
>> > #{ ...#}  - in scheme procedures. I create a new layout-block in the
>> > procedure. You can not nest layout blocks but you can have parallel
>> > layout-blocks. So copy the procedure-call into your score but not into
>> > your own layout block:
>> >
>> >
>> > \version "2.24.0"
>> >
>> > #(define (set-score-width lw)
>> >    (let* (
>> >            (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>> >            (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>> >            (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>> >            (ind (/ (- pw lmd rmd lw) 2)))
>> >
>> >      #{ \layout {
>> >        line-width = #(+ lw ind)
>> >        indent = #ind
>> >        short-indent = #ind
>> >      } #} )) % end of scheme code
>> >
>> > \score {
>> >    procedure call
>> >   #(set-score-width 120)
>> >
>> >    your own layout block
>> >   \layout {
>> >     % do something
>> >   }
>> >   \repeat unfold 20 \relative c { c' d e f g a b  }
>> > }
>> > \markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua
>> > incididunt sunt in. Excepteur consequat ad laboris anim flank jowl.
>> > Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto
>> > leberkas."
>> >
>> >
>> >
>> >
>> >
>> > HTH, Juergen.
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >> -ursprüngliche Nachricht-
>> >> Von: benja...@koine.gr
>> >> Gesendet: 11.04.2023 16:14 Uhr
>> >> An: juergen.gr...@xyz.de, lilypond-user@gnu.org
>> >> Betreff: Re: How to fix markup horizontal position relative to edge of 
>> >> page
>> >
>> >
>> >> Quick question, in the scores I am working on I already have a \layout 
>> >> block with several other settings within it. How can I insert just the 
>> >> line-width, indent, and short-indent settings into the already-existent 
>> >> \layout block without creating another one? If I try just
>> >>
>> >> #{
>> >> line-width = #(+ lw ind)
>> >> indent = #ind
>> >> short-indent = #ind
>> >> #}
>> >>
>> >> for my LilyPond code block, it gives me the error "not a note name: 
>> >> line-width".
>> >> Thanks for your Scheme expertise :)
>> >>
>> >> 𐑪𐑯 2023-04-11 𐑨𐑑 07:38, Benjamin Bruce 𐑮𐑴𐑑:
>> >> > This is exactly what I needed. I figured it could be done with some
>> >> > Scheme code, but that's beyond my knowledge. Thanks so much for your
>> >> > help!
>> >> >
>> >> > 𐑪𐑯 2023-04-11 𐑨𐑑 03:55, juergen.gr...@xyz.de 𐑮𐑴𐑑:
>> >> >> OK, this was not correct. There is a left-margin-default set and the
>> >> >> indent does not shift the line but makes it shorter(?) Here is another
>> >> >> approach:
>> >> >>
>> >> >> 
>> >> >>
>> >> >> \version "2.24.0"
>> >> >>
>> >> >> #(define (set-score-width lw)

Re: How to fix markup horizontal position relative to edge of page

2023-04-12 Thread Jean Abou Samra
Le mercredi 12 avril 2023 à 11:31 -0700, Aaron Hill a écrit :
> One option I did not see mentioned was putting the score into a markup  
> to horizontally center it:
> 
>   
> asdf = \score {  
>    \relative { c'4 d e f \break g a b c }  
>    \layout { line-width = 4\in }  
> }
> 
> \markup \fill-line { \null \score { \asdf } \null }  
> 


That is elegant indeed. Note, though, that it has other effects: for example, 
it will force all systems from the score to be on the same page (could be fixed 
using `\markuplist` and `\score-lines`), and it will make the spacing between 
systems governed by `markup-markup-spacing` rather than `system-system-spacing` 
(can't really be fixed AFAIK).



signature.asc
Description: This is a digitally signed message part


Re: How to fix markup horizontal position relative to edge of page

2023-04-12 Thread Aaron Hill

Hello all,
I am trying to layout some documents where the score is centered on the 
page, and underneath it is some markup text that is aligned left, 
relative to the edge of the page. In some documents the score will be 
wider, in some it will be narrower, but the text below it should always 
be in the same horizontal position relative to the page.


One option I did not see mentioned was putting the score into a markup 
to horizontally center it:



asdf = \score {
  \relative { c'4 d e f \break g a b c }
  \layout { line-width = 4\in }
}

\markup \fill-line { \null \score { \asdf } \null }



-- Aaron Hill



Re: How to fix markup horizontal position relative to edge of page

2023-04-12 Thread Jean Abou Samra
Le lundi 10 avril 2023 à 15:25 -0600, Benjamin Bruce a écrit :
> Hello all,  
> I am trying to layout some documents where the score is centered on the page, 
> and underneath it is some markup text that is aligned left, relative to the 
> edge of the page. In some documents the score will be wider, in some it will 
> be narrower, but the text below it should always be in the same horizontal 
> position relative to the page.
> 
> If I set line-width in the \paper block, it will be applied to everything, 
> and the markup will be aligned relative to the line-width. If I set 
> line-width in the \layout block, the markup is independent, but the score is 
> now left-aligned, not centered.
> 
> I am attaching my (somewhat) tiny example in case this doesn't make sense. Is 
> there a way to accomplish what I'm trying to do, even if it's hacky? Thanks 
> for your help!


How about this?

```
\version "2.24.1"

markupLeftMargin = 10
musicLineWidth = 100
firstSystemIndent = 10

\paper {
  left-margin = #markupLeftMargin
  right-margin = #(* 1/2 (- paper-width musicLineWidth))
  short-indent = #(- right-margin left-margin)
  indent = #(+ short-indent firstSystemIndent)
}

{ c' \break c' }

\markup "abc"
```

Essentially, the trick is not to use `line-width` at all, instead increasing 
`indent` and `short-indent` to compensate.

Best,

Jean


signature.asc
Description: This is a digitally signed message part


Re: converting `\markuplist` to `\markup`

2023-04-12 Thread Werner LEMBERG

> What do you mean by “convert”?

Probably bad wording: I mean to wrap a markup list into a markup.

> I don’t know what it means to convert a markup list to a markup,
> since there are many ways in which you can combine the stencils:
> \column, \center-column, \line, \concat, \fill-line, etc.

I want to combine the stencils without changing the horizontal or
vertical spacing.

> What is insufficient with \column for your use case?  Are you trying
> to keep flexible vertical spacing between the table lines?

`\column` works just fine.  I was only wondering whether it is the
'right' way.

Here is an example.  If you process file `a.lytexi`

```
\input texinfo

@lilypond[verbatim]
\markuplist {
  \override #'(baseline-skip . 0)
  \table #'(-1) { foo bar } }
@end lilypond

@lilypond[verbatim]
\markup \column {
  \override #'(baseline-skip . 0)
  \table #'(-1) { foo bar } }
@end lilypond

@bye
```

with

```
lilypond-book --format=texi --pdf --output=a a.lytexi 
```

followed by `texi2pdf a/a.texi` you get the attached result.  As can
be seen, `lilypond-book` enlarges the vertical spacing for the
`\markuplist` because it gets converted to two `@image` commands, and
`texinfo.tex` inserts some additional space between them.


Werner


Re: converting `\markuplist` to `\markup`

2023-04-12 Thread Jean Abou Samra



> Le 12 avr. 2023 à 11:07, Werner LEMBERG  a écrit :
> 
> What's the proper way to convert a `\markuplist` to a `\markup`?
> `lilypond-book` splits a top-level `\table` into separate lines; I
> want to avoid that because it prevents fine-tuning of the vertical
> spacing of rows.  Right now I do
> 
> ```
> \markup \column {
>  \table ...
> }
> ```



What do you mean by “convert”?

I know what it means to convert an int to a float: given an int, there is 
(often) a float with the same conceptual value. I don’t know what it means to 
convert a markup list to a markup, since there are many ways in which you can 
combine the stencils: \column, \center-column, \line, \concat, \fill-line, etc.

What is insufficient with \column for your use case? Are you trying to keep 
flexible vertical spacing between the table lines?





converting `\markuplist` to `\markup`

2023-04-12 Thread Werner LEMBERG


What's the proper way to convert a `\markuplist` to a `\markup`?
`lilypond-book` splits a top-level `\table` into separate lines; I
want to avoid that because it prevents fine-tuning of the vertical
spacing of rows.  Right now I do

```
\markup \column {
  \table ...
}
```


Werner



Re: `TextMark` doesn't react to `staff-padding`

2023-04-12 Thread Werner LEMBERG


>> I expect that both the 'x' and the 'g' are aligned at the baseline.
>> However, it doesn't work.
>> 
>> AFAICS, the `TextMark` grob contains `side-position-interface`.  What
>> am I missing?
> 
> See https://gitlab.com/lilypond/lilypond/-/issues/342

Interesting, thanks!  I wouldn't have expected that I'm hit by an old
bug.


Werner



Re: `TextMark` doesn't react to `staff-padding`

2023-04-12 Thread Jean Abou Samra


> Le 12 avr. 2023 à 09:38, Werner LEMBERG  a écrit :
> 
> 
> Please have a look at this snippet:
> 
> ```
> {
>  \override Score.TextMark.staff-padding = 2
>  \textMark "x" c''
>  \textMark "g" c''
> }
> ```
> 
> I expect that both the 'x' and the 'g' are aligned at the baseline.
> However, it doesn't work.
> 
> AFAICS, the `TextMark` grob contains `side-position-interface`.  What
> am I missing?


See https://gitlab.com/lilypond/lilypond/-/issues/342

`TextMark` doesn't react to `staff-padding`

2023-04-12 Thread Werner LEMBERG

Please have a look at this snippet:

```
{
  \override Score.TextMark.staff-padding = 2
  \textMark "x" c''
  \textMark "g" c''
}
```

I expect that both the 'x' and the 'g' are aligned at the baseline.
However, it doesn't work.

AFAICS, the `TextMark` grob contains `side-position-interface`.  What
am I missing?


Werner


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread Jean Abou Samra
Le 12 avr. 2023 à 02:26, JD Margulici  a écrit :Hello, I am running the following commands to install Lilypond on Alpine Linux:wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLERsh $LILYPOND_INSTALLERwith LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.shThe installation proceeds without glitches. However when I try to run Lilypond I get the following error message, which in spite of its apparent simplicity is rather cryptic since the file that is not found actually exists:/usr/local/bin/lilypond: exec: line 4: /usr/local/lilypond/usr/bin/lilypond: not foundSimilar error with lilypond-book:/usr/local/bin/lilypond-book: exec: line 6: /usr/local/lilypond/usr/bin/python3: not foundI found a 15-year old post that reports the same error, but the resolution was not clear: https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.htmlThank you for your help!
Not sure about the error message, but I don’t think it could be that simple since the binaries we provide are for glibc-based systems, while Alpine uses musl. You could try the techniques here: https://wiki.alpinelinux.org/wiki/Running_glibc_programsThere is a Frecobaldi Flatpak that includes LilyPond binaries.Also, 2.23.6 was a development version that has been replaced by the stable 2.24 release series. You should upgrade to 2.24 (for which we don’t provide sh installers but static binaries, though still dynamically linking to glibc).