Hi Regina, *,

2010/7/30 Regina Henschel <[email protected]>:
> Christian Lohmaier schrieb:
> [..]
>  Formeln sind
>>
>> grob gesagt (auf Dateiformat-Ebene) Draw-Objekte
>
> ?? Formeln sind MathML-Dokumente. Du kannst die content.xml eines
> Formelobjects direct in Seamonkey (oder Firefox) anschauen. Es wird die
> Formel angezeigt. Ein Vorschauobjekt ist in dem Formel-Objekt nicht
> enthalten. Formal ist eine Formel ein Objekt vom Typ
> application/vnd.oasis.opendocument.formula. Eine Formel ist kein
> Draw-Objekt. Draw-Objekte sind als direkte Elemente im Fileformat enthalten,
> Formeln als eingebettete Objekte.

War ungünstig formuliert. Was ich meinte ist folgendes. Eine Formel in
einem Writer-Dokument endet in dessen content.xml als
<text:p text:style-name="Standard">
  <draw:frame draw:style-name="fr1" draw:name="Objekt1"
text:anchor-type="as-char" svg:width="1.556cm" svg:height="0.467cm"
draw:z-index="0">
    <draw:object xlink:href="./Object 1" xlink:type="simple"
xlink:show="embed" xlink:actuate="onLoad"/>
    <draw:image xlink:href="./ObjectReplacements/Object 1"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
  </draw:frame>
</text:p>

Mit Draw meinte ich nicht OOo Draw, sondern die NS-Hierarchie in ODF
Also ein draw:frame. dort einmal die Meta-Info (draw:object, das
Formel-"Dokument im Dokument") und einmal das Vorschaubild
(draw:image)

Hoffe es it klar, was ich meinte.

Und für beides (weder für das Erstellen des MathML-Dokuments,
geschweigedenn für das Erstellen des Ersatzobjekts/Vorschaubilds gibt
es entsprechende Funktionen im odftoolkit (oder sie sind gut
versteckt/ich zu blind/wurden seit dem letzten mal, als ich
draufgeschaut habe hinzugefügt,…)

ciao
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Antwort per Email an