[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MediaWiki support
From: |
Johannes Schindelin |
Subject: |
MediaWiki support |
Date: |
Fri, 26 Nov 2004 05:00:23 +0100 (CET) |
Hi,
I just hacked mediawiki a bit in order to embed music in wikipedia. I use
lilypond-book for this (I know, I know, it is overkill. But it's easy,
too!). To use my work, apply the patch and in LocalSettings.php, set
$wgUseLilypond = true and $wgLilypondBook according to your installation.
The only reason I am posting this here, and not on the mediawiki list, is
that I don't really know if there are security issues. I thought I could
specify
lilypond-book -P "lilypond --safe" --output out test.html
in order to be on the safe side, but lilypond fails (output below). Note
that a similar error occurs when just specifying -P lilypond. Is this the
way to go, or is it my mistake?
Ciao,
Dscho
Starte lilypond...GNU LilyPond 2.5.1
Processing `lily-804172257.ly'
Analysiere...
Backtrace:
In unknown file:
?: 0* [lilypond-main ("lily-804172257" "lily-1999411609")]
In /usr/local/share/lilypond/2.5.1/scm/lily.scm:
331: 1* (let* ((failed #) (handler #)) (for-each (lambda # #) files) ...)
333: 2* [for-each #<procedure #f (f)> ("lily-804172257"
"lily-1999411609")]
In /usr/share/guile/1.6/srfi/srfi-1.scm:
652: 3 (if (null? rest) (letrec ((lp #)) (lp list1)) ...)
...
656: 4 (begin (f (car l)) (lp (cdr l)))
657: 5* [#<procedure #f (f)> "lily-804172257"]
In /usr/local/share/lilypond/2.5.1/scm/lily.scm:
335: 6 [catch ly-file-failed #<procedure #f ()> #<procedure #f (key
arg)>]
In unknown file:
?: 7* [#<procedure #f ()>]
In /usr/local/share/lilypond/2.5.1/scm/lily.scm:
335: 8* [ly:parse-file "lily-804172257"]
In lily-804172257.ly:
1: 9* (set! toplevel-score-handler ly:parser-print-score)
lily-804172257.ly:1:1: In expression (set! toplevel-score-handler
ly:parser-print-score):
lily-804172257.ly:1:1: Unbound variable: toplevel-score-handler
mediawiki-1.2.6+lilypond.patch.gz
Description: application/gunzip
- MediaWiki support,
Johannes Schindelin <=