Three example pdfs that demonstrate hyphens in multiple-stanza songs without
and with fuzzy-metrics enabled.
Sample: Hugo Distler, Die Tochter der Heide, Fassung 2
PDFs with fuzzy-metrics disabled (*not-fuzzy*) or fuzzy-metrics enabled and
dash-period of the number given behing "fuzzy".
Attachments:
-
[DieTochterDerHeideFassungZwei_20171003-not-fuzzy-7.pdf](https://sourceforge.net/p/testlilyissues/issues/_discuss/thread/1eec6c30/d9bd/attachment/DieTochterDerHeideFassungZwei_20171003-not-fuzzy-7.pdf)
(82.2 kB; application/pdf)
-
[DieTochterDerHeideFassungZwei_20171003-fuzzy-7.pdf](https://sourceforge.net/p/testlilyissues/issues/_discuss/thread/1eec6c30/d9bd/attachment/DieTochterDerHeideFassungZwei_20171003-fuzzy-7.pdf)
(82.8 kB; application/pdf)
-
[DieTochterDerHeideFassungZwei_20171003-fuzzy-11.pdf](https://sourceforge.net/p/testlilyissues/issues/_discuss/thread/1eec6c30/d9bd/attachment/DieTochterDerHeideFassungZwei_20171003-fuzzy-11.pdf)
(82.0 kB; application/pdf)
---
** [issues:#5210] LyricHyphen improvements: Accept hyphen markup,
fuzzy-metrics**
**Status:** New
**Created:** Wed Oct 04, 2017 11:37 AM UTC by Knut Petersen
**Last Updated:** Wed Oct 04, 2017 11:37 AM UTC
**Owner:** Knut Petersen
LyricHyphen: Use markup as hyphen, introduce 'fuzzy-metrics
We use a LyricHyphen grob constructed from rounded-boxes.
That is fine with a lot of fonts, but it is ugly if you use
e.g. Minion, a font that resembles handwriting, or a font
of the Fraktur family.
If a song with multiple stanzas is engraved, the position of
hyphens is far from optimal, especially at the start and end
of lines.
This patch
- allows to use an arbitrary markup instead of the default
rounded-box-dash that was used in lilypond for ages.
In the most simple case, if you want to use the hyphen
of the lyric font, simply set 'text to "-".
As it is impossible to shorten a markup, 'minimum-distance
is ignored if it is below the natural width of the markup
\+ 2 * padding.
- implements a booloean property 'fuzzy-metrics. If set to #t,
'dash-period is only taken as a start value for calculating
the number of individual hyphens to use. That value might
be increased if the space between the borders and the first
hyphen is big, and it will be increased if the result is an
even number of hyphens. With this algorithm it is probable
that the small variations of the length of syllables in
stanzas at a given moment will not change the number of
hyphens choosen. As long as the number of hyphens used is
equal, the output is much nicer than with the old code,
A single hyphen will be centered, otherwise the distance
between the first/last hyphen and the adjacent syllable will
be ('padding + 'length) and a period that distributes the
other hyphens evenly is used. If we are at a line break,
the adjacent hyphen will be separated from the border only
by 'padding.
As long as neither 'text nor 'fuzzy-metrics is used, the output
is identical or similar to the old style. The number of hyphens
used might change as padding is always obeyed, it might change
as we reserve enough space at the end of a line for a shortend
rounded-box hyphen. That way a hyphen never will stick out to
the right of a system.
We also silently correct some minor/coding problems:
- A 'length below 'minimum-length will be interpreted
as'minimum-length.
- A 'dash-period below 'length will be ignored and
'length*1.5 will be used. That's ugly but much
easier to spot than a missing hyphen. At other places
a negative dash-period means "do not print", but here
this is nonsense. If you don't want a dash, you should
omit "--".
- 'padding might be 0.0, but a negative 'padding is
ignored and 0.07 is used instead.
- the defaults used with robust_scm2double were changed
according to the defaults defined in define-grobs.scm.
---
Sent from sourceforge.net because testlilyissues-a...@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is
a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Testlilyissues-auto mailing list
testlilyissues-a...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto