Quoted text in markup line

2019-12-27 Thread Mike Kilmer
Not finding an example in the docs 
<http://lilypond.org/doc/v2.18/Documentation/notation/writing-text>.

Can someone tell me how to include “quoted text” in `\markup { \line { \”like 
this\”? }}`?

\version "2.18.2"

\header {
title = "Quotes in Markup Line"
}


\markup {
\column {
\line { \null }
\line { Single quotes are easy, like 'this'. }
\line { I want double quotes. }
\line { This creates no "quotes". }
\line { This doesn't \"Work\".  }
\line { Neither does `"this`".  }
\line { This makes a ‘“little mess'".  }
}
}

Thanks much. Happy Holidays. The days are getting lighter.

Mike

Re: Quoted text in markup line

2019-12-27 Thread David Kastrup


Please do _not_ reply to other posts when creating a new topic.  Your
mail client creates headers associating that mail with the thread which
you replied to, making a mess of the thread display for most people.

Mike Kilmer  writes:

> Not finding an example in the docs 
> <http://lilypond.org/doc/v2.18/Documentation/notation/writing-text>.
>
> Can someone tell me how to include “quoted text” in `\markup { \line { \”like 
> this\”? }}`?
>
> \version "2.18.2"
>
> \header {
>   title = "Quotes in Markup Line"
> }
>
>
> \markup {
> \column {
> \line { \null }
> \line { Single quotes are easy, like 'this'. }
> \line { I want double quotes. }
> \line { This creates no "quotes". }
>   \line { This doesn't \"Work\".  }
>   \line { Neither does `"this`".  }
>   \line { This makes a ‘“little mess'".  }
> }
> }
>
> Thanks much. Happy Holidays. The days are getting lighter.

\line { This does "\"work\"." }

Bit of a nuisance, but within double quotes, \" creates a double quote mark.

-- 
David Kastrup



Re: Quoted text in markup line

2019-12-27 Thread Thomas Morley
Am Fr., 27. Dez. 2019 um 18:44 Uhr schrieb Mike Kilmer :

> Can someone tell me how to include “quoted text” in `\markup { \line { \”like 
> this\”? }}`?

\markup "Inside of strings,  \" needs to be escaped by \\"

In native guile there are some more characters which needs escaping, though.

> The days are getting lighter.

Indeed :)

Best,
  Harm



Re: Quoted text in markup line

2019-12-27 Thread Mike Kilmer
Thank you and apologies for inadvertently hijacking a thread.

Peace.

> On Dec 27, 2019, at 11:55 AM, David Kastrup  wrote:
> 
> 
> Please do _not_ reply to other posts when creating a new topic.  Your
> mail client creates headers associating that mail with the thread which
> you replied to, making a mess of the thread display for most people.
> 
> Mike Kilmer  writes:
> 
>> Not finding an example in the docs 
>> <http://lilypond.org/doc/v2.18/Documentation/notation/writing-text>.
>> 
>> Can someone tell me how to include “quoted text” in `\markup { \line { 
>> \”like this\”? }}`?
>> 
>> \version "2.18.2"
>> 
>> \header {
>>  title = "Quotes in Markup Line"
>> }
>> 
>> 
>> \markup {
>>\column {
>>\line { \null }
>>\line { Single quotes are easy, like 'this'. }
>>\line { I want double quotes. }
>>\line { This creates no "quotes". }
>>  \line { This doesn't \"Work\".  }
>>  \line { Neither does `"this`".  }
>>  \line { This makes a ‘“little mess'".  }
>>}
>> }
>> 
>> Thanks much. Happy Holidays. The days are getting lighter.
> 
> \line { This does "\"work\"." }
> 
> Bit of a nuisance, but within double quotes, \" creates a double quote mark.
> 
> -- 
> David Kastrup




Re: Quoted text in markup line

2019-12-27 Thread Kieren MacMillan
Hi Mike,

I always prefer typographer’s quotes

\markup \line { "“like this”" }

and it’s a bonus that they can be stored right in the code/file without any 
extra fuss.  =)

Hope that helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info




Re: Quoted text in markup line

2019-12-27 Thread Simon Albrecht

On 27.12.19 19:52, Kieren MacMillan wrote:

I always prefer typographer’s quotes

 \markup \line { "“like this”" }

and it’s a bonus that they can be stored right in the code/file without any 
extra fuss.  =)



That is, even the ‘programming quotes’ in the code example by Kieren 
wouldn’t be necessary.


How best to input typographer’s quotes depends on your setup (keyboard 
layout, editor, OS…).


Best, Simon




Re: Quoted text in markup line

2019-12-27 Thread David Kastrup
Simon Albrecht  writes:

> On 27.12.19 19:52, Kieren MacMillan wrote:
>> I always prefer typographer’s quotes
>>
>>  \markup \line { "“like this”" }
>>
>> and it’s a bonus that they can be stored right in the code/file
>> without any extra fuss.  =)
>
>
> That is, even the ‘programming quotes’ in the code example by Kieren
> wouldn’t be necessary.

"“like this”" is one word, “like this” are two words.  That's important
in lyrics mode and in some other respects like line-wrapping.

-- 
David Kastrup