Re: \concat markup command

2006-11-29 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: >> Can you push this change after adding it to one of the markup >> regtests? > > Done. Shall I prepare an entry for the NEWS file also? I think the feature is too minor to put in the NEWS file, but if you think otherwise -- Han-Wen Nienhuys - [EMAIL PROTECTED]

Re: \concat markup command

2006-11-29 Thread Werner LEMBERG
> Can you push this change after adding it to one of the markup > regtests? Done. Shall I prepare an entry for the NEWS file also? Werner ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-deve

Re: \concat markup command

2006-11-24 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: >> another option is to use fold-left or fold-right (srfi-1 IIRC) to do >> the list looping > > Ok, here's another try. However, look how `result' is set in the > first `let' block -- what about adding safe-car and safe-cdr (on the > C++ level) which don't signal an erro

Re: \concat markup command

2006-11-24 Thread Werner LEMBERG
> another option is to use fold-left or fold-right (srfi-1 IIRC) to do > the list looping Ok, here's another try. However, look how `result' is set in the first `let' block -- what about adding safe-car and safe-cdr (on the C++ level) which don't signal an error if its argument is the empty lis

Re: \concat markup command

2006-11-24 Thread Werner LEMBERG
> > Good question. Perhaps `\concat { f i }' should be really > > identical to `fi', contrary to \line with word-space set to > > zero... > > It's your call. You could try to inspect the arguments, and if they > are strings or simple markups, concatenate the strings. OK, here it is. Please com

Re: \concat markup command

2006-11-24 Thread Werner LEMBERG
> This is unschemey. Ha! It took me *hours* to get this small snippet right :-( > I think it's better to use a > a functional approach. Will have a look. However, my solution works quite fine, and I probably don't have enough time to get it `right'. Werner

Re: \concat markup command

2006-11-24 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: >>> Good question. Perhaps `\concat { f i }' should be really >>> identical to `fi', contrary to \line with word-space set to >>> zero... >> It's your call. You could try to inspect the arguments, and if they >> are strings or simple markups, concatenate the strings. > >

Re: \concat markup command

2006-11-19 Thread Werner LEMBERG
> I've done a closer look now, and I see that your suggestion doesn't > work that well -- make-line-markup accepts only a single argument, > while I need to process a list of markups... Please forget that. I was confused. Werner ___ lilypond-dev

Re: \concat markup command

2006-11-18 Thread Werner LEMBERG
> >>> Isn't this what my command does? What do you mean with > >>> `efficiently'? > >> I mean: use make-line-markup , prepending '((word-space . 0.0)) > >> onto the property list. > > > > Example code, please. I had the impression that changing > > word-space is a global operation... > > each ma

Re: \concat markup command

2006-11-13 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: BTW: What about ligatures? What should \concat { f i } produce? Good question. Perhaps `\concat { f i }' should be really identical to `fi', contrary to \line with word-space set to zero... Han-Wen? It's your call. You could try to inspect the arguments, and if they

Re: \concat markup command

2006-11-12 Thread Werner LEMBERG
> BTW: What about ligatures? What should \concat { f i } produce? Good question. Perhaps `\concat { f i }' should be really identical to `fi', contrary to \line with word-space set to zero... Han-Wen? Werner ___ lilypond-devel mailing list lil

Re: \concat markup command

2006-11-12 Thread Erik Sandberg
On Saturday 11 November 2006 23:53, Han-Wen Nienhuys wrote: > Werner LEMBERG escreveu: > > All markup commands which accept more than a single markup put spaces > > inbetween. However, sometimes this is not useful (for example, just > > look at the bad appearance of the E=mc² -- there is an incorr

Re: \concat markup command

2006-11-12 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: Isn't this what my command does? What do you mean with `efficiently'? I mean: use make-line-markup , prepending '((word-space . 0.0)) onto the property list. Example code, please. I had the impression that changing word-space is a global operation... each markup ge

Re: \concat markup command

2006-11-12 Thread Werner LEMBERG
> > Isn't this what my command does? What do you mean with > > `efficiently'? > > I mean: use make-line-markup , prepending '((word-space . 0.0)) onto > the property list. Example code, please. I had the impression that changing word-space is a global operation... Werner ___

Re: \concat markup command

2006-11-12 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: I thus suggest a command \concat which does the same as \line but without inserting whitespace: Isn't this more efficiently done by setting word-space to 0.0 and interpreting as a line? Isn't this what my command does? What do you mean with `efficiently'? I mean: u

Re: \concat markup command

2006-11-11 Thread Werner LEMBERG
> > I thus suggest a command \concat which does the same as \line but > > without inserting whitespace: > > Isn't this more efficiently done by setting word-space to 0.0 and > interpreting as a line? Isn't this what my command does? What do you mean with `efficiently'? Werner ___

Re: \concat markup command

2006-11-11 Thread Han-Wen Nienhuys
Werner LEMBERG escreveu: All markup commands which accept more than a single markup put spaces inbetween. However, sometimes this is not useful (for example, just look at the bad appearance of the E=mc² -- there is an incorrect space before the superscript 2. I thus suggest a command \concat wh

\concat markup command

2006-11-11 Thread Werner LEMBERG
All markup commands which accept more than a single markup put spaces inbetween. However, sometimes this is not useful (for example, just look at the bad appearance of the E=mc² -- there is an incorrect space before the superscript 2. I thus suggest a command \concat which does the same as \line