[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Markup functions and punctuation in lyrics
From: |
David Kastrup |
Subject: |
Re: Markup functions and punctuation in lyrics |
Date: |
Sun, 31 Oct 2021 23:02:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"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