Re: Mac OS 10.15 Catalina (fonts)

2019-11-18 Thread Sven Axelsson
On Tue, 19 Nov 2019 at 00:54, Flaming Hakama by Elaine <
ela...@flaminghakama.com> wrote:

>
>> From: Aaron Hill 
>> To: lilypond-user@gnu.org
>>
>> Date: Sun, 17 Nov 2019 21:04:07 -0800
>> Subject: Re: Mac OS 10.15 Catalina (fonts)
>> On 2019-11-17 8:50 pm, Tim McNamara wrote:
>> > The default Catalina shell is zsh.  You can use bash but you may have
>> > to set it to that.
>>
>> Scripts should generally begin with an appropriate "shebang" to avoid
>> confusion:
>>
>>  #!/usr/bin/env bash
>>
>> I, for instance, run fish in my WSL environment, but I script almost
>> exclusively in bash.
>>
>>
>> -- Aaron Hill
>
>
> Correct, one has to install bash on the newest mac OS Catalina.
>

Catalina includes the same shells as earlier versions of macOS; bash, tcsh,
csh, sh, zsh, and ksh.
The only difference is that the default has changed to zsh. You can set
desired shell  per user in
Users & Groups / Advanced Options. All shells are located in /bin/ and can
be used in a
shebang as required.

-- 
Sven Axelsson
++[>++>+++>++>++
><<<<<-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++.<<<<.>>.<.


Re: Mac OS 10.15 Catalina (fonts)

2019-11-18 Thread Flaming Hakama by Elaine
>
>
> From: Aaron Hill 
> To: lilypond-user@gnu.org
>
> Date: Sun, 17 Nov 2019 21:04:07 -0800
> Subject: Re: Mac OS 10.15 Catalina (fonts)
> On 2019-11-17 8:50 pm, Tim McNamara wrote:
> > The default Catalina shell is zsh.  You can use bash but you may have
> > to set it to that.
>
> Scripts should generally begin with an appropriate "shebang" to avoid
> confusion:
>
>  #!/usr/bin/env bash
>
> I, for instance, run fish in my WSL environment, but I script almost
> exclusively in bash.
>
>
> -- Aaron Hill


Correct, one has to install bash on the newest mac OS Catalina.
So, if I expected help from anyone on this list, choosing that shell was a
poor decision.

And I should have included a shebang to be clearer in this example,
in which case the most up-to-date version through homebrew is
#!/usr/local/bin/bash

In any case, the point being that the script creates many examples, some of
which succeed, and some of which fail.

Here is one that succeeds as-is, changing the DynamicText.
But if you uncomment either the Script or NoteHead lines, it fails.


\version "2.19.83"

#(define-public (add-notation-font fontnode name music-str brace-str factor)
  (begin
(add-music-fonts fontnode
  name music-str brace-str
  feta-design-size-mapping factor)
fontnode))

\paper {
  #(define notation-fonts
(list
  (list 'beethoven "beethoven" "beethoven")
))

  #(begin
(for-each
  (lambda (tup)
(add-notation-font fonts
  (car tup) ; font identifier
  (cadr tup) ; notation font
  (caddr tup) ; brace font
  (/ staff-height pt 20)))
  notation-fonts))
}

\layout {
%  This one works (for articulations)
\override DynamicText #'font-family = #'beethoven

%  Uncomment either of these, and it fails
%\override Script #'font-family = #'beethoven
%\override NoteHead #'font-family = #'beethoven
}

\relative c' { c2.\pp \< d4--\p | e2.->\mf f4->\ff }


Thanks,

Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Re: Mac OS 10.15 Catalina (fonts)

2019-11-17 Thread Aaron Hill

On 2019-11-17 8:50 pm, Tim McNamara wrote:

The default Catalina shell is zsh.  You can use bash but you may have
to set it to that.


Scripts should generally begin with an appropriate "shebang" to avoid 
confusion:


#!/usr/bin/env bash

I, for instance, run fish in my WSL environment, but I script almost 
exclusively in bash.



-- Aaron Hill



Re: Mac OS 10.15 Catalina (fonts)

2019-11-17 Thread Tim McNamara
The default Catalina shell is zsh.  You can use bash but you may have to set it 
to that.



Re: Mac OS 10.15 Catalina (fonts)

2019-11-17 Thread Flaming Hakama by Elaine
>
> -- Forwarded message --
>
From: eBooks 
> To: Allan Kinnaird 
> Cc: lilypond-user@gnu.org
> Bcc:
> Date: Fri, 15 Nov 2019 15:06:21 -0700
> Subject: Re: Mac OS 10.15 Catalina
>
>
> > On Nov 15, 2019, at 2:35 PM, Allan Kinnaird 
> wrote:
> >
> > So here I am (as I see it) :
> > My current version of Lilypond is not going to work on my Mac if I
> upgrade to Catalina (v10.15) because of an incomprehensible licence impasse
> between GNU and Apple.
> > Hans Åberg has provided an installable package (
> https://www.et.byu.edu/~sorensen/lilypond-devel-2.19.83_2.mpkg ) which
> runs as 64-bit on Catalina. It appears that it has problems with convert-ly
> but is otherwise OK. (And Frescobaldi users need to point Frescobaldi
> preferences towards the right version of Lilypond.)
> > I have downloaded Hans’s file and tried to install it. Unfortunately the
> installer blocked the process, requiring that the OS be 10.15 Catalina - I
> have to go for Catalina before I can test for problems with it.
> > So, to continue using Lilypond, either I have to stay forever on v2.18.2
> and have my computer stay forever on OS 10.14, or just go for Catalina, run
> Hans’s installer, and accept what disasters then ensue. (Hans seems a
> pretty good guy, so with luck there won’t be many!)
> > Geronimo!
>
> You could also run LilyPond under Linux in a virtual machine on your mac.
>
>
I recently got my mac installed with a fresh Catalina, and endeavored to
install Hans' Lilypond package.
(Thanks, Hans!!!)

Everything went fine, except certain aspect of fonts.
But I have been using a custom "Frankenfont", created by overriding various
elements, such as:

\layout {
  \context {
\Staff
\override Stem.details.beamed-lengths = #'(3.8 4 4.2)
\override Beam #'beam-thickness = #0.57
\override Beam #'length-fraction = #1.14
\override Beam.damping = #1.94
\override Tie #'thickness = #2.1
\override Slur #'thickness = #2.2
\override PhrasingSlur #'thickness = #2.6
\override Hairpin.minimum-length = #3
  }
  \override DynamicText #'font-family = #'sebastiano
  \override NoteHead #'font-family = #'scorlatti
  \override Script #'font-family = #'lv-goldenage
  \override TrillSpanner #'font-family = #'scorlatti
}

This has been working for me for several years.
However, with this version on mac Catalina, I cannot get the overrides to
work for NoteHead or Script.

Here is my MWE.  The vanilla version here does nothing special, since it
overrides these font symbols with the default, Emmentaler.
Then there is a bash script to iterate through each of the named fonts, and
each of the thee font symbols, and create a file for each font and symbol
alteration.

All the fonts are present, according to lilypond -dshow-available-fonts.
And all the fonts work for overriding DynamicText.
But none of them besides Emmentaler work for overriding NoteHead or Script,
yeilding an error like
fatal error: cannot find font: `lv-goldenage-11'

Does anyone have any clues what I'd need to do to get these symbol-specific
overrides to work again?


% font-examples.ly

\version "2.19.83"

#(define-public (add-notation-font fontnode name music-str brace-str factor)
  (begin
(add-music-fonts fontnode
  name music-str brace-str
  feta-design-size-mapping factor)
fontnode))

\paper {
  #(define notation-fonts
(list
  (list 'beethoven "beethoven" "beethoven")
  (list 'cadence "cadence" "emmentaler")
  (list 'emmentaler "emmentaler" "emmentaler")
  (list 'gonville "gonville" "gonville")
  (list 'gutenberg "gutenberg1939" "gutenberg1939")
  (list 'haydn "haydn" "haydn")
  (list 'improviso "improviso" "improviso")
  (list 'lilyjazz "lilyjazz" "lilyjazz")
  (list 'paganini "paganini" "emmentaler")
  (list 'profondo "profondo" "profondo")
  (list 'ross "ross" "ross")
  (list 'scorlatti "scorlatti" "emmentaler")
  (list 'sebastiano "sebastiano" "sebastiano")
  (list 'lilyboulez "lilyboulez" "haydn")
  (list 'lv-goldenage "lv-goldenage" "lv-goldenage")
))

  #(begin
(for-each
  (lambda (tup)
(add-notation-font fonts
  (car tup) ; font identifier
  (cadr tup) ; notation font
  (caddr tup) ; brace font
  (/ staff-height pt 20)))
  notation-fonts))
}

\layout {
%  For articulations
\override DynamicText #'font-family = #'emmentaler
\override Script #'font-family = #'emmentaler
\override NoteHead #'font-family = #'emmentaler
}

\relative c' { c2.\pp \< d4--\p | e2.->\mf f4->\ff }


#  fonts.sh

#  Automate testing various music fonts
#  Update a Lilypond file to override a font element (referred to here as
SYMBOL)
#  including NoteHead, DynamicText and Script
#  Build the file, then save it in a directory named by SYMBOL/FONT.pdf

ALL_FONTS="beethoven cadence emmentaler gonville gutenberg haydn improviso
lilyjazz paganini profondo ross scorlatti sebastiano lilyboulez
lv-goldenage"