Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-09 Thread tisimst
Dmytro,

Sorry for my delayed comment. I don't know what is causing this, but I've
seen this come up before from other users. I'm excited to see you like
Improviso! I hope we can get this figured out.

Best,
Abraham

On Tuesday, December 8, 2015, Dmytro O. Redchuk-2 [via Lilypond] <
ml-node+s1069038n184579...@n5.nabble.com> wrote:

> Sorry, this "patch" has huge problems .(
>
> 2015-12-08 11:44 GMT+02:00 Dmytro O. Redchuk <[hidden email]
> >:
>
> > With this patch it looks like "it works for me".
> >
> > I will check more. What would I check besides of a "regular"
> > (lilypond's and lilypond-book's) output generation?
> >
> > Please, anyone knowledgeable, review this diff and give your feedback,
> > because, as usually, I don't know what I am doing.
> >
> > Thank you!
> >
> > 2015-12-08 9:57 GMT+02:00 Dmytro O. Redchuk <[hidden email]
> >:
> >> 2015-12-08 9:55 GMT+02:00 Dmytro O. Redchuk <[hidden email]
> >:
> >>> Hello,
> >>>
> >>> to avoid any misunderstanding with any "include"'s I've tested this
> >>> issue with this source:
> >> And the command was (no -I...), of course:
> >>
> >> $ lilypond-book --out=out [--pdf] test.lytex
> >>
> >>>
> >>> %  8< --
> >>> \documentclass{article}
> >>> \begin{document}
> >>> \begin{lilypond}
> >>>   { c''4 }
> >>>   \paper {
> >>> #(define fonts
> >>>   (set-global-fonts
> >>>   #:music "improviso"
> >>>   #:factor (/ staff-height pt 20)
> >>> ))
> >>>   }
> >>> \end{lilypond}
> >>> \end{document}
> >>> %  8< --
> >>>
> >>> And I have the same result, attached.
> >>>
> >>> 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk <[hidden email]
> >:
>  2015-12-07 19:55 GMT+02:00 James <[hidden email]
> >:
> > Hello Dmytro,
>  Hello James :)
> 
> >>> I want lilypond to engrave it with "improviso" font,
> >>> https://fonts.openlilylib.org/improviso/ --- I have set it up,
> it's
> >>> ok.
>  ... and the subject of this thread is: "lilypond-book: 'external'
>  fonts and --pdf option problem" .)
> 
>  I have no any problem with lilypond-book and Emmentaler (lilypond's
>  default) font. With or without --pdf, really.
> 
>  I am sorry to be unclear. That \include imports the stylesheet for
>  improviso font (https://fonts.openlilylib.org/improviso/, an
> alternate
>  font for lilypond).
> 
>  So, without --pdf I have nice result, with --pdf I have a score(s)
>  with "improviso-related" objects missed.
> >>
> >> --
> >>   Dmytro O. Redchuk
> >
> >
> >
> > --
> >   Dmytro O. Redchuk
>
>
>
> --
>   Dmytro O. Redchuk
>
> ___
> bug-lilypond mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/lilypond-book-external-fonts-and-pdf-option-problem-tp184556p184579.html
> To start a new topic under Bugs, email
> ml-node+s1069038n58488...@n5.nabble.com
> 
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-external-fonts-and-pdf-option-problem-tp184556p184597.html
Sent from the Bugs mailing list archive at Nabble.com.
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-09 Thread Dmytro O. Redchuk
2015-12-09 15:10 GMT+02:00 tisimst :
> Dmytro,
>
> Sorry for my delayed comment. I don't know what is causing this, but I've
> seen this come up before from other users. I'm excited to see you like
> Improviso! I hope we can get this figured out.
Abraham,
yes, I like it very much, THANK you :)

When I insert some (display ...)'s into framework-ps.scm I can see
that ly:find-file fails to find font-file with --pdf option for some
reason.

Ok, as you can see, I can be wrong! Don't mind, please :)

Now I've simply added "fallback" workaround:

--- framework-ps.scm.orig   2015-12-08 10:44:54.293262621 +0200
+++ framework-ps.scm2015-12-08 12:07:52.786888984 +0200
@@ -237,16 +237,18 @@
 (let* ((font (car font-name-filename))
(name (cadr font-name-filename))
(file-name (caddr font-name-filename))
-   (bare-file-name (ly:find-file file-name)))
+   (bare-file-name (ly:find-file file-name))
+   (font-file-name (ly:find-file (format #f "~a.otf" file-name
   (cons name
 (if (mac-font? bare-file-name)
 (handle-mac-font name bare-file-name)
 (cond
  ((internal-font? file-name)
-  (ps-load-file (ly:find-file
- (format #f "~a.otf" file-name
+  (ps-load-file font-file-name))
  ((string? bare-file-name)
   (ps-load-file file-name))
+ ((string? font-file-name)
+  (ps-load-file font-file-name))
  (else
   (ly:warning (_ "cannot embed ~S=~S") name file-name)
   ""))

-- 
  Dmytro O. Redchuk

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


Unnecessary bad beam warning

2015-12-09 Thread Simon Albrecht

Hello,

maybe Lily should not give a ‘no viable initial configuration found: may 
not find good beam slope’ warning if the user has already taken care of 
the problem through the Beam’s positions property:


\version "2.19.32"
{
  \stemUp g'8-\offset positions #'(-1 . .3) [ \stemDown e'']
}

(Yes, the example doesn’t make much sense.)
Wishful thinking?

Yours, Simon

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