lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chordmode and markup


From: Thomas Morley
Subject: Re: chordmode and markup
Date: Thu, 7 Apr 2016 01:08:33 +0200

2016-04-07 0:55 GMT+02:00 Simon Albrecht <address@hidden>:
> On 07.04.2016 00:49, Thomas Morley wrote:
>>>>
>>>> 3 Would it be possible to write in the compiler error a hint for the
>>>> user?
>>>> Something like:
>>>>
>>>>      Error: markup outside of text script or \lyricmode
>>>>        \chordmode {c} _\markup {test}
>>>>
>>>>      Maybe you want to do
>>>>        \chordmode{c _\markup {test}}
>>>>      ?
>>>>
>>> If I run the wrong example, I get
>>> document.ly:3:18: error: markup outside of text script or \lyricmode
>>>    \chordmode {c}
>>>                   \markup {test}
>>> and no markup shows up. I’d say that’s enough hints.
>>>
>>> Best, Simon
>>
>> And how to distinguish from
>> \chordmode {c} \markup {test}
>> which is viable code?
>> So no error at all.
>> Guessing what a user may have intended is very difficult task.
>
>
> Who did you direct that to? I wanted to confirm that the warning now given
> was enough.
>
> Best, Simon

Hi Simon,

I agree the warning is enough, but wanted to add, even if we would
consider a more verbose and detailed error massage the cause of the
error might not be guessable that easy as Gianmaria suggests.

Sorry, not being clear enough,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]