Missing isnan, isinf?

2006-01-31 Thread Don Blaheta
I'm on OS X 10.3.9, with g++ version 3.3, trying to compile lilypond
from CVS.  Not that I ever got that working in the first place, but it's
failing at a different place from the last time I poked around about a
month ago:

  rm -f ./out/offset.dep; DEPENDENCIES_OUTPUT="./out/offset.dep ./out/offset.o" 
g++ -c  -DHAVE_CONFIG_H  -DNDEBUG -DSTRING_UTILS_INLINED -I./include -I./out 
-I../flower/include -I../flower/./out  -O2 -finline-functions -g -pipe 
-I/sw/include -I/sw/lib/freetype219/include/freetype2   -I/sw/include/pango-1.0 
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 
-I/sw/lib/glib-2.0/include-W -Wall -Wconversion -o out/offset.o offset.cc
  offset.cc: In member function `bool Offset::is_sane() const':
  offset.cc:91: error: `isnan' undeclared (first use this function)
  offset.cc:91: error: (Each undeclared identifier is reported only once for 
each 
 function it appears in.)
  offset.cc:93: error: `isinf' undeclared (first use this function)
  make[1]: *** [out/offset.o] Error 1
  make: *** [all] Error 2

I can't quite figure out why, because flower/offset.cc includes
flower/include/offset.hh, which includes flower/include/real.hh, which
includes /usr/include/math.h, which includes (are you following all
this?) /usr/include/architecture/ppc/math.h, which defines both isnan
and isinf as #define macros.  At least, afaict.  Has anyone else run
into similar problems?

-- 
-=-Don [EMAIL PROTECTED]-=-
All syllogisms have three parts, therefore this is not a syllogism.


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: review new info on file layout

2006-01-31 Thread Erik Sandberg
On Monday 30 January 2006 23.53, Graham Percival wrote:
> On 29-Jan-06, at 10:26 PM, Don Blaheta wrote:
> > Speaking of indents, you need to grep on "indent|ident"; you have a
> > tendency to confuse the two (I noticed an error one direction in 4.2
> > and
> > the other in 5.8).
>
> Thanks.

BTW, is the meaning of the word 'indent' well-known among non-programmers? In 
section 4.1 there's a suggestion "indent your braces" with no further 
explanation. There's a risk that those who understand the sentence, are the 
ones who already knew it's a good idea.


There's also a mistake in 4.5:
  \context Staff = singer {
\context Voice = vocal { \melody }
\lyricsto vocal \new Lyrics { \text }
  }
  \context PianoStaff = piano {
\context Staff = upper { \upper }
\context Staff = lower { \lower }
  }

- The outer braces should be << >> (using {} generates incorrect output)
- The following is a bit misleading:
  \context Staff = singer <<
\context Voice = vocal { \melody }
\lyricsto vocal \new Lyrics { \text }
  >>
The lyrics context is not part of the Staff context, and it might be created 
after the PianoStaff (which typesets it below the PianoStaff).

The correct way would be:

  \context Staff = singer <<
\context Voice = vocal { \melody }
  >>
  \new Lyrics \lyricsto vocal { \text }

(I think there's a minor pedagogical point in saying \new Lyrics before 
\lyricsto, since the \new Lyrics really isn't a relevant argument of the 
music function, and because all other contexts start with context names)

You could of course use \addlyrics instead.

-- 
Erik


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: error in latest CVS

2006-01-31 Thread Erlend Aasland
I also get this error (MacOSX 10.4.4, gcc-4.0.1).Looking at flower/include/guile-compatibility.hh:Seems like someone forgot to define scm_from_unsigned() inside the #if SCM_MINOR_VERSION < 7. Compilation will go on if you define scm_from_unsigned() as scm_from_int(), but I'm not shure if that is the correct fix.
Regards,  Erlend AaslandOn 1/31/06, Paul Scott <[EMAIL PROTECTED]> wrote:
Debian sid, latest CVS:...rm -f ./out/grob-array-scheme.dep;DEPENDENCIES_OUTPUT="./out/grob-array-scheme.dep./out/grob-array-scheme.o" g++ -c -Woverloaded-virtual -DHAVE_CONFIG_H-DSTD_STRING=1 -DNDEBUG -DSTRING_UTILS_INLINED -I./include -I./out
-I../flower/include -I../flower/./out -I../flower/include  -O2-finline-functions -g -pipe  -I/usr/include/freetype2-I/usr/include/pango-1.0 -I/usr/include/freetype2-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0
/include-Wno-pmf-conversions -W -Wall -Wconversion -o out/grob-array-scheme.ogrob-array-scheme.ccgrob-array-scheme.cc: In function 'scm_unused_struct*ly_grob_array_ref(scm_unused_struct*, scm_unused_struct*)':
grob-array-scheme.cc:35: error: 'scm_from_unsigned' was not declared inthis scopemake[1]: *** [out/grob-array-scheme.o] Error 1make[1]: Leaving directory `/home/paul/lilypond/lily'make: *** [all] Error 2
Paul Scott___lilypond-devel mailing listlilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Build fails because of No. hack

2006-01-31 Thread Erlend Aasland
Hmmm, just upgraded to FontForge version 20060125, but I still get the same result:/usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge /sw/share/ghostscript/fonts/c059013l.pfb /sw/share/ghostscript/fonts/c059013l.afm ./out/ &&   /usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge /sw/share/ghostscript/fonts/c059016l.pfb /sw/share/ghostscript/fonts/c059016l.afm ./out/ &&   /usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge /sw/share/ghostscript/fonts/c059033l.pfb /sw/share/ghostscript/fonts/c059033l.afm ./out/ &&   /usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge /sw/share/ghostscript/fonts/c059036l.pfb /sw/share/ghostscript/fonts/c059036l.afm ./out/ &&  true
Copyright (c) 2000-2006 by George Williams. Executable based on sources from 14:01 25-Jan-2006.Select: Character not found: afii61352Called from... ../buildscripts/pfx2ttf.fontforge: line 8make[1]: *** [out/CenturySchL-
Ital.ttf] Error 1make: *** [all] Error 2On 1/30/06, Erlend Aasland <[EMAIL PROTECTED]> wrote:
Will do...On 1/30/06, Han-Wen Nienhuys <[EMAIL PROTECTED]
> wrote:> Erlend Aasland wrote:> > Building from Latest CVS (ChangeLog 1.4518). Make bails out here:> >> > /sw/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge> > /sw/share/ghostscript/fonts/c059013l.pfb
> > /sw/share/ghostscript/fonts/c059013l.afm ./out/ &&   /sw/bin/fontforge> > -script ../buildscripts/pfx2ttf.fontforge> > /sw/share/ghostscript/fonts/c059016l.pfb> > /sw/share/ghostscript/fonts/c059016l.afm ./out/ &&   /sw/bin/fontforge
> > -script ../buildscripts/pfx2ttf.fontforge> > /sw/share/ghostscript/fonts/c059033l.pfb> > /sw/share/ghostscript/fonts/c059033l.afm ./out/ &&   /sw/bin/fontforge> > -script ../buildscripts/pfx2ttf.fontforge
> > /sw/share/ghostscript/fonts/c059036l.pfb> > /sw/share/ghostscript/fonts/c059036l.afm ./out/ &&  true> > Copyright (c) 2000-2005 by George Williams.> >  Executable based on sources from 15:19 28-Oct-2005.
> > Select: Character not found: afii61352> > Called from...> >  ../buildscripts/pfx2ttf.fontforge: line 8> > make[1]: *** [out/CenturySchL- Ital.ttf] Error 1> > make: *** [all] Error 2
>> try a newer fontforge.>>> -->   Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
>
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: [OT] How do you configure your keyboard for programming?

2006-01-31 Thread Nicolas Sceaux
Pedro Kröger <[EMAIL PROTECTED]> writes:

> Sorry for the off-topic, but I'm curious about this. Since a few
> people here speak languages other than English (french, German, Dutch,
> Portuguese, etc) I was wandering how you configure your keyboard for
> *programming*.
>
> The use of dead keys is very comfortable to edit texts in languages
> with accents (like french) but I find a little bit irritating to use
> it while programming because I always have to hit a few more keys. For
> instance, to type an expression in lisp that have a quote I have to
> type   foo to get 'foo instead of  foo. that's
> even more annoying to type commands like C-c ` in emacs.

I'm using a mac French keyboard, (with éàùçè direct keys, and ^¨`
dead keys for other accents). Parentheses are accessible without
shifting, which is nice for lisp. quote is not a dead key (also nice).
I've made caps lock an alternate ctrl key to avoid pain on the left
little finger.
It's no big deal to have backquote a deadkey because when it is followed
by a parenthese, both characters are then inserted: `(. Tilde ~ is more
a pain because it has to be followed by a space hit (not good in format
clauses "~a" for instance; ALT-n SPACE produces the tilde).

nicolas



___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: review new info on file layout

2006-01-31 Thread Don Blaheta
Quoth Graham Percival:
> On 29-Jan-06, at 10:26 PM, Don Blaheta wrote:
> > In 4.4 and 4.5, would it be better to say "A \score must contain 
> > exactly one music expression (possibly complex)"?  Saying it must
> > "begin with" a music expression isn't saying quite enough.
> 
> The \score must _begin_ with the expression, and the whole point of 
> those docs is to make the point that a music expression can be complex 
> and long.  If that point isn't clearly made on its own, then I should 
> improve the rest of those docs, not that line.

The complexity isn't in dispute; but if you say "must begin with a music
expression", it seems to imply that there can be more than one, but as I
understand it, there can only be exactly one.  That one expression can
contain others, of course, but there you go.  Maybe "...must begin with
*the* music expression"?  I dunno.  I guess it's not that big a deal.

-- 
-=-Don [EMAIL PROTECTED]-=-
It is not what a teenager knows that bothers his parents, it is how
he found out.


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: [OT] How do you configure your keyboard for programming?

2006-01-31 Thread Herman Grootaers
On Sunday 29 January 2006 23:46, Pedro Kröger wrote:
> Sorry for the off-topic, but I'm curious about this. Since a few
> people here speak languages other than English (french, German,
> Dutch, Portuguese, etc) I was wandering how you configure your
> keyboard for *programming*.
>
> The use of dead keys is very comfortable to edit texts in languages
> with accents (like french) but I find a little bit irritating to use
> it while programming because I always have to hit a few more keys.
> For instance, to type an expression in lisp that have a quote I have
> to type   foo to get 'foo instead of  foo.
> that's even more annoying to type commands like C-c ` in emacs.
>
> So, what do you do:
>
> 1. just use the keyboard with deadkeys, type the extra keys and not
> care much
>
> 2. don't use deadkeys (but how do you write accents in your
> language?)
>
> 3. switch keyboard maps
>
> 4. do something else
>
> Any ideas?
>

I did default my keyboard to US-layout, just because the dead-keys are 
too cumbersome to use and not realy necessary in dutch. For Russian I 
switch my keyboard-layout to a modified russian keyboard, because the 
mapping is not as the keys indicate. Maybe I will get the dutch 
keyboard also switched, but that depends on what my requirements are on 
that moment.

== 
Herman Grootaers


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Missing isnan, isinf?

2006-01-31 Thread Johannes Schindelin
Hi,

On Tue, 31 Jan 2006, Don Blaheta wrote:

> I'm on OS X 10.3.9, with g++ version 3.3, trying to compile lilypond
> from CVS.
>
> [...]
>
> I can't quite figure out why, because flower/offset.cc includes
> flower/include/offset.hh, which includes flower/include/real.hh, which
> includes /usr/include/math.h, which includes (are you following all
> this?) /usr/include/architecture/ppc/math.h, which defines both isnan
> and isinf as #define macros.  At least, afaict.  Has anyone else run
> into similar problems?

Yes. I don't remember when exactly, but it went away some time in the last 
two months for me.

I think the problem has to do with wrong precompiled headers, and a 
certain order of includes, because at a certain time I could just redefine 
the macros after the #include without a warning.

Ciao,
Dscho

P.S.: I will try to compile the current lilypond later today, and if I 
find the same problem and a fix, I'll share it with you



___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: [OT] How do you configure your keyboard for programming?

2006-01-31 Thread Karl Hammar
> On Sunday 29 January 2006 23.46, Pedro Kröger wrote:
> >
> > 2. don't use deadkeys (but how do you write accents in your language?)
> >
> > 3. switch keyboard maps
> 
> I usually use US keyboard, but where one key (the "menu" key) is bound to 
> switch layouts between Swedish and US. 
> 
> Before I bound that layout swithc key, I used to leave out all accents and 
> extra dots when writing informal email etc. in Swedish.
> 
> -- 
> Erik

Interesting, how do you do it in the xmodmap file?

I usually have an xmodmap [1] file that lets me press alt or alt-gr to set 
the 8th bit. That gives me all latin1 characters.

Regards,
Karl

1: http://aspodata.se/aspo/xmodmap.us




___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: [OT] How do you configure your keyboard for programming?

2006-01-31 Thread Erik Sandberg
On Sunday 29 January 2006 23.46, Pedro Kröger wrote:
>
> 2. don't use deadkeys (but how do you write accents in your language?)
>
> 3. switch keyboard maps

I usually use US keyboard, but where one key (the "menu" key) is bound to 
switch layouts between Swedish and US. 

Before I bound that layout swithc key, I used to leave out all accents and 
extra dots when writing informal email etc. in Swedish.

-- 
Erik


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Build fails because of No. hack

2006-01-31 Thread Han-Wen Nienhuys

Erlend Aasland wrote:
Hmmm, just upgraded to FontForge version 20060125, but I still get the 
same result:


/usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059013l.pfb 
/sw/share/ghostscript/fonts/c059013l.afm ./out/ &&   
/usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059016l.pfb 
/sw/share/ghostscript/fonts/c059016l.afm ./out/ &&   
/usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059033l.pfb 
/sw/share/ghostscript/fonts/c059033l.afm ./out/ &&   
/usr/local/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059036l.pfb 
/sw/share/ghostscript/fonts/c059036l.afm ./out/ &&  true

Copyright (c) 2000-2006 by George Williams.
 Executable based on sources from 14:01 25-Jan-2006.
Select: Character not found: afii61352
Called from...
 ../buildscripts/pfx2ttf.fontforge: line 8
make[1]: *** [out/CenturySchL- Ital.ttf] Error 1
make: *** [all] Error 2




Apparently, there are multiple versions of c0590xxx floating around.  We 
should probably check whether afii61352 exists. Patch, anyone?


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: review new info on file layout

2006-01-31 Thread Cameron Horsburgh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Don Blaheta wrote:
> Quoth Graham Percival:
> 
>>On 29-Jan-06, at 10:26 PM, Don Blaheta wrote:
>>
>>>In 4.4 and 4.5, would it be better to say "A \score must contain 
>>>exactly one music expression (possibly complex)"?  Saying it must
>>>"begin with" a music expression isn't saying quite enough.
>>
>>The \score must _begin_ with the expression, and the whole point of 
>>those docs is to make the point that a music expression can be complex 
>>and long.  If that point isn't clearly made on its own, then I should 
>>improve the rest of those docs, not that line.
> 
> 
> The complexity isn't in dispute; but if you say "must begin with a music
> expression", it seems to imply that there can be more than one, but as I
> understand it, there can only be exactly one.  That one expression can
> contain others, of course, but there you go.  Maybe "...must begin with
> *the* music expression"?  I dunno.  I guess it's not that big a deal.
> 


How about something like:
***
A score block simply consists of a single music expression. That music
expression may be followed by midi, header, layout and/or paper blocks.

For example:

\score{
...music expression...
}

or perhaps

\score{
...music expression...
\layout{...}
\midi{...}
}
***
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD3za9voajcVq9gkURAlSIAJ9Kfn1g1zNpUqtGELh8s+pAvptwEwCaAmsU
FT7VPIiN7ujFsNWVTWTD5iI=
=ZOEp
-END PGP SIGNATURE-



___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


error in latest CVS

2006-01-31 Thread Paul Scott

Debian sid, latest CVS:

...
rm -f ./out/grob-array-scheme.dep; 
DEPENDENCIES_OUTPUT="./out/grob-array-scheme.dep 
./out/grob-array-scheme.o" g++ -c -Woverloaded-virtual -DHAVE_CONFIG_H  
-DSTD_STRING=1 -DNDEBUG -DSTRING_UTILS_INLINED -I./include -I./out 
-I../flower/include -I../flower/./out -I../flower/include  -O2 
-finline-functions -g -pipe  -I/usr/include/freetype2   
-I/usr/include/pango-1.0 -I/usr/include/freetype2 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-Wno-pmf-conversions -W -Wall -Wconversion -o out/grob-array-scheme.o 
grob-array-scheme.cc
grob-array-scheme.cc: In function 'scm_unused_struct* 
ly_grob_array_ref(scm_unused_struct*, scm_unused_struct*)':
grob-array-scheme.cc:35: error: 'scm_from_unsigned' was not declared in 
this scope

make[1]: *** [out/grob-array-scheme.o] Error 1
make[1]: Leaving directory `/home/paul/lilypond/lily'
make: *** [all] Error 2


Paul Scott



___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Build fails because of No. hack

2006-01-31 Thread Han-Wen Nienhuys

Erlend Aasland wrote:

Building from Latest CVS (ChangeLog 1.4518). Make bails out here:

/sw/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059013l.pfb 
/sw/share/ghostscript/fonts/c059013l.afm ./out/ &&   /sw/bin/fontforge 
-script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059016l.pfb 
/sw/share/ghostscript/fonts/c059016l.afm ./out/ &&   /sw/bin/fontforge 
-script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059033l.pfb 
/sw/share/ghostscript/fonts/c059033l.afm ./out/ &&   /sw/bin/fontforge 
-script ../buildscripts/pfx2ttf.fontforge 
/sw/share/ghostscript/fonts/c059036l.pfb 
/sw/share/ghostscript/fonts/c059036l.afm ./out/ &&  true

Copyright (c) 2000-2005 by George Williams.
 Executable based on sources from 15:19 28-Oct-2005.
Select: Character not found: afii61352
Called from...
 ../buildscripts/pfx2ttf.fontforge: line 8
make[1]: *** [out/CenturySchL- Ital.ttf] Error 1
make: *** [all] Error 2


try a newer fontforge.


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Build fails because of No. hack

2006-01-31 Thread Erlend Aasland
HiOn 1/31/06, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: 
Apparently, there are multiple versions of c0590xxx floating around.  Weshould probably check whether afii61352 exists. Patch, anyone?I've got two versions of the font installed on my computer, but none of them seems to contain afii61352. I added the following patch (also attached) as a temporary fix and now everything seems fine.
--- buildscripts/pfx2ttf.fontforge  2006-01-30 10:51:44.0 +0100+++ buildscripts/pfx2ttf.fontforge  2006-02-01 01:42:18.0 +0100@@ -1,10 +1,16 @@ [EMAIL PROTECTED]@ Open($1);-MergeKern($2)
+MergeKern($2); # Remove the No. glyph - for want of better FF fix.-Select("afii61352")-Cut();+err = SelectIf("afii61352");+if ( err > 0 )+   Cut();+elseif ( err == 0 )
+   Print("Could not find \"numero\" glyph");+elseif ( err < 0 )+   Print("An error occurred while searching for the \"numero\" glyph");+endif Generate($3 + $fontname + ".ttf");



fontforge.patch
Description: Binary data
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel