lilypond-devel
[Top][All Lists]
Advanced

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

Re: add stencil-whiteout-outline function (issue 236480043 by address@hi


From: k-ohara5a5a
Subject: Re: add stencil-whiteout-outline function (issue 236480043 by address@hidden)
Date: Tue, 02 Jun 2015 05:00:30 +0000


https://codereview.appspot.com/236480043/diff/40001/python/convertrules.py
File python/convertrules.py (right):

https://codereview.appspot.com/236480043/diff/40001/python/convertrules.py#newcode3751
python/convertrules.py:3751: str = re.sub (r'\bwhiteout\b',
'whiteout-box', str)
On 2015/06/02 01:44:17, pwm wrote:
I suppose the most robust approach would be to have more than one rule
to match:

Separate rules or a pattern that catches the prefixes-- whatever works
to update the LilyPond input without changing comments about the
whiteout.

And be a bit defensive against cases that you can imagine.  You do not
want to convert whiteout-box -> whiteout-box-box, and to be thorough you
might want to catch uses with no spaces like \markup\whiteout1 ,
although with the new \whiteout being an improvement over the old you
can err on the side of being conservative.

Scheme functions that do not appear in the docs, such as
'stencil-whiteout', probably do not need convert-ly rules, but if the
conversion is easy to do without false-positives it should be fine.

https://codereview.appspot.com/236480043/diff/40001/scm/define-grob-properties.scm
File scm/define-grob-properties.scm (right):

https://codereview.appspot.com/236480043/diff/40001/scm/define-grob-properties.scm#newcode1147
scm/define-grob-properties.scm:1147: equivalent to a value of 3.
Usually #f by default.")
The 'boolean-or-number' parameter made sense for getting two types of
behavior through one parameter, but it is unusual to have #t be a
synonym for 3.  '3' is easier to type than '##t'.

If this is a backward-compatibility help for people whose fingers know
\override Xx #'whiteout = ##t , it would be less mysterious to say "For
compatibility with former behavior (now available with
@code{whiteout-box}) the value #t is treated as 3.0."

Isn't it just "multiple of the staff-line thickness"? That is, if you
#(set-global-staff-size 5) doesn't the white-out stay relatively
thicker, to match the relatively thicker staff-lines?

https://codereview.appspot.com/236480043/diff/40001/scm/define-markup-commands.scm
File scm/define-markup-commands.scm (right):

https://codereview.appspot.com/236480043/diff/40001/scm/define-markup-commands.scm#newcode710
scm/define-markup-commands.scm:710: #:properties ((thickness 4))
I just guessed the number 3 staffline thicknesses, and apparently typo'd
it as 4.  If you like that default, fine.

https://codereview.appspot.com/236480043/diff/40001/scm/define-markup-commands.scm#newcode720
scm/define-markup-commands.scm:720: \\whiteout whiteout
  \\override #'(thickness . 1.5) \\whiteout whiteout
otherwise there is no indication of what thickness does,
and the default thickness around 'whiteout' looks jagged on the black
background.

https://codereview.appspot.com/236480043/



reply via email to

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