On Wed, Jan 21, 2009 at 12:45:20PM +1000, M Watts <[email protected]> wrote:
> Bertalan Fodor (LilyPondTool) wrote:
> > Hi,
> >
> > does anyone of you have a script or a way to convert from (simple) 
> > html to markup like this:
> >
> > This is a me<b><i>lis</i></b>ma.
> >
> > To get:
> >
> > \markup { "This is a " \concat { "me" \bold \italic "lis" "ma." } }
> >
> 
> sed would do the job, but I'm too hazy on it to offer a solution.

$ echo "This is a me<b><i>lis</i></b>ma." | \
sed 's|\(.*\) \([^ ]\+\)<b><i>\(.*\)</i></b>\(.*\)|\\markup { "\1 " \\concat { 
"\2" \\bold \\italic "\3" "\4" } }|g'
\markup { "This is a " \concat { "me" \bold \italic "lis" "ma." } }

Something like this?

Attachment: pgpgXINooOWWQ.pgp
Description: PGP signature

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to