Re: Escaping text in title and composer?

2008-10-28 Thread Myron Marston
I spent an hour or two looking through the docs before emailing the mailing list, but I'll take another look. On Mon, Oct 27, 2008 at 11:37 PM, Graham Percival <[EMAIL PROTECTED]>wrote: > I have a radical suggestion: look at the docs. > > Make sure you study the 2.11 docs, not the 2.10 stuff. > -

Re: Escaping text in title and composer?

2008-10-27 Thread Graham Percival
I have a radical suggestion: look at the docs. Make sure you study the 2.11 docs, not the 2.10 stuff. - Graham On Mon, Oct 27, 2008 at 09:20:36AM -0700, Myron Marston wrote: > Don't worry about the web application part--my only point there was that I > don't just need to fix the title for this pa

Re: Escaping text in title and composer?

2008-10-27 Thread Trevor Daniels
7, 2008 4:20 PM Subject: Re: Escaping text in title and composer? Don't worry about the web application part--my only point there was that I don't just need to fix the title for this particular .ly file; I need to write a function to escape (or maybe remove) characters that will prev

Re: Definition of a word, was: Escaping text in title and composer?

2008-10-27 Thread Bailey James E.
I don't know if it's true for all markup, but 2.1.2 has the definition for a word in lyrics mode, and it sounds like it's similar: The full definition of a word start in Lyrics mode is somewhat more complex. A word in Lyrics mode begins with: an alphabetic character, _, ?, !, :, ', the co

Re: Escaping text in title and composer?

2008-10-27 Thread Myron Marston
Don't worry about the web application part--my only point there was that I don't just need to fix the title for this particular .ly file; I need to write a function to escape (or maybe remove) characters that will prevent lilypond from parsing the .ly files. I can deal with these characters on a c

Re: Escaping text in title and composer?

2008-10-27 Thread Bailey James E.
title and composer accept normal text markups. I know nothing about web applications, but in a normal lilypond file, if I wanted the composer to be, say, "me\you", I would make it composer = \markup "me \you". Am 27.10.2008 um 03:33 schrieb Myron Marston: I have a web application (http://fra

Re: Escaping text in title and composer?

2008-10-26 Thread Gilles Sadowski
Hi. > [...] I can easily change " to \" > in the text, but perhaps there are other characters that will cause lilypond > to fail. As a first step, I'd suggest to filter out (or escape) anything that your program cannot handle. Languages usually used for web development provide libraries for regul

Escaping text in title and composer?

2008-10-26 Thread Myron Marston
I have a web application (http://fractalcomposer.com) that uses lilypond to generate the notation for user's compositions. The user enters a title and their name when they submit the piece to the library at the website, and these fields are put directly in the .ly file as the title and composer of