Yes, using guile you can download the file to /tmp for example and then include 
that. 
Like this:

#(remote-include "http://www.whatnote.com/style.ly"; "/tmp/whatnote-style.ly")
\include "/tmp/whatnote-style.ly"

For implementing remote-include a call to wget could be enough:

#(define remote-include (lambda (remote-file local-file)
(system* "wget" remote-file local-file)
)))

Perhaps wget needs other parametrization.

Bert


> ------- Original Message -------
> From: "Valentin Villenave" <v.villen...@gmail.com>
> To: "Jonathan Kulp" <jonlancek...@gmail.com>
> Sent: 09/01/02/, 23:25:39
> Subject: Re: using \include for remote files
> 
> 2009/1/2 Jonathan Kulp <jonlancek...@gmail.com>:
> > It occurred to me today that it would be nice if Lilypond could use \include
> > to include files that are hosted on a website, the way html pages use
> > stylesheets.  Something like this:
> >
> > \include "http://www.websiteaddress.com/definitions.ly";
> 
> As far as I know, a web browser actually needs to download the
> stylesheet before using it. So this would require to implement network
> transaction capabilities into LilyPond, which does not seem very
> useful at this point :-)
> 
> (that being said, it should be easy to use a Python script or even a
> Guile module to retrieve the files).
> 
> Cheers,
> Valentin
> 
> 
> _______________________________________________
> lilypond-devel mailing list
> lilypond-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

Reply via email to