RE: small caps in title
Perfect! In addition to answering my original question, that even lets me use "real" small caps, which is certainly my preference. Many thanks -- that is super helpful. Jay -Original Message- From: lilypond-user On Behalf Of Xavier Scheuer Sent: Tuesday, October 19, 2021 11:08 AM To: t...@projectivespace.com Cc: lilypond-user Mailinglist Subject: Re: small caps in title On Tue, 19 Oct 2021 at 19:49, Jean Abou Samra mailto:j...@abou-samra.fr> > wrote: > > > Hi Jay, > > This is an old bug; try the workaround proposed at > > https://gitlab.com/lilypond/lilypond/-/issues/1482#note_339750124 Hello, And if the font you want to use has real small caps you can use \override #'(font-features . ("smcp")) Cheers, Xavier -- Xavier Scheuer mailto:x.sche...@gmail.com> >
Re: small caps in title
On Tue, 19 Oct 2021 at 19:49, Jean Abou Samra wrote: > > > Hi Jay, > > This is an old bug; try the workaround proposed at > > https://gitlab.com/lilypond/lilypond/-/issues/1482#note_339750124 Hello, And if the font you want to use has real small caps you can use \override #'(font-features . ("smcp")) Cheers, Xavier -- Xavier Scheuer
RE: small caps in title
Many thanks for your prompt and helpful reply -- the workaround worked perfectly (once I of course changed the \smallCaps in my original question to \caps). Jay -Original Message- From: lilypond-user On Behalf Of Jean Abou Samra Sent: Tuesday, October 19, 2021 10:49 AM To: t...@projectivespace.com; lilypond-user@gnu.org Subject: Re: small caps in title Le 19/10/2021 à 19:42, t...@projectivespace.com a écrit : > I have a quick question about formatting a title in small caps in Lilypond. > Although I can format scoreTitleMarkup with the usual \bold and \italic for > markups, I am having trouble getting \smallCaps (or \caps) to work with a > title retrieved by \fromproperty. The \smallCaps works fine elsewhere in the > scoreTitleMarkup, but not on the title that I am retrieving with > \fromproperty #'header:title. A tiny example is below (between the equals > signs). I appreciate any assistance that anyone can provide. > > I do know that I could provide the \smallCaps markup when I set the title, > but I may want to display the title in different ways in different parts of > the score, so I don't want to hard code the formatting into its definition. > > And since this is my first post to the list, I'd also like to thank everyone > on the Lilypond team for producing and maintaining such an amazing scoring > tool, and also those helpful people who reply to people's questions on the > lilypond-user list. I have learned a lot from reading the emails that I get > on this list! > > Thanks, > > > Jay > > = > \version "2.22.1" > > \paper { >scoreTitleMarkup = \markup { > \fill-line { \bold \italic \fromproperty #'header:title >\smallCaps "Small caps work" >\smallCaps \fromproperty #'header:title > } >} > } > > \header { title = "The title" } > > { a b c } > === Hi Jay, This is an old bug; try the workaround proposed at https://gitlab.com/lilypond/lilypond/-/issues/1482#note_339750124 Kind regards, Jean
Re: small caps in title
Le 19/10/2021 à 19:42, t...@projectivespace.com a écrit : I have a quick question about formatting a title in small caps in Lilypond. Although I can format scoreTitleMarkup with the usual \bold and \italic for markups, I am having trouble getting \smallCaps (or \caps) to work with a title retrieved by \fromproperty. The \smallCaps works fine elsewhere in the scoreTitleMarkup, but not on the title that I am retrieving with \fromproperty #'header:title. A tiny example is below (between the equals signs). I appreciate any assistance that anyone can provide. I do know that I could provide the \smallCaps markup when I set the title, but I may want to display the title in different ways in different parts of the score, so I don't want to hard code the formatting into its definition. And since this is my first post to the list, I'd also like to thank everyone on the Lilypond team for producing and maintaining such an amazing scoring tool, and also those helpful people who reply to people's questions on the lilypond-user list. I have learned a lot from reading the emails that I get on this list! Thanks, Jay = \version "2.22.1" \paper { scoreTitleMarkup = \markup { \fill-line { \bold \italic \fromproperty #'header:title \smallCaps "Small caps work" \smallCaps \fromproperty #'header:title } } } \header { title = "The title" } { a b c } === Hi Jay, This is an old bug; try the workaround proposed at https://gitlab.com/lilypond/lilypond/-/issues/1482#note_339750124 Kind regards, Jean
Re: Small caps not working in bookTitleMarkup?
On 10/29/2017 12:09 PM, Patrick Hubers wrote: Op 29-10-2017 om 16:48 schreef Malte Meyn: [...] I just found out that this is a know bug: https://sourceforge.net/p/testlilyissues/issues/1482/ There you can also find a workaround. Ah, thanks for that! I'll see if I can get it to work with the options mentioned there. Regards, Patrick Hi Patrick, I believe if you use a font that has small caps it should work just fine. IIRC it's only an issue if the font itself doesn't have a smallcaps. Good luck with the workaround! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Small caps not working in bookTitleMarkup?
Op 29-10-2017 om 16:48 schreef Malte Meyn: [...] I just found out that this is a know bug: https://sourceforge.net/p/testlilyissues/issues/1482/ There you can also find a workaround. Ah, thanks for that! I'll see if I can get it to work with the options mentioned there. Regards, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Small caps not working in bookTitleMarkup?
Op 29-10-2017 om 16:41 schreef Malte Meyn: Am 29.10.2017 um 15:50 schrieb Patrick Hubers: I'm trying to create titles in small caps by modifying the bookTitleMarkup in my stylesheet. For some reason, all font modifiers (\bold, \italic etc.) seem to work, except for \caps or \smallCaps. Could you please give a minimal example code? Sure, I was already preparing one for follow up. Attached are a score "test.ly" and a stylesheet "test.ily" that's included from the score. Adding \caps (or \smallCaps) to the title in the score gives the desired output, adding it to the bookTitleMarkup does nothing. Any insights appreciated! Regards, Patrick \version "2.19.32" \include "test_stylesheet.ily" \header { title = \markup \caps "These should be caps" } \score { \relative c' { c d e c } } \version "2.19.32" \paper { bookTitleMarkup = \markup { \caps \bold \fromproperty #'header:title } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Small caps not working in bookTitleMarkup?
Am 29.10.2017 um 16:41 schrieb Malte Meyn: Am 29.10.2017 um 15:50 schrieb Patrick Hubers: Hi, I'm trying to create titles in small caps by modifying the bookTitleMarkup in my stylesheet. For some reason, all font modifiers (\bold, \italic etc.) seem to work, except for \caps or \smallCaps. […] Am I doing something wrong, have I missed something in the docs or did I encounter a bug? Could you please give a minimal example code? I just found out that this is a know bug: https://sourceforge.net/p/testlilyissues/issues/1482/ There you can also find a workaround. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Small caps not working in bookTitleMarkup?
Am 29.10.2017 um 15:50 schrieb Patrick Hubers: Hi, I'm trying to create titles in small caps by modifying the bookTitleMarkup in my stylesheet. For some reason, all font modifiers (\bold, \italic etc.) seem to work, except for \caps or \smallCaps. […] Am I doing something wrong, have I missed something in the docs or did I encounter a bug? Could you please give a minimal example code? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Re: small caps
Thanks for the advice everyone. I've managed to bend it to my will! Craig On Sat Jan 17 2015 at 5:14:19 AM Nick Payne wrote: > Accidentally sent this only to the OP rather than to the list... > > Forwarded Message ---- Subject: Re: small caps Date: Fri, > 16 Jan 2015 20:55:30 +1100 From: Nick Payne > To: Craig Dabelstein > > > I think you have encountered bug #1482: > https://code.google.com/p/lilypond/issues/detail?id=1482 > > On 16/01/2015 20:00, Craig Dabelstein wrote: > > Hi Shane, > > \version "2.19.11" > > Even with \smallCaps (how did I miss that!?!!?) the test stays the same. > Bold and Large are both working but not the small caps. > > Craig > > > On Fri Jan 16 2015 at 4:39:22 PM Shane Brandes > wrote: > >> Which version are you using? and is it not \smallcaps that you need to >> issue? Also does the font actually have small caps natively? >> >> Shane >> >> On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein >> wrote: >> > Hi List, >> > >> > Can anyone tell me why I can't get small caps working with this code? >> > >> > Many thanks, >> > >> > Craig >> > >> > scoreTitleMarkup = \markup { >> > \column { >> > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } >> > \fill-line { >> > \large \bold \caps \fromproperty #'header:piece >> > } >> > } >> > } >> > } >> > >> > ___ >> > lilypond-user mailing list >> > lilypond-user@gnu.org >> > https://lists.gnu.org/mailman/listinfo/lilypond-user >> > >> > > > ___ > lilypond-user mailing > listlilypond-user@gnu.orghttps://lists.gnu.org/mailman/listinfo/lilypond-user > > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Fwd: Re: small caps
Accidentally sent this only to the OP rather than to the list... Forwarded Message Subject:Re: small caps Date: Fri, 16 Jan 2015 20:55:30 +1100 From: Nick Payne To: Craig Dabelstein I think you have encountered bug #1482: https://code.google.com/p/lilypond/issues/detail?id=1482 On 16/01/2015 20:00, Craig Dabelstein wrote: Hi Shane, \version "2.19.11" Even with \smallCaps (how did I miss that!?!!?) the test stays the same. Bold and Large are both working but not the small caps. Craig On Fri Jan 16 2015 at 4:39:22 PM Shane Brandes <mailto:sh...@grayskies.net>> wrote: Which version are you using? and is it not \smallcaps that you need to issue? Also does the font actually have small caps natively? Shane On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein mailto:craig.dabelst...@gmail.com>> wrote: > Hi List, > > Can anyone tell me why I can't get small caps working with this code? > > Many thanks, > > Craig > > scoreTitleMarkup = \markup { > \column { > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } > \fill-line { > \large \bold \caps \fromproperty #'header:piece > } > } > } > } > > ___ > lilypond-user mailing list > lilypond-user@gnu.org <mailto:lilypond-user@gnu.org> > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
\fontCaps attempts to access the fonts smcp flavor the other two methods are hocus pocus relying on scaling as apposed to a true small caps set. Shane On Fri, Jan 16, 2015 at 8:52 AM, Kevin Barry wrote: >> "\caps" and "\smallCaps" should work with any font since they simply >> iterate through the string and reduce the font size by a scaling factor -2 >> for all characters except those already in upper-case. > > > Does this mean that lilypond doesn't use the true small caps that many fonts > include? > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
> > "\caps" and "\smallCaps" should work with any font since they simply > iterate through the string and reduce the font size by a scaling factor -2 > for all characters except those already in upper-case. > Does this mean that lilypond doesn't use the true small caps that many fonts include? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
Kevin, "\caps" and "\smallCaps" should work with any font since they simply iterate through the string and reduce the font size by a scaling factor -2 for all characters except those already in upper-case. The only function, related to this conversation thread, that cares about the actual font is "\fontCaps", in which it actually sets a font property 'font-shape to 'caps. If the offending font has no such property, it reverts to the default normal, non-bold, non-italic font. - Abraham On Fri, Jan 16, 2015 at 6:32 AM, Kevin Barry [via Lilypond] wrote: > Dear Craig, > > Can you provide an example that compiles on its own? A simplified > version of your code is working for me. Also, what font are you using? > > Kevin > > On Fri, Jan 16, 2015 at 9:00 AM, Craig Dabelstein <[hidden email]> > wrote: >> Hi Shane, >> >> \version "2.19.11" >> >> Even with \smallCaps (how did I miss that!?!!?) the test stays the >> same. Bold and Large are both working but not the small caps. >> >> Craig >> >> >> On Fri Jan 16 2015 at 4:39:22 PM Shane Brandes <[hidden email]> >> wrote: >>> Which version are you using? and is it not \smallcaps that you need >>> to >>> issue? Also does the font actually have small caps natively? >>> >>> Shane >>> >>> On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein >>> <[hidden email]> wrote: >>> > Hi List, >>> > >>> > Can anyone tell me why I can't get small caps working with this >>> code? >>> > >>> > Many thanks, >>> > >>> > Craig >>> > >>> > scoreTitleMarkup = \markup { >>> > \column { >>> > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace >>> #1 } >>> > \fill-line { >>> > \large \bold \caps \fromproperty #'header:piece >>> > } >>> > } >>> > } >>> > } >>> > >>> > ___ >>> > lilypond-user mailing list >>> > [hidden email] >>> > https://lists.gnu.org/mailman/listinfo/lilypond-user >>> > >> >> ___ >> lilypond-user mailing list >> [hidden email] >> https://lists.gnu.org/mailman/listinfo/lilypond-user >> > > > ___ > lilypond-user mailing list > [hidden email] > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > If you reply to this email, your message will be added to the > discussion below: > http://lilypond.1069038.n5.nabble.com/small-caps-tp170540p170555.html > To start a new topic under User, email > ml-node+s1069038n...@n5.nabble.com > To unsubscribe from Lilypond, click here. > NAML -- View this message in context: http://lilypond.1069038.n5.nabble.com/small-caps-tp170540p170558.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
Dear Craig, Can you provide an example that compiles on its own? A simplified version of your code is working for me. Also, what font are you using? Kevin On Fri, Jan 16, 2015 at 9:00 AM, Craig Dabelstein < craig.dabelst...@gmail.com> wrote: > Hi Shane, > > \version "2.19.11" > > Even with \smallCaps (how did I miss that!?!!?) the test stays the same. > Bold and Large are both working but not the small caps. > > Craig > > > On Fri Jan 16 2015 at 4:39:22 PM Shane Brandes > wrote: > >> Which version are you using? and is it not \smallcaps that you need to >> issue? Also does the font actually have small caps natively? >> >> Shane >> >> On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein >> wrote: >> > Hi List, >> > >> > Can anyone tell me why I can't get small caps working with this code? >> > >> > Many thanks, >> > >> > Craig >> > >> > scoreTitleMarkup = \markup { >> > \column { >> > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } >> > \fill-line { >> > \large \bold \caps \fromproperty #'header:piece >> > } >> > } >> > } >> > } >> > >> > ___ >> > lilypond-user mailing list >> > lilypond-user@gnu.org >> > https://lists.gnu.org/mailman/listinfo/lilypond-user >> > >> > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
Craig, \caps is just a short-hand command for \smallCaps, but this situation is obviously a code bug. You CAN put the \caps or \smallCaps in the header variable itself: piece = \markup \smallCaps "Piece" and then it works, but since it seems that you are trying to create a custom title that does this automatically, this solution may not be suitable for you. I'm forwarding this small example to the bugs-list for extermination: %< \version "2.19.11" \paper { scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \large \bold \smallCaps \fromproperty #'header:piece } } } } \header { title = "Title" piece = "Piece" % put the \smallCaps in here and it works } { \repeat unfold 3 { s1 \break } } %<-- - Abraham On Fri, Jan 16, 2015 at 2:00 AM, Craig Dabelstein [via Lilypond] wrote: > Hi Shane, > > \version "2.19.11" > > Even with \smallCaps (how did I miss that!?!!?) the test stays the > same. Bold and Large are both working but not the small caps. > > Craig > > > On Fri Jan 16 2015 at 4:39:22 PM Shane Brandes <[hidden email]> wrote: >> Which version are you using? and is it not \smallcaps that you need >> to >> issue? Also does the font actually have small caps natively? >> >> Shane >> >> On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein >> <[hidden email]> wrote: >> > Hi List, >> > >> > Can anyone tell me why I can't get small caps working with this >> code? >> > >> > Many thanks, >> > >> > Craig >> > >> > scoreTitleMarkup = \markup { >> > \column { >> > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 >> } >> > \fill-line { >> > \large \bold \caps \fromproperty #'header:piece >> > } >> > } >> > } >> > } >> > >> > ___ >> > lilypond-user mailing list >> > [hidden email] >> > https://lists.gnu.org/mailman/listinfo/lilypond-user >> > > > ___ > lilypond-user mailing list > [hidden email] > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > If you reply to this email, your message will be added to the > discussion below: > http://lilypond.1069038.n5.nabble.com/small-caps-tp170540p170544.html > To start a new topic under User, email > ml-node+s1069038n...@n5.nabble.com > To unsubscribe from Lilypond, click here. > NAML -- View this message in context: http://lilypond.1069038.n5.nabble.com/small-caps-tp170540p170552.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
Hi Shane, \version "2.19.11" Even with \smallCaps (how did I miss that!?!!?) the test stays the same. Bold and Large are both working but not the small caps. Craig On Fri Jan 16 2015 at 4:39:22 PM Shane Brandes wrote: > Which version are you using? and is it not \smallcaps that you need to > issue? Also does the font actually have small caps natively? > > Shane > > On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein > wrote: > > Hi List, > > > > Can anyone tell me why I can't get small caps working with this code? > > > > Many thanks, > > > > Craig > > > > scoreTitleMarkup = \markup { > > \column { > > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } > > \fill-line { > > \large \bold \caps \fromproperty #'header:piece > > } > > } > > } > > } > > > > ___ > > lilypond-user mailing list > > lilypond-user@gnu.org > > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: small caps
Which version are you using? and is it not \smallcaps that you need to issue? Also does the font actually have small caps natively? Shane On Fri, Jan 16, 2015 at 12:54 AM, Craig Dabelstein wrote: > Hi List, > > Can anyone tell me why I can't get small caps working with this code? > > Many thanks, > > Craig > > scoreTitleMarkup = \markup { > \column { > \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } > \fill-line { > \large \bold \caps \fromproperty #'header:piece > } > } > } > } > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user