Re: [bug] line breaking

2006-10-18 Thread Arvid Grøtting
Juergen Reuter  ipd.uka.de> writes:


> No, seems to work for me (I removed Forbid_line_break_engraver from Voice 
> context).  At least, for the moment it works. 

Ah.  I think I just found out why \break didn't work when I was transcribing a
score, as well as why the final line breaks were a bit strange.

I'm not sure of the wording, but section 6.2.7 of the user manual could benefit 
from a reference to Forbid_line_break_engraver.  I guess most music using
Completion_heads_engraver will get better spacing without 
Forbid_line_break_engraver ;-)

-- 

Arvid



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


Re: Use the Feta font

2006-10-18 Thread Cameron Horsburgh
On Wed, Oct 18, 2006 at 03:06:12PM +, Gwenael Casaccio wrote:
> Hello,
> 
> I'm the main developper of ktabedit (http://ktabedit.sf.net) a kde tablature
> editor and I would like to use and include the feta font inside my program.
> Do I have the right to use this font ? The font is released under what 
> licence ?
> May be I can include some advertising for the user under the README file or
> AUTHORS ...
> 
> I look forward to hearing from you
> 
> Gwenael Casaccio
> 
If you're using a recent 2.9 GUB you'll find the license in
/usr/local/lilypond/license/lilypond . Lilypond is licensed by the GPL
abd the fonts seem to have the standard font exemption for derivative
works.

HTH

-- 

=
Cameron Horsburgh

=



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


Re: creating a new OTF found

2006-10-18 Thread Han-Wen Nienhuys

Please keep discussion on the mailing list.

I think the easiest way is to write a FontForge script. First write the 
tables to a file, and after modifying the font, add it with

LoadTableFromFile. It should work, as long as you don't modify glyph names.



Reza Zamani Nasab schreef:

Thank you.
Do you know any other tool/method by which I can
preserve tables? Do these tables depend on the shape
of the glyphs, i.e. if I edit 1 or 2 glyphs, do I have
to update the tables (or it just suffices to somehow
copy/paste them to the new font)?

--Reza


--- Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:


lilypondtester schreef:

I tried to change a few symbols in the lilypond

OTF fonts. This is the

process which I tried:

I opened the OTF fonts (located under

"usr\share\lilypond\current\fonts\otf"

in windows distribution) using fontfoge, edited a

few symbols and generated

fonts using "File/GenerateFont" option. The

generated file is much smaller

than the original font and when I replace it with

the original lilypond

font, It always generates error message "can't

find OpenType tables" when

compiling *.ly files. Apparently there is kind of

"table" stored in the

original OTF files that when I edit them by

fontforge and then regenerate

the fonts, are lost (even if I dont edit anything

and just regenerate the

font, the generated font file-size is much smaller

and the problem persists.

Even if I use FontLab -a windows alternative to

FontForge- the problem

persists).

I guess there is an elementary thing here which I

miss, since this is the

first time i'm editing a font. any ideas?

The LilyPond OTF contains 3 tables, LILY, LILC and
LILF which should be 
preserved. I'm not sure how to do this in FF.


--

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

LilyPond Software Design
  -- Code for Music Notation
http://www.lilypond-design.com





Send instant messages to your online friends http://uk.messenger.yahoo.com 




--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: creating a new OTF found

2006-10-18 Thread Han-Wen Nienhuys

lilypondtester schreef:

I tried to change a few symbols in the lilypond OTF fonts. This is the
process which I tried:

I opened the OTF fonts (located under "usr\share\lilypond\current\fonts\otf"
in windows distribution) using fontfoge, edited a few symbols and generated
fonts using "File/GenerateFont" option. The generated file is much smaller
than the original font and when I replace it with the original lilypond
font, It always generates error message "can't find OpenType tables" when
compiling *.ly files. Apparently there is kind of "table" stored in the
original OTF files that when I edit them by fontforge and then regenerate
the fonts, are lost (even if I dont edit anything and just regenerate the
font, the generated font file-size is much smaller and the problem persists.
Even if I use FontLab -a windows alternative to FontForge- the problem
persists).

I guess there is an elementary thing here which I miss, since this is the
first time i'm editing a font. any ideas?


The LilyPond OTF contains 3 tables, LILY, LILC and LILF which should be 
preserved. I'm not sure how to do this in FF.


--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: [Bug?] Dotting notes by music function

2006-10-18 Thread Juergen Reuter

On Sun, 15 Oct 2006, Nicolas Sceaux wrote:


Juergen Reuter <[EMAIL PROTECTED]> writes:


By the way, do we have a generic substitution function that you can
pass an event type and some replacement expression to?  Maybe
something like

(replace-for-all-matches
  #(define-matching-expression (any-music-event-of-type 'NoteEvent))
  Music
  #(define-replacement-expression
(original-match) (...  ...))),


There is some kind of music pattern matcher in scm/display-lily.scm: the
with-music-match macro, which is not exported from this module however.

nicolas



Thanks, I will look into it!

Greetings,
Juergen


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


creating a new OTF found

2006-10-18 Thread lilypondtester

I tried to change a few symbols in the lilypond OTF fonts. This is the
process which I tried:

I opened the OTF fonts (located under "usr\share\lilypond\current\fonts\otf"
in windows distribution) using fontfoge, edited a few symbols and generated
fonts using "File/GenerateFont" option. The generated file is much smaller
than the original font and when I replace it with the original lilypond
font, It always generates error message "can't find OpenType tables" when
compiling *.ly files. Apparently there is kind of "table" stored in the
original OTF files that when I edit them by fontforge and then regenerate
the fonts, are lost (even if I dont edit anything and just regenerate the
font, the generated font file-size is much smaller and the problem persists.
Even if I use FontLab -a windows alternative to FontForge- the problem
persists).

I guess there is an elementary thing here which I miss, since this is the
first time i'm editing a font. any ideas?
-- 
View this message in context: 
http://www.nabble.com/creating-a-new-OTF-found-tf2464947.html#a6871481
Sent from the Gnu - Lilypond - Dev mailing list archive at Nabble.com.



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


Use the Feta font

2006-10-18 Thread Gwenael Casaccio
Hello,

I'm the main developper of ktabedit (http://ktabedit.sf.net) a kde tablature
editor and I would like to use and include the feta font inside my program.
Do I have the right to use this font ? The font is released under what licence ?
May be I can include some advertising for the user under the README file or
AUTHORS ...

I look forward to hearing from you

Gwenael Casaccio



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


Feta font

2006-10-18 Thread Gwenael Casaccio
Hello,

I'm the main developper of ktabedit (http://ktabedit.sf.net) a tablature editor
for kde. I want to ask you if I can use the feta font for my program (What is
the licence of the font, may be you want I add something in my program) ?

I look forward to hearing from you.

Gwenael Casaccio



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


Re: Segmentation fault: \addquote chokes on \new Voice

2006-10-18 Thread Han-Wen Nienhuys

Erik Sandberg schreef:

On Wednesday 18 October 2006 11:40, Han-Wen Nienhuys wrote:

Werner LEMBERG schreef:

Thanks for fixing this; can you update issue #111 and add a
fixed2925 tag?

Just curious: What does the `2925' mean?


Werner

2.9.25. Google can't search for "2.9.25", but does handle "fixed2925"

(with this we can easily list all errors fixed in a particular release)


hm.. then shouldn't it be fixed20925 or fixed_2_9_25, to distinguish it from 
e.g. 2.92.5?


dunno. Can you search for fixed_2_9_25 correctly?

--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Segmentation fault: \addquote chokes on \new Voice

2006-10-18 Thread Erik Sandberg
On Wednesday 18 October 2006 11:40, Han-Wen Nienhuys wrote:
> Werner LEMBERG schreef:
> >> Thanks for fixing this; can you update issue #111 and add a
> >> fixed2925 tag?
> >
> > Just curious: What does the `2925' mean?
> >
> >
> > Werner
>
> 2.9.25. Google can't search for "2.9.25", but does handle "fixed2925"
>
> (with this we can easily list all errors fixed in a particular release)

hm.. then shouldn't it be fixed20925 or fixed_2_9_25, to distinguish it from 
e.g. 2.92.5?

-- 
Erik


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


Re: Segmentation fault: \addquote chokes on \new Voice

2006-10-18 Thread Werner LEMBERG

> Have you tried codesearch?
> 
>http://google.com/codesearch
> 
> it doesn't search mailinglists etc. but does allow regexps (try looking 
> for [EMAIL PROTECTED])

Well, this doesn't really help if you actually need assistance for a
command or if you are searching for discussion on such topics...


Werner


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


Re: Segmentation fault: \addquote chokes on \new Voice

2006-10-18 Thread Han-Wen Nienhuys

Werner LEMBERG schreef:

2.9.25. Google can't search for "2.9.25", but does handle "fixed2925"

(with this we can easily list all errors fixed in a particular release)


Ah, yes, thanks.  BTW, now that you are going to work with the Google
people: Sometimes it would be *great* to be able to search for special
characters like `\' also, especially while searching, say, information
about TeX commands and the like.  It seems to me that this isn't
possible currently with the Google engine -- actually, I'm not aware
of a single searching engine which can do that :-(

Maybe you can be a pain in the ass and make suggestions into this
direction :-)


Have you tried codesearch?

  http://google.com/codesearch

it doesn't search mailinglists etc. but does allow regexps (try looking 
for [EMAIL PROTECTED])


--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Segmentation fault: \addquote chokes on \new Voice

2006-10-18 Thread Werner LEMBERG

> 2.9.25. Google can't search for "2.9.25", but does handle "fixed2925"
> 
> (with this we can easily list all errors fixed in a particular release)

Ah, yes, thanks.  BTW, now that you are going to work with the Google
people: Sometimes it would be *great* to be able to search for special
characters like `\' also, especially while searching, say, information
about TeX commands and the like.  It seems to me that this isn't
possible currently with the Google engine -- actually, I'm not aware
of a single searching engine which can do that :-(

Maybe you can be a pain in the ass and make suggestions into this
direction :-)


Werner


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


Re: Segmentation fault: \addquote chokes on \new Voice

2006-10-18 Thread Han-Wen Nienhuys

Werner LEMBERG schreef:

Thanks for fixing this; can you update issue #111 and add a
fixed2925 tag?


Just curious: What does the `2925' mean?


Werner



2.9.25. Google can't search for "2.9.25", but does handle "fixed2925"

(with this we can easily list all errors fixed in a particular release)


--

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Patch proposal: DocBook support for lilypond-book

2006-10-18 Thread Bertalan Fodor

Attached.

Bert

Han-Wen Nienhuys írta:

Bertalan Fodor schreef:

Hello,

I've created an enhancement for lilypond-book allowing us to use it 
with DocBook documents.


Specification and examples can be read at 
http://www.organum.hu/fileadmin/lilypondtool/lily-docbook.pdf
The enhanced script is at 
http://www.organum.hu/fileadmin/lilypondtool/lilypond-book.py


I created the docbook document with XmlMind xml editor. The pdf 
rendering has been made with dblatex under cygwin (thanks Jan we have 
a tetex there :-) )


Anyone interested?
Should I create a patch? Against which version? Any suggestions?


yes please, against 2.9 CVS



--- lilypond-book.py2006-10-18 10:39:17.233367000 +0200
+++ lilypond-book-docbook.py2006-10-18 10:51:04.409618000 +0200
@@ -67,7 +67,7 @@
 backend = 'ps'
 
 help_summary = _ (
-'''Process LilyPond snippets in hybrid HTML, LaTeX, or texinfo document.
+'''Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook 
document.
 
 Example usage:
 
@@ -132,7 +132,7 @@
   help=_ ("pipe snippets through FILTER [convert-ly -n -]"),
   default=None)
 p.add_option ('-f', '--format',
-  help=_('''use output format FORMAT (texi [default], 
texi-html, latex, html)'''),
+  help=_('''use output format FORMAT (texi [default], 
texi-html, latex, html, docbook)'''),
   action='store')
 
 p.add_option ("-I", '--include', help=_('add DIR to include path'),
@@ -191,6 +191,7 @@
 #
 AFTER = 'after'
 BEFORE = 'before'
+DOCBOOK = 'docbook'
 EXAMPLEINDENT = 'exampleindent'
 FILTER = 'filter'
 FRAGMENT = 'fragment'
@@ -239,6 +240,43 @@
 #   (?x) -- Ignore whitespace in patterns.
 no_match = 'a\ba'
 snippet_res = {
+ ##
+DOCBOOK: {
+'include':
+ no_match,
+
+'lilypond':
+ r'''(?smx)
+  (?P
+  
<(?P(inline)?)mediaobject>\s*\s*.*?)")?>(?P.*?)\s*\s*)''',
+
+'lilypond_block':
+ r'''(?smx)
+  (?P
+  
<(?P(inline)?)mediaobject>\s*\s*.*?)")?>(?P.*?)\s*\s*)''',
+
+'lilypond_file':
+ r'''(?smx)
+  (?P
+  
<(?P(inline)?)mediaobject>\s*\s*.*?\.ly)"\s*(role="(?P.*?)")?\s*(/>|>\s*)\s*\s*)''',
+
+'multiline_comment':
+ r'''(?smx)
+  (?P
+  \s*([EMAIL PROTECTED])
+  (?P)
+  \s)''',
+
+'singleline_comment':
+ no_match,
+
+'verb':
+ no_match,
+
+'verbatim':
+   no_match,
+   
+}, 
 ##
 HTML: {
 'include':
@@ -436,6 +474,10 @@
 
 
 format_res = {
+DOCBOOK: {
+   'intertext': r',?\s*intertext=\".*?\"',
+'option_sep': '\s*',
+}, 
 HTML: {
 'intertext': r',?\s*intertext=\".*?\"',
 'option_sep': '\s*',
@@ -506,6 +548,21 @@
 
 output = {
 ##
+DOCBOOK: { 
+FILTER: r'''%(code)s''', 
+
+OUTPUT: r'''
+
+   
+   
+   
+   ''',
+
+VERBATIM: r'''%(verb)s''',
+
+PRINTFILENAME: '%(filename)s'
+},
+##
 HTML: {
 FILTER: r'''
 %(code)s
@@ -1104,6 +1161,22 @@
 images = tuple (images)
 return images
 
+def output_docbook (self):
+str = ''
+base = self.basename ()
+for image in self.get_images ():
+(base, ext) = os.path.splitext (image)
+str += output[DOCBOOK][OUTPUT] % vars ()
+   str += self.output_print_filename (DOCBOOK)
+if (self.substring('inline') == 'inline'): 
+str = '' + str + ''
+else:
+str = '' + str + ''
+if VERBATIM in self.option_dict:
+verb = verbatim_html (self.substring ('code'))
+str = output[DOCBOOK][VERBATIM] % vars () + str
+return str
+   
 def output_html (self):
 str = ''
 base = self.basename ()
@@ -1371,7 +1444,8 @@
 
 if global_options.format in (HTML, TEXINFO):
 cmd += ' --formats=png '
-
+if global_options.format in (DOCBOOK):
+cmd += ' --formats=png,pdf '
 # UGH
 # the --process=CMD switch is a bad idea
 # it is too generic for lilypond-book.
@@ -1465,6 +1539,7 @@
 '.texi': TEXINFO,
 '.texinfo': TEXINFO,
 '.xml': HTML,
+'.lyxml': DOCBOOK
 }
 
 format2ext = {
@@ -1472,6 +1547,7 @@
 # TEXINFO: '.texinfo',
 TEXINFO: '.texi',
 LATEX: '.tex',
+DOCBOOK: '.xml'
 }
 
 class Compile_error:
@@ -1701,7 +1777,7 @@
 global_options.format = guess_format (files[0])
 
 formats = 'ps'
-if global_options.format in (TEXINFO, HTML):
+if global_options.format in (TEXINFO, HTML, DOCBOOK):
 formats += ',png'
 
 
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel