Language and \inlcude

2009-11-15 Thread Ichiro Watanabe
Hi there,

The --safe flag disallows \include directives. I'm sure there are very
good reasons for it.
However, this seems to unnecessarily prevent users who need to compile
their source in safe mode from choosing one of the supported languages
for notes and accidentals.
Would it be possible to promote

\include "english.ly"

to a first-class command that is allowed in safe mode? Something like

\language "english"

If it's not too hard I'm happy to look into it and offer a patch.

Thank you and regards


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


Re: CGI interface to lilypond

2009-11-10 Thread Ichiro Watanabe
> If you are writing the html yourself, then why do you want a cgi
> call?

I'm not necessarily writing the html myself.
A CGI interface is useful for the same use cases that mathtex enables
with LaTeX.

> It doesn't make any sense to regenerate the output every time
> somebody looks at the webpage.

Images are not regenerated, they are generated once and then cached.
For more details, see

http://www.forkosh.dreamhost.com/source_mathtex.html

Anyway, I take it that no such CGI interface exists then.
I'll let you know of any developments on my side, thanks for now.

Regards,
Ichiro


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


Re: CGI interface to lilypond

2009-11-10 Thread Ichiro Watanabe
> For an individual person, lilypond-book can already process html
> files, so there is nothing extra needed.

Thank you.
I think I didn't explain myself very well.
My goal is to embed the lilypond source in HTML source. Something like this


  
Example
  
  
This is my new song: 
  


My understanding from

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/HTML#HTML

is that lilypond-book by itself does not work like this and it not
support this - a wrapper CGI application is required.
To prove how this can work with LaTeX (and a CGI wrapper called
mathtex), load this into your browser.


  
Example
  
  
This is my new theorem: http://www.forkosh.dreamhost.com/mathtex.cgi?\sqrt{x^2}=x";>
  


> If you want to have it for a multi-user situation like a wiki,
> then search for "lilypond wiki" or "mediawiki" or similar terms on
> the mailist; it has been discussed before.

This is slightly off-topic, but for everyone's benefit, this is what I
know about the MediaWiki situation.
An unsecure extension is available here

http://www.mediawiki.org/wiki/Extension:LilyPond

This works fine for private (intranet) wikis and for public wikis that
are not notable enough to be subject to DoS attacks.
For bigger, public wikis (notably Wikipedia), someone has implemented
a secure, generic framework that renders music and other stuff

http://wikisophia.org/wiki/Wikitex
http://modtex.org

My understanding is that development is almost done, but the project
is currently on a hiatus.

Thanks


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


CGI interface to lilypond

2009-11-09 Thread Ichiro Watanabe
Hi there,

I am new to lilypond.
I am wondering if there exists an interface like mathtex, for lilypond.
For those who don't know mathtex, it's a way of embedding rendered TeX
images directly and easily in an HTML page (and therefore in wikis, in
blogs etc), through a relatively simple CGI service.
So, in your web page, you can just type your formula like this

   http://www.forkosh.dreamhost.com/mathtex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}";>

and voila, the image is rendered and embedded. (You would of course
prefer to build the service locally and use that, instead of using a
publicly available service, but that's the idea.)
I think it's quite clever and neat. You can read the whole story here

   http://www.forkosh.dreamhost.com/source_mathtex.html

My understanding is that it should not be difficult to implement
something like this for lilypond. Perhaps through lilypond-book and
latex, or maybe just via lilypond directly.
I am keen to develop this (or at least give it a try), but first I
would like to make sure that I wouldn't be reinventing the wheel.
Any other input from you guys would also be welcome, of course.

Thank you, and anyway thanks for this superlative tool.
Ichiro


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