[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Markup functions and punctuation in lyrics
From:       David Kastrup <dak () gnu ! org>
Date:       2021-10-31 22:02:14
Message-ID: 87bl34vont.fsf () fencepost ! gnu ! org
[Download RAW message or body]

"R. Padraic Springuel" <rpspringuel@gmail.com> writes:

>> On Oct 18, 2021, at 5:57 PM, David Kastrup <dak@gnu.org> wrote:
>> 
>> I'd lean towards defining \man like in the question and a function \maN
>> that takes the following markup and concatenates it.  That's viciously
>> unclever but sometimes not having to worry whether the computer gets
>> everything right is its own reward.
>
> David, can you elaborate on this suggestion a bit?  \man is only a
> single example of the kind of function I have to write (there are
> similar ones for various pronouns, possessive adjectives, etc.) and so
> I'd like to separate the punctuation handling from the word selection
> (to avoid duplicate code in each function.  I'm working on applying
> that idea to Jean's code, but perhaps your idea is better suited to
> said separation.  Is it anything more elaborate than establishing a
> function which effectively does `\markup \concat { \man, }`?  And if
> not, is there a more succinct way of writing that?

No, that's really all there is to it.  As I said: there may be lots of
cleverer ways.

If the ugliness of juxtaposition is ok, you may use things like

\,\man

for concatenating stuff, too.

-- 
David Kastrup

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic