lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird parentheses


From: Simon Albrecht
Subject: Re: Weird parentheses
Date: Sun, 23 Sep 2018 22:37:57 +0200

On 23.09.2018 21:45, David Sumbler wrote:
Now, when I compile the file, I get an empty rectangle where the
parentheses used to be.  Furthermore, if I substitute other characters
for the parentheses I get weird results: for instance, a lower case
letter generally gives a capital letter 3 places later in the alphabet
(e.g. "a" appears as "D").
Weird indeed.
I find though that the letter "p" appears as the dynamic "p".  Perhaps
there is a clue here as to what is going on, but I can't figure it out.

Some of that sounds like using the number command may be the problem, because the font doesn’t contain many normal glyphs. Try experimenting with the normal-text markup command.

However, still more weird is that I don’t get any of those problems: the markup itself looks OK, but there’s some white space instead of the start of the staff symbol. This is on Ubuntu 16.04, with Lily 2.19.82.

I’d experiment in this direction with the markup:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.19.82"

\language "english"

#(define-markup-command (timesig-paren layout props opening?) (boolean?)
   (interpret-markup layout props
     (markup #:normal-text
       #:override '(font-size . 6)
       #:scale '(0.5 . 1)
       #:vcenter
       (if opening? "(" ")"))))


#(define ((time-parenthesized-time up down upp1 downp1 upp2 downp2)
grob)
   (grob-interpret-markup grob
     (markup #:override '(baseline-skip . 0) #:number
       (#:line (
           (#:center-column (up down))
           #:timesig-paren #t
           (#:center-column (upp1 downp1))
           #:normal-text #:lower 0.5 "+"
           (#:center-column (upp2 downp2))
           #:timesig-paren #f )))))

\new Staff {
  \override Staff.TimeSignature.stencil = #(time-parenthesized-time
"21" "8" "12" "8" "9" "8")
}
%%%%%%%%%%%%%%%%%%%%%

Output attached – I don’t know where that whitespace comes from.

Best, Simon

Attachment: Screenshot from 2018-09-23 22-37-43.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]