[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: abs-fontsize available for all text grobs
From: |
David Kastrup |
Subject: |
Re: feature request: abs-fontsize available for all text grobs |
Date: |
Tue, 23 Jul 2013 10:25:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Jan-Peter Voigt <address@hidden> writes:
> Hello David,
> thanks for your hint :)
>
> Hello Kieren,
> how do you like this solution?
> It uses an engraver which acknowledges text-interface and
> font-interface (maybe we only need font-interface)
> and then wraps found markups in 'text and 'long-text (for
> InstrumentName grob) in (markup #:abs-fontsize ... /text/)
> It uses a property 'abs-font-size ... now lilypond complains about the
> unknown grob-property, but that doesn't matter for now ;)
>
> * For instrumentName one could use different sizes for the short and
> the long version.
> * If we only need to acknowledge the font-interface, this little piece
> could be simplified a little bit.
> * We also could use the existing font-size property and use another
> method to "mark" it an absolute size
Shrug. You can just have your acknowledger check for font-size being a
procedure and replace it by the result from the respective call.
And then you just use your originally failing code. No need to invent
yet another internal interface, just make your original code work.
If you want an interface to the internals, it can look like
\allowGrobCallback font-interface.font-size
as a context mod. Something like
allowGrobCallback =
#(define-scheme-function (parser location syms) (symbol-list?)
#{ \with { \consists #(make-engraver ...
--
David Kastrup
- Re: feature request: abs-fontsize available for all text grobs, (continued)
- Re: feature request: abs-fontsize available for all text grobs, Kieren MacMillan, 2013/07/16
- Message not available
- Message not available
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, David Kastrup, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, David Kastrup, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/22
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/23
- Re: feature request: abs-fontsize available for all text grobs,
David Kastrup <=
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/23
- Re: feature request: abs-fontsize available for all text grobs, David Kastrup, 2013/07/23
- Re: feature request: abs-fontsize available for all text grobs, Kieren MacMillan, 2013/07/29
- Re: feature request: abs-fontsize available for all text grobs, David Kastrup, 2013/07/29
- Re: feature request: abs-fontsize available for all text grobs, Jan-Peter Voigt, 2013/07/30