lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OOoLilyPond trouble 2


From: David Bobroff
Subject: Re: OOoLilyPond trouble 2
Date: Fri, 06 Oct 2006 07:52:19 +0000
User-agent: Thunderbird 1.5.0.7 (X11/20060913)

Samuel Hartmann wrote:
Hi David,

David Bobroff wrote:
New problem. I had saved the small test file in *.doc format as I'm doing some work for someone who is using Word on Windows (this may or may not be relevant). When I reopened the test file and tried to edit one of the little music snippets, or add a new one, I get an error box:

A Scripting Framework error occured while running the Basic script vnd.sun.star.script:OOoLilypond.OOoLilyPondMusic.main?language=Basic&locaction=application.

Message: BasicProviderlmpl::getScript: no script!


What happened?
I tried that too. I don't get the "BasicProviderlmpl::getScript: no script!" Error. And I can start LilyPond to creat new music snippets. But it is not possible to reopen the already existing music snippets which I expected. See below an explanation for this.

I could not even create new snippets in a new document.

May be your problem is that script cannot be called. Check the installation of the script. Open the Dialog "Tools --> Macros --> Organize Macros --> OpenOffice.org Basic" and check whether the macro is still there. You can also try to run the macro using this dialog.


It looked as though the, or at least *a* script was still there. I deleted it and re-did the macro set-up. Now it's working again.

Now why OOoLilyPond cannot be used in .doc files:

OOoLilyPond stores the LilyPond code as additional attribute in the odt file. When unziping and the odt file and opening content.xml you can see the code for the OOoLilyPond Image:

<style:style style:name="gr1" style:family="graphic">
<style:graphic-properties OOoLilyPondArgs="default16§AsCharacter§NoWrap§c' d' e'" draw:stroke="none" svg:stroke-width="0in" svg:stroke-color="#000000" draw:marker-start="" draw:marker-start-width="0.1181in" draw:marker-start-center="false" draw:marker-end="" draw:marker-end-width="0.1181in" draw:marker-end-center="false" draw:fill="none" draw:fill-color="#99ccff" draw:textarea-horizontal-align="center" draw:textarea-vertical-align="middle" fo:padding-top="0.0492in" fo:padding-bottom="0.0492in" fo:padding-left="0.0984in" fo:padding-right="0.0984in" draw:shadow="hidden" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:shadow-color="#808080" draw:color-mode="standard" draw:luminance="0%" draw:contrast="0%" draw:gamma="100%" draw:red="0%" draw:green="0%" draw:blue="0%" fo:clip="rect(0in 0in 0in 0in)" draw:image-opacity="100%" style:mirror="none" fo:margin-top="0in" fo:margin-bottom="0in" style:run-through="foreground" style:wrap="none" style:vertical-pos="from-top" style:horizontal-pos="from-left" style:horizontal-rel="paragraph"/>
</style:style>

The lilypond code ist stored in the additional graphic-property OOoLilyPondArgs="default16§AsCharacter§NoWrap§c' d' e'"


I assume that this property is lost when converting to the .doc format and back again to .odt. I think it is not easy to find a clean way to store the lilypond code such that it remains correct when converting to .doc.

I will one have a closer look at this issue, but this does not have priority for the development of OOoLilyPond.



Ok, fair enough. I'll keep that in mind. BUT, can it be safely saved as a *.doc file and still have the surrounding text edited in Word without trouble?

I'm also wondering about my Linux installation. I'm getting some random freezes which require a hard reboot. I'm also getting an error box when Gnome starts up. Something about the Settings Daemon restarting too many times. I'm wondering if this is part of this trouble with the macro suddenly not working.

Thanks,

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]