J?r?me Conus wrote:
> I'm facing some problems :
> 
> - How can I integrate mathematical formula in DocBook with XmlMind ?

I don't know.

There are businesses specializing in the specific task of converting
MSWord documents into XML. Our business is just to develop and market an
XML editor.




> - I have many vector graphics in my word document. How can I use them with 
> XmlMind ? It seems only bitmap images are handled

No, XMLmind supports any graphics format provided that you install an
image toolkit *plugin* for the format.

Example 1: download and install
http://www.xmlmind.net/xmleditor/_download/batik_imagetoolkit-211.zip
and XXE will support the SVG format.

Example 2: add this snippet in your ~/.xxe/addon/customize.xxe and XXE
will support the PDF and PostScript format (for graphics).

---------------------------
  <!-- ================================================================
    Requires Ghostscript 8+ to be installed. Will not work properly
    with Ghostscript 7 which does not support the -dEPSCrop switch.

    If the gs (gswin32c.exe on Windows) program
    is not in your PATH, you'll
    need to slightly edit the shell child elements below.

    Tested on Windows using:
    * Ghostscript 8.14, an interpreter for the
      PostScript language and for PDF.
      See http://www.cs.wisc.edu/~ghost/.
  ================================================================= -->

  <imageToolkit name="Ghostscript">
    <description>Converts EPS and PDF graphics to PNG.
Important: requires Ghostscript 8+.</description>

    <converter>
      <input extensions="eps epsf ps pdf" magicStrings="%!PS %PDF"/>
      <output extensions="png"/>

      <shell command='gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m
                      -r96 -dTextAlphaBits=4
                      -dGraphicsAlphaBits=4 -dEPSCrop
                      %A "-sOutputFile=%O" "%I"'
             platform="Unix"/>

      <shell command='gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=png16m
                      -r96 -dTextAlphaBits=4
                      -dGraphicsAlphaBits=4 -dEPSCrop
                      %A "-sOutputFile=%O" "%I"'
             platform="Windows"/>
    </converter>
  </imageToolkit>
-------------------------------




> - I need to show some C++ code snippets. When I try to copy/paste them into 
> XmlMind, it seems the tabulations (for indentation) are not handled as 
> tabulations. Am I doing something wrong ?

Tab characters are displayed as little squares. It is not nice but it is
harmless.

Personnally, I expand tab characters using this macro:

-----------
  <!-- =================================================================
    Replaces characters in text selection or
    in explicitely selected text node
    by same characters but with all the tab
    characters ('\t') expanded to
    8 whitespaces.

    Requires you to have standard Unix utility "expand"
    installed on your
    system.

    On Windows, "expand" uncompresses .cab files but cygwin
    includes a Unix compatible "expand". If cygwin is installed
    on your system, replace 'expand "%F"' by someting like
    'C:\cygwin\bin\expand "%F"'.
  ================================================================== -->

  <command name="untabify">
    <macro>
      <sequence>
        <command name="run" parameter='expand "%F"' />
        <command name="paste" parameter="toOrInto %_" />
      </sequence>
    </macro>
  </command>

  <binding>
    <keyPressed code="ESCAPE" />
    <charTyped char="8" />
    <command name="untabify" />
  </binding>
--------------

Once again, if you want it, you'll need to add the above snippet in your
~/.xxe/addon/customize.xxe


Reply via email to