[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Horizontal alingment of lyrics hyphens?
From: |
Knut Petersen |
Subject: |
Re: Horizontal alingment of lyrics hyphens? |
Date: |
Sun, 25 Sep 2016 08:45:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
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
WhiteoutOrig.jpg
Description: JPEG image
WhiteoutImproved.jpg
Description: JPEG image
- Re: Horizontal alingment of lyrics hyphens?, (continued)
- Re: Horizontal alingment of lyrics hyphens?, Knut Petersen, 2016/09/27
- Re: Horizontal alingment of lyrics hyphens?, Simon Albrecht, 2016/09/27
- Re: Horizontal alingment of lyrics hyphens?, Urs Liska, 2016/09/27
- Re: Horizontal alingment of lyrics hyphens?, David Kastrup, 2016/09/27
- Re: Horizontal alingment of lyrics hyphens?, Urs Liska, 2016/09/27
- Re: Horizontal alingment of lyrics hyphens?, Knut Petersen, 2016/09/28
- Re: Horizontal alignment of lyrics hyphens?, Simon Albrecht, 2016/09/28
- Re: Horizontal alignment of lyrics hyphens?, David Kastrup, 2016/09/28
- Re: Horizontal alignment of lyrics hyphens?, Simon Albrecht, 2016/09/28
Re: Horizontal alingment of lyrics hyphens?, Simon Albrecht, 2016/09/20