Re: Bravura svg font

2016-01-08 Thread Paul Booker
David Kastrup  gnu.org> writes:

> 
> Andrew Bernard  gmail.com> writes:
> 
> > Hi Paul,
> >
> > I don’t know if it is by design or not in lilypond, but I incorporate
> > a lot of postscript in my scores and they simply will not render as
> > SVG. So far, I have never had any clear answers about this
> > behaviour. Is it that lilypond can’t do conversion from postscript
> > code in markups and so on to SVG? That would not be surprising.
> 
> Correct.  But one can do a lot using the \path markup which should
> transfer to SVG just fine.


Thanks David, for the clue. 

Between you and the log file, and LSR snippet 623, it seems I chose the
worst possible example to try with the parallelogram.

parallelogram =
  #(ly:make-stencil (list 'embedded-ps
"gsave
  currentpoint translate
  newpath
  -0.3 0 moveto
  -0.3 1.4 1.8 1.3 1.8 0 curveto
  1.7 -1.9 -0.5 -2.5 -0.5 -2.5 curveto . . . etc

Note all the segment names after the coordinates. I missed this before.

But svg backend requires different markup, such as 

customClefStencilTwo = 
  #(ly:make-stencil
`(path 0.1
  `(moveto 0 0
curveto 0 1 0.7 2.5 1.5 1.5
lineto 1.5 -3
closepath)
  'round
  'round
  #t)
 (cons 0 1.5)
 (cons -3 2))

to help conversion to svg.
I'm back in business!

Paul


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-08 Thread paul booker
Nathan Ho  snappizz.com> writes:

> 
> On 2016-01-07 15:49, Simon Albrecht wrote:
> > 
> > In case others be interested:
> > 
> > Nice and funny  Thanks, Abraham (and Mark)!
> > 
> > Yours, Simon
> 
> There aren't enough novelty music fonts out there. Once I was a kid and 
> I entered "Take Me Out to the Ballgame" in Finale PrintMusic, then 
> edited it in Paint to make the noteheads baseballs and to make the clefs 
> wear little baseball caps.
> 
> Nathan
> 
I'm now trying postscript, drawing the clef of my dreams, but getting the
same problem, works as a png, not as svg. I'm using this cmd command.

"c:\Program Files (x86)\LilyPond\usr\bin\lilypond-windows.exe" -dgui
-dbackend=svg -dpreview file.ly

And my postscript is as per the parallelogram example in Snippets, p.185 in
the pdf version.
The log file offers this.

Layout output to `file.svg'...
warning: missing stencil expression `embedded-ps'
Layout output to `file.preview.svg'...
warning: missing stencil expression `embedded-ps' 

Same bug? Or something else? Any workaround tips would be welcomed.

Regards
Paul




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-08 Thread Andrew Bernard
Hi Paul,

I don’t know if it is by design or not in lilypond, but I incorporate a lot of 
postscript in my scores and they simply will not render as SVG. So far, I have 
never had any clear answers about this behaviour. Is it that lilypond can’t do 
conversion from postscript code in markups and so on to SVG? That would not be 
surprising.

Andrew


On 8/01/2016, 20:52, "paul booker" 
 wrote:

Same bug? Or something else? 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-08 Thread David Kastrup
Andrew Bernard  writes:

> Hi Paul,
>
> I don’t know if it is by design or not in lilypond, but I incorporate
> a lot of postscript in my scores and they simply will not render as
> SVG. So far, I have never had any clear answers about this
> behaviour. Is it that lilypond can’t do conversion from postscript
> code in markups and so on to SVG? That would not be surprising.

Correct.  But one can do a lot using the \path markup which should
transfer to SVG just fine.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-07 Thread Nathan Ho

On 2016-01-07 02:57, Paul Booker wrote:

Thanks Nathan,
Since posting, I've scanned the bug and devel groups, and it would 
appear I
am not being fashionable in wanting to do this. The trend seems to be 
toward

woff fonts for svg, is that the case?


Yes and no. The openlilylib font project mostly supersedes the SMuFL 
implementation. I haven't been keeping up on the project (since I 
haven't been using LilyPond much lately), but I'd wager it is superior 
for the specific case of typesetting music in Bravura/Profondo. When the 
site gets back up, I suggest you use their work.


However, the LilyJAZZ dynasty still lives on. The most serious use is 
probably Robert Piéchaud's commercial font November. The least serious 
use is the recent Christmas font adaptation by Leigh Verlag :)


Nathan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-07 Thread Simon Albrecht

On 08.01.2016 00:31, Nathan Ho wrote:
The least serious use is the recent Christmas font adaptation by Leigh 
Verlag :) 


In case others be interested: 


Nice and funny :-) Thanks, Abraham (and Mark)!

Yours, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-07 Thread Nathan Ho

On 2016-01-06 11:23, Paul Booker wrote:

Hi,
I'm a new use of lilypond-windows on Win 8.1 64bit and Win 7. First of 
all,
thanks for wonderful software; I'm generating many snippets for 
educational

purposes.
My main problem so far is getting the bravura alternative font to 
appear. I

don't mind trying a few things, but this problem has me stumped.


Hi Paul,

I'm responsible for this issue as the maintainer of the SMuFL 
implementation. Thanks for reporting the bug; I'll get on this tomorrow.


By the way, there is another way to get Bravura (and a whole host of 
other fonts) in LilyPond. It should be available at 
fonts.openlilylib.org but that site seems to be down for the moment.


Nathan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bravura svg font

2016-01-07 Thread Nathan Ho

On 2016-01-07 15:49, Simon Albrecht wrote:


In case others be interested:

Nice and funny :-) Thanks, Abraham (and Mark)!

Yours, Simon


There aren't enough novelty music fonts out there. Once I was a kid and 
I entered "Take Me Out to the Ballgame" in Finale PrintMusic, then 
edited it in Paint to make the noteheads baseballs and to make the clefs 
wear little baseball caps.


Nathan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Bravura svg font

2016-01-06 Thread Paul Booker
Hi,
I'm a new use of lilypond-windows on Win 8.1 64bit and Win 7. First of all,
thanks for wonderful software; I'm generating many snippets for educational
purposes.
My main problem so far is getting the bravura alternative font to appear. I
don't mind trying a few things, but this problem has me stumped.
Bravura works fine when I produce png images, but I get something else when
I try to make an svg.
The svg is fine with Lilypond font, and I am only trying to change the clef
to bravura bass clef.
I put this in cmd.
"c:\Program Files (x86)\LilyPond\usr\bin\lilypond-windows.exe" -dgui
-dbackend=svg -dpreview file.ly

I have this in the file.ly
\version "2.18.2" 
\include "custom-music-fonts/smufl/definitions.ily"

and
\override Staff.Clef.stencil = #smufl-clef

The offending part of the svg, instead of the clef path, is





Evidently, it is trying to be bravura but from the text font perhaps?
I got the same result when I tried 2.19.35.
Would I have better luck with Linux? (last resort). Thank you
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user