Hi Simon!
I use the following in my standard style sheet:
\override LyricExtender.whiteout-style = #'outline
I recommend to use whiteout-box here as it will translate to much smaller
ps/pdf code and should give identical results.
\override LyricHyphen.whiteout-style = #'outline
\override LyricHyphen.whiteout = 1.4
whiteout-box obviously isn't an option here. But I prefer higher values for
LyricHyphen.whiteout, and
stencil-whitout-outline is broken if whiteout is big compared to the height of
the object, see attached
file WhiteoutOrig.jpg where the whiteout areas are marked red.
There is an easy fix for the problem: Increase angle-increments and
radial-increments in scm/stencil.scm.
For a higher LyricHyphen.whiteout of 4 I recommend the following changes:
Original:
(define*-public (stencil-whiteout-outline
stil #:optional (thickness 0.3) (color white)
(angle-increments 16) (radial-increments 1))
Edited
(define*-public (stencil-whiteout-outline
stil #:optional (thickness 0.3) (color white)
(angle-increments 32) (radial-increments 3))
See WhiteoutImproved.jpg to verify that stencil-whiteout-outline works
correctly for hyphens after this change.
BUT: Using stencil-whiteout-outline will dramatically increase file size:
example.pdf without whiteout: 113.185 bytes
The same source with LyricHyphen.whiteout=outline 160.400 bytes
The same source with edited LyricHyphen.whiteout=outline 342.336 bytes
I think we need some optimization here, but LyricHyphen needs a serious
overhauling anyway.
Here it would help a lot if _every_ hyphen would be a grob as then we could use
whiteout-box.
cu,
Knut
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user